Commit 7ecdb746 authored by Jens Kroeger's avatar Jens Kroeger
Browse files

AnalysisDUT: add 2D plot time residuals vs. ToT to show timewalk

(cherry picked from commit ba855951)
parent 73909a83
......@@ -282,6 +282,16 @@ void AnalysisDUT::initialize() {
1000,
-1000,
+1000);
residualsTimeVsTot = new TH2F("residualsTimeVsTot",
"residualsTimeVsTot; seed pixel ToT [lsb];ts_{track} - ts_{assoc. cluster} [ns]",
20000,
-5000,
5000,
64,
0,
64);
residualsTimeVsSignal = new TH2F("residualsTimeVsSignal",
"residualsTimeVsSignal;cluster charge [e];time_{track}-time_{hit} [mm];# entries",
20000,
......@@ -459,6 +469,7 @@ StatusCode AnalysisDUT::run(const std::shared_ptr<Clipboard>& clipboard) {
// Time residuals
residualsTime->Fill(tdistance);
residualsTimeVsTime->Fill(tdistance, track->timestamp());
residualsTimeVsTot->Fill(tdistance, assoc_cluster->getSeedPixel()->raw());
residualsTimeVsSignal->Fill(tdistance, cluster_charge);
clusterSizeAssoc->Fill(static_cast<double>(assoc_cluster->size()));
......
......@@ -70,6 +70,7 @@ namespace corryvreckan {
TH1F* hTrackCorrelationTime;
TH1F* hTrackZPosDUT;
TH1F* residualsTime;
TH2F* residualsTimeVsTot;
TH2F* residualsTimeVsTime;
TH2F* residualsTimeVsSignal;
......
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