Commit c569a162 authored by Jens Kroeger's avatar Jens Kroeger
Browse files

MaskCreator: shift all relevant histograms by 1/2 pitch

(cherry picked from commit a5e5eaf8)
parent 3b107b48
......@@ -39,21 +39,21 @@ void MaskCreator::initialise() {
maskmap = new TH2F("maskmap",
title.c_str(),
m_detector->nPixels().X(),
0,
m_detector->nPixels().X(),
-0.5,
m_detector->nPixels().X() - 0.5,
m_detector->nPixels().Y(),
0,
m_detector->nPixels().Y());
-0.5,
m_detector->nPixels().Y() - 0.5);
title = m_detector->name() + " Occupancy;x [px];y [px];entries";
m_occupancy = new TH2D("occupancy",
title.c_str(),
m_detector->nPixels().X(),
0,
m_detector->nPixels().X(),
-0.5,
m_detector->nPixels().X() - 0.5,
m_detector->nPixels().Y(),
0,
m_detector->nPixels().Y());
-0.5,
m_detector->nPixels().Y() - 0.5);
if(m_method == "localdensity") {
title = m_detector->name() + " Occupancy distance;x [px];y [px]";
......@@ -63,21 +63,21 @@ void MaskCreator::initialise() {
m_density = new TH2D("density",
title.c_str(),
m_detector->nPixels().X(),
0,
m_detector->nPixels().X(),
-0.5,
m_detector->nPixels().X() - 0.5,
m_detector->nPixels().Y(),
0,
m_detector->nPixels().Y());
-0.5,
m_detector->nPixels().Y() - 0.5);
title = m_detector->name() + " Local significance;x [px];y [px]";
m_significance = new TH2D("local_significance",
title.c_str(),
m_detector->nPixels().X(),
0,
m_detector->nPixels().X(),
-0.5,
m_detector->nPixels().X() - 0.5,
m_detector->nPixels().Y(),
0,
m_detector->nPixels().Y());
-0.5,
m_detector->nPixels().Y() - 0.5);
title = m_detector->name() + " Local significance distance;x [px];y [px]";
m_significanceDist = new TH1D("local_significance_dist", title.c_str(), binsOccupancy, 0, 1);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment