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

AnalysisTimingATLASpix: add hitmap showing only hits from the left tail of the...

AnalysisTimingATLASpix: add hitmap showing only hits from the left tail of the time residual (i.e. large timewalk)

(cherry picked from commit 6e07dd0e)
parent 5be3ddac
......@@ -274,7 +274,7 @@ void AnalysisTimingATLASpix::initialise() {
pitch_y / 2.);
hHitMapAssoc_inPixel_highCharge =
new TH2F("hitMapAssoc_inPixel_highCharge",
"hitMapAssoc_inPixel_highCharge; in-pixel x_{track} [#mum]; in-pixel y_{track} [#mum]",
"hitMapAssoc_inPixel_highCharge;in-pixel x_{track} [#mum];in-pixel y_{track} [#mum]",
static_cast<int>(pitch_x),
-pitch_x / 2.,
pitch_x / 2.,
......@@ -298,6 +298,15 @@ void AnalysisTimingATLASpix::initialise() {
hTotVsTime_high->GetYaxis()->SetTitle("time [s]");
// control plots for "left tail" and "main peak" of time correlation
hInPixelMap_leftTail = new TH2F("hPixelMap_leftTail",
"in-pixel mean track time residual (before correction);in-pixel x_{track} "
"[#mum];in-pixel y_{track} [#mum];# entries",
nbins_x,
-pitch_x / 2.,
pitch_x / 2.,
nbins_y,
-pitch_y / 2.,
pitch_y / 2.);
hClusterMap_leftTail = new TH2F("hClusterMap_leftTail",
"hClusterMap_leftTail; x_{cluster} [px]; x_{cluster} [px]; # entries",
m_detector->nPixels().X(),
......@@ -540,6 +549,9 @@ StatusCode AnalysisTimingATLASpix::run(std::shared_ptr<Clipboard> clipboard) {
}
}
hClusterMapAssoc->Fill(cluster->column(), cluster->row());
if(track->timestamp() - cluster->timestamp() < m_leftTailCut) {
hInPixelMap_leftTail->Fill(xmod, ymod);
}
// !!! Have to do this in the end because it changes the cluster time and position!!!
// row-by-row correction using points from TGraphError directly instead of fit.
......
......@@ -83,6 +83,7 @@ namespace corryvreckan {
TH2F* hTotVsTime_high;
// Control Plots for "left tail" and "main peak" of time correlation
TH2F* hInPixelMap_leftTail;
TH2F* hClusterMap_leftTail;
TH2F* hClusterMap_mainPeak;
TH1F* hTot_leftTail;
......@@ -120,6 +121,7 @@ namespace corryvreckan {
bool m_pointwise_correction_row;
bool m_pointwise_correction_timewalk;
int m_totBinExample;
double m_inpixelBinSize;
int total_tracks_uncut;
int tracks_afterChi2Cut;
......
Markdown is supported
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