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

AnalysisDUT: correct filling of hAssociatedTracksLocalPosition

(cherry picked from commit f249f2cf)
parent 3b1bacd9
...@@ -293,10 +293,10 @@ void AnalysisDUT::initialise() { ...@@ -293,10 +293,10 @@ void AnalysisDUT::initialise() {
10); 10);
hAssociatedTracksLocalPosition = new TH2F("hAssociatedTracksLocalPosition", hAssociatedTracksLocalPosition = new TH2F("hAssociatedTracksLocalPosition",
"hAssociatedTracksLocalPosition;local intercept x [px];local intercept y [px]", "hAssociatedTracksLocalPosition;local intercept x [px];local intercept y [px]",
m_detector->nPixels().X(), 10 * m_detector->nPixels().X(),
-0.5, -0.5,
m_detector->nPixels().X() - 0.5, m_detector->nPixels().X() - 0.5,
m_detector->nPixels().Y(), 10 * m_detector->nPixels().Y(),
-0.5, -0.5,
m_detector->nPixels().Y() - 0.5); m_detector->nPixels().Y() - 0.5);
hUnassociatedTracksGlobalPosition = hUnassociatedTracksGlobalPosition =
...@@ -496,7 +496,7 @@ StatusCode AnalysisDUT::run(std::shared_ptr<Clipboard> clipboard) { ...@@ -496,7 +496,7 @@ StatusCode AnalysisDUT::run(std::shared_ptr<Clipboard> clipboard) {
rmsxyvsxmym->Fill(xmod, ymod, fabs(sqrt(xdistance * xdistance + ydistance * ydistance))); rmsxyvsxmym->Fill(xmod, ymod, fabs(sqrt(xdistance * xdistance + ydistance * ydistance)));
} }
hAssociatedTracksGlobalPosition->Fill(globalIntercept.X(), globalIntercept.Y()); hAssociatedTracksGlobalPosition->Fill(globalIntercept.X(), globalIntercept.Y());
hAssociatedTracksLocalPosition->Fill(localIntercept.X(), localIntercept.Y()); hAssociatedTracksLocalPosition->Fill(m_detector->getColumn(localIntercept), m_detector->getRow(localIntercept));
} }
if(!has_associated_cluster) { if(!has_associated_cluster) {
hUnassociatedTracksGlobalPosition->Fill(globalIntercept.X(), globalIntercept.Y()); 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