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

AnalysisEfficiency: Add new TEfficiency plot showing the efficiency vs time (up to 3000sec)

parent 9e16026a
......@@ -169,6 +169,7 @@ void AnalysisEfficiency::initialize() {
m_detector->nPixels().Y(),
-0.5,
m_detector->nPixels().Y() - 0.5);
efficiencyVsTime = new TEfficiency("efficiencyVsTime", "Efficiency vs. time; time [s]; #epsilon", 3000, 0, 3000);
hTrackTimeToPrevHit_matched =
new TH1D("trackTimeToPrevHit_matched", "trackTimeToPrevHit_matched;time to prev hit [us];# events", 1e6, 0, 1e6);
......@@ -368,6 +369,7 @@ StatusCode AnalysisEfficiency::run(const std::shared_ptr<Clipboard>& clipboard)
eTotalEfficiency->Fill(has_associated_cluster, 0); // use 0th bin for total efficiency
efficiencyColumns->Fill(has_associated_cluster, m_detector->getColumn(localIntercept));
efficiencyRows->Fill(has_associated_cluster, m_detector->getRow(localIntercept));
efficiencyVsTime->Fill(has_associated_cluster, track->timestamp() / 1e9); // convert nanoseconds to seconds
}
auto intercept_col = static_cast<size_t>(m_detector->getColumn(localIntercept));
......
......@@ -61,6 +61,7 @@ namespace corryvreckan {
TEfficiency* eTotalEfficiency;
TEfficiency* efficiencyColumns;
TEfficiency* efficiencyRows;
TEfficiency* efficiencyVsTime;
TH1D* hDistanceCluster;
TH1D* hTimeDiffPrevTrack_assocCluster;
......
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