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

AnalysisDUT: shift all relevant histograms by 1/2 pitch + correct units in...

AnalysisDUT: shift all relevant histograms by 1/2 pitch + correct units in label of hAssociatedTracksLocalPosition from mm to px

(cherry picked from commit d4e280c4)
parent 34f68186
......@@ -37,21 +37,21 @@ void AnalysisDUT::initialise() {
hClusterSizeMapAssoc = new TProfile2D("clusterSizeMapAssoc",
"clusterSizeMapAssoc; cluster size; #entries",
m_detector->nPixels().X(),
0,
m_detector->nPixels().X(),
m_detector->nPixels().Y(),
0,
-0.5,
m_detector->nPixels().X() - 0.5,
m_detector->nPixels().Y(),
-0.5,
m_detector->nPixels().Y() - 0.5,
0,
100);
hClusterChargeMapAssoc = new TProfile2D("clusterChargeMapAssoc",
"clusterSizeChargeAssoc; cluster charge [e]; #entries",
m_detector->nPixels().X(),
0,
m_detector->nPixels().X(),
m_detector->nPixels().Y(),
0,
-0.5,
m_detector->nPixels().X() - 0.5,
m_detector->nPixels().Y(),
-0.5,
m_detector->nPixels().Y() - 0.5,
0,
500);
......@@ -59,28 +59,28 @@ void AnalysisDUT::initialise() {
hHitMapAssoc = new TH2F("hitMapAssoc",
"hitMapAssoc; hit column; hit row",
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);
hHitMapROI = new TH2F("hitMapROI",
"hitMapROI; hit column; hit row",
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);
hPixelRawValueAssoc = new TH1F("pixelRawValueAssoc", "pixelRawValueAssoc;pixel raw value;#entries", 1024, 0, 1024);
hPixelRawValueMapAssoc = new TProfile2D("pixelRawValueMapAssoc",
"pixelRawValueMapAssoc;pixel raw values;# entries",
m_detector->nPixels().X(),
0,
m_detector->nPixels().X(),
m_detector->nPixels().Y(),
0,
-0.5,
m_detector->nPixels().X() - 0.5,
m_detector->nPixels().Y(),
-0.5,
m_detector->nPixels().Y() - 0.5,
0,
255);
......@@ -292,13 +292,13 @@ void AnalysisDUT::initialise() {
-10,
10);
hAssociatedTracksLocalPosition = new TH2F("hAssociatedTracksLocalPosition",
"hAssociatedTracksLocalPosition;local intercept x [mm];local intercept y [mm]",
m_detector->nPixels().X(),
0,
"hAssociatedTracksLocalPosition;local intercept x [px];local intercept y [px]",
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);
hUnassociatedTracksGlobalPosition =
new TH2F("hUnassociatedTracksGlobalPosition",
"hUnassociatedTracksGlobalPosition; global intercept x [mm]; global intercept y [mm]",
......@@ -496,7 +496,7 @@ StatusCode AnalysisDUT::run(std::shared_ptr<Clipboard> clipboard) {
rmsxyvsxmym->Fill(xmod, ymod, fabs(sqrt(xdistance * xdistance + ydistance * ydistance)));
}
hAssociatedTracksGlobalPosition->Fill(globalIntercept.X(), globalIntercept.Y());
hAssociatedTracksLocalPosition->Fill(m_detector->getColumn(localIntercept), m_detector->getRow(localIntercept));
hAssociatedTracksLocalPosition->Fill(localIntercept.X(), localIntercept.Y());
}
if(!has_associated_cluster) {
hUnassociatedTracksGlobalPosition->Fill(globalIntercept.X(), globalIntercept.Y());
......
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