Commit ee2b1123 authored by Jens Kroeger's avatar Jens Kroeger Committed by Simon Spannagel
Browse files

Timing Analysis APX: new histogram 'TimeResidualOverTime'

parent f7cadb31
......@@ -78,6 +78,12 @@ void AnalysisTimingATLASpix::initialise() {
hTrackCorrelationTimeAssoc->GetXaxis()->SetTitle("track time stamp - cluster time stamp [ns]");
hTrackCorrelationTimeAssoc->GetYaxis()->SetTitle("# events");
name = "hTrackCorrelationTimeAssocVsTime";
hTrackCorrelationTimeAssocVsTime = new TH2F(name.c_str(), name.c_str(), 3e3, 0, 3e3, 1e3, -5, 5);
hTrackCorrelationTimeAssocVsTime->GetYaxis()->SetTitle("track time stamp - cluster time stamp [us]");
hTrackCorrelationTimeAssocVsTime->GetXaxis()->SetTitle("time [s]");
hTrackCorrelationTimeAssocVsTime->GetYaxis()->SetTitle("# events");
name = "hTrackCorrelationTime_rowCorr";
std::string title = "hTrackCorrelationTime_rowCorr: row-by-row correction";
hTrackCorrelationTime_rowCorr =
......@@ -449,6 +455,8 @@ StatusCode AnalysisTimingATLASpix::run(std::shared_ptr<Clipboard> clipboard) {
double timeDiff = track->timestamp() - cluster->timestamp();
hTrackCorrelationTimeAssoc->Fill(timeDiff);
hTrackCorrelationTimeAssocVsTime->Fill(static_cast<double>(Units::convert(cluster->timestamp(), "s")),
static_cast<double>(Units::convert(timeDiff, "us")));
hTrackCorrelationTimeVsTot->Fill(timeDiff, cluster->getSeedPixel()->raw());
hTrackCorrelationTimeVsCol->Fill(timeDiff, cluster->getSeedPixel()->column());
......
......@@ -53,6 +53,7 @@ namespace corryvreckan {
TH1F* hClusterTimeMinusPixelTime;
// 2D histograms:
TH2F* hTrackCorrelationTimeAssocVsTime;
TH2F* hTrackCorrelationTimeVsCol; // control plot only
TH2F* hTrackCorrelationTimeVsRow;
TH2F* hTrackCorrelationTimeVsRow_1px;
......
......@@ -50,6 +50,7 @@ After this both corrections can be applied on top of each other.
* Cluster size for main peak events in time correlation (track timestamp - cluster timestamp > left_tail_cut)
* 2D histograms
* Track time correlation vs. time (track-associated clusters)
* Track time correlation vs. column (only control plot)
* Track time correlation vs. cluster row (for row correction)
* Track time correlation vs. cluster row (only single pixel clusters)
......
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