Skip to content
Snippets Groups Projects
Commit 6e07dd0e 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)
parent 53602e04
No related branches found
No related tags found
No related merge requests found
...@@ -273,7 +273,7 @@ void AnalysisTimingATLASpix::initialise() { ...@@ -273,7 +273,7 @@ void AnalysisTimingATLASpix::initialise() {
pitch_y / 2.); pitch_y / 2.);
hHitMapAssoc_inPixel_highCharge = hHitMapAssoc_inPixel_highCharge =
new TH2F("hitMapAssoc_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), static_cast<int>(pitch_x),
-pitch_x / 2., -pitch_x / 2.,
pitch_x / 2., pitch_x / 2.,
...@@ -297,6 +297,15 @@ void AnalysisTimingATLASpix::initialise() { ...@@ -297,6 +297,15 @@ void AnalysisTimingATLASpix::initialise() {
hTotVsTime_high->GetYaxis()->SetTitle("time [s]"); hTotVsTime_high->GetYaxis()->SetTitle("time [s]");
// control plots for "left tail" and "main peak" of time correlation // 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 = new TH2F("hClusterMap_leftTail",
"hClusterMap_leftTail; x_{cluster} [px]; x_{cluster} [px]; # entries", "hClusterMap_leftTail; x_{cluster} [px]; x_{cluster} [px]; # entries",
m_detector->nPixels().X(), m_detector->nPixels().X(),
...@@ -539,6 +548,9 @@ StatusCode AnalysisTimingATLASpix::run(std::shared_ptr<Clipboard> clipboard) { ...@@ -539,6 +548,9 @@ StatusCode AnalysisTimingATLASpix::run(std::shared_ptr<Clipboard> clipboard) {
} }
} }
hClusterMapAssoc->Fill(cluster->column(), cluster->row()); 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!!! // !!! 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. // row-by-row correction using points from TGraphError directly instead of fit.
......
...@@ -82,6 +82,7 @@ namespace corryvreckan { ...@@ -82,6 +82,7 @@ namespace corryvreckan {
TH2F* hTotVsTime_high; TH2F* hTotVsTime_high;
// Control Plots for "left tail" and "main peak" of time correlation // Control Plots for "left tail" and "main peak" of time correlation
TH2F* hInPixelMap_leftTail;
TH2F* hClusterMap_leftTail; TH2F* hClusterMap_leftTail;
TH2F* hClusterMap_mainPeak; TH2F* hClusterMap_mainPeak;
TH1F* hTot_leftTail; TH1F* hTot_leftTail;
...@@ -119,6 +120,7 @@ namespace corryvreckan { ...@@ -119,6 +120,7 @@ namespace corryvreckan {
bool m_pointwise_correction_row; bool m_pointwise_correction_row;
bool m_pointwise_correction_timewalk; bool m_pointwise_correction_timewalk;
int m_totBinExample; int m_totBinExample;
double m_inpixelBinSize;
int total_tracks_uncut; int total_tracks_uncut;
int tracks_afterChi2Cut; int tracks_afterChi2Cut;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment