Commit f82886e9 authored by Paul Jean Schutze's avatar Paul Jean Schutze
Browse files

Merge branch 'efficiency_vs_time' into 'master'

Efficiency vs time

See merge request !431
parents 9e16026a 053f4dfe
Pipeline #2675029 passed with stages
in 30 minutes and 29 seconds
......@@ -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;
......
......@@ -40,7 +40,7 @@ For the DUT, the following plots are produced:
* Other:
* Value of total efficiency as `TEfficiency` including (asymmetric) error bars
* Efficiency as function of column and row
* Efficiency as function of column and row, and vs. time
### Usage
......
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