Commit f08fd1ff authored by Morag Jean Williams's avatar Morag Jean Williams
Browse files

Adding parameter pixel_bin_size to configure the bin size used in each axis of...

Adding parameter pixel_bin_size to configure the bin size used in each axis of the 2D in-pixel efficiency plot created in module AnalysisEfficiency.
parent 556c2202
......@@ -20,8 +20,9 @@ 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_pixelTolerance = m_config.get<double>("pixel_tolerance", 1.);
m_chi2ndofCut = m_config.get<double>("chi2ndof_cut", 3.);
m_inpixelBinSize = m_config.get<double>("inpixel_bin_size", Units::get<double>(1.0, "um"));
void AnalysisEfficiency::initialise() {
......@@ -33,10 +34,10 @@ void AnalysisEfficiency::initialise() {
"#mum;y_{track} mod " + std::to_string(pitch_y) + "#mum;efficiency";
hPixelEfficiencyMap_trackPos = new TProfile2D("pixelEfficiencyMap_trackPos",
static_cast<int>(ceil(pitch_x / m_inpixelBinSize)),
static_cast<int>(ceil(pitch_y / m_inpixelBinSize)),
......@@ -45,7 +45,7 @@ namespace corryvreckan {
TProfile2D* hChipEfficiencyMap_clustPos;
TProfile2D* hGlobalEfficiencyMap_clustPos;
double m_chi2ndofCut, m_timeCutFrameEdge, m_pixelTolerance;
double m_chi2ndofCut, m_timeCutFrameEdge, m_pixelTolerance, m_inpixelBinSize;
int total_tracks, matched_tracks;
......@@ -12,6 +12,7 @@ This module measures the efficiency of the device under test by comparing its cl
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`.
* `inpixel_bin_size`: Parameter to set the bin size of the in-pixel 2D efficiency histogram. This should be given in units of distance and the same value is used in both axes. Defaults to `1.0um`.
### Plots produced
* 2D Map of in-pixel efficiency
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