Commit 150e1195 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Merge branch 'cleanup_analysistimingapx' into 'master'

Tracking4D: tracks over time histogram

See merge request corryvreckan/corryvreckan!426
parents 02ef190b 57410004
Pipeline #3521715 passed with stages
in 27 minutes and 41 seconds
......@@ -101,6 +101,7 @@ void Tracking4D::initialize() {
trackTimeTrigger = new TH1F("trackTimeTrigger", title.c_str(), 1000, -230.4, 230.4);
title = "Track time with respect to first trigger vs. track chi2;track time - trigger;track #chi^{2};events";
trackTimeTriggerChi2 = new TH2F("trackTimeTriggerChi2", title.c_str(), 1000, -230.4, 230.4, 15, 0, 15);
tracksVsTime = new TH1F("tracksVsTime", "Number of tracks vs. time; time [s]; # entries", 3e6, 0, 3e3);
// Loop over all planes
for(auto& detector : get_regular_detectors(true)) {
......@@ -542,6 +543,7 @@ StatusCode Tracking4D::run(const std::shared_ptr<Clipboard>& clipboard) {
trackChi2->Fill(track->getChi2());
clustersPerTrack->Fill(static_cast<double>(track->getNClusters()));
trackChi2ndof->Fill(track->getChi2ndof());
tracksVsTime->Fill(track->timestamp() / 1.0e9);
if(!(track_model_ == "gbl")) {
trackAngleX->Fill(atan(track->getDirection(track->getClusters().front()->detectorID()).X()));
trackAngleY->Fill(atan(track->getDirection(track->getClusters().front()->detectorID()).Y()));
......
......@@ -45,6 +45,7 @@ namespace corryvreckan {
TH1F* tracksPerEvent;
TH1F* trackAngleX;
TH1F* trackAngleY;
TH1F* tracksVsTime;
std::map<std::string, TH1F*> residualsX_local;
std::map<std::string, TH1F*> residualsXwidth1_local;
std::map<std::string, TH1F*> residualsXwidth2_local;
......
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