Commit 7b11e7ed authored by Lennart Huth's avatar Lennart Huth
Browse files

added Parameter to steer the ntrack rejection at the edges

parent 4e2026dd
......@@ -20,6 +20,7 @@ AnalysisEfficiency::AnalysisEfficiency(Configuration config, std::shared_ptr<Det
m_detector = detector;
m_timeCutFrameEdge = m_config.get<double>("time_cut_frameedge", Units::get<double>(20, "ns"));
m_pixelTolerance = m_config.get<double>("pixel_toleracnce", 1.);
m_chi2ndofCut = m_config.get<double>("chi2ndof_cut", 3.);
}
......@@ -111,7 +112,7 @@ StatusCode AnalysisEfficiency::run(std::shared_ptr<Clipboard> clipboard) {
auto globalIntercept = m_detector->getIntercept(track);
auto localIntercept = m_detector->globalToLocal(globalIntercept);
if(!m_detector->hasIntercept(track, 1.)) {
if(!m_detector->hasIntercept(track, m_pixelTolerance)) {
LOG(DEBUG) << " - track outside DUT area: " << localIntercept;
continue;
}
......
......@@ -45,7 +45,7 @@ namespace corryvreckan {
TProfile2D* hChipEfficiencyMap_clustPos;
TProfile2D* hGlobalEfficiencyMap_clustPos;
double m_chi2ndofCut, m_timeCutFrameEdge;
double m_chi2ndofCut, m_timeCutFrameEdge, m_pixelTolerance;
int total_tracks, matched_tracks;
};
......
......@@ -8,6 +8,8 @@
This module measures the efficiency of the device under test by comparing its cluster positions with the interpolated track position at the DUT.
### Parameters
* `pixel_tolerance`: Parameter to discard tracks, which are extrapolated to
the edge of the DUT. Defaults to `1.`, which excludes column/row zero and max.
* `time_cut_frameedge`: Parameter to discard telescope tracks at the frame edges (start and end of the current event window). Defaults to `20ns`.
* `chi2ndof_cut`: Acceptance criterion for telescope tracks, defaults to a value of `3`.
......
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