Commit f5cac97e authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Merge branch 'fix_analysistimingapx' into 'master'

Change defaults in [AnalysisTimingATLASpix]

See merge request !203
parents 24829343 bd8d6003
Pipeline #1254889 passed with stages
in 13 minutes and 6 seconds
......@@ -26,10 +26,15 @@ AnalysisTimingATLASpix::AnalysisTimingATLASpix(Configuration config, std::shared
m_timingCut = m_config.get<double>("timing_cut", static_cast<double>(Units::convert(1000, "ns")));
m_chi2ndofCut = m_config.get<double>("chi2ndof_cut", 3.);
m_timeCutFrameEdge = m_config.get<double>("time_cut_frameedge", static_cast<double>(Units::convert(20, "ns")));
m_clusterChargeCut = m_config.get<double>("cluster_charge_cut", 100000.);
m_clusterSizeCut = m_config.get<size_t>("cluster_size_cut", static_cast<size_t>(100));
if(m_config.has("cluster_charge_cut")) {
m_clusterChargeCut = m_config.get<double>("cluster_charge_cut");
}
if(m_config.has("cluster_size_cut")) {
m_clusterSizeCut = m_config.get<size_t>("cluster_size_cut");
}
m_highTotCut = m_config.get<int>("high_tot_cut", 40);
m_highChargeCut = m_config.get<double>("high_charge_cut", 40.);
m_highChargeCut = m_config.get<double>("high_charge_cut", static_cast<double>(m_highTotCut));
m_leftTailCut = m_config.get<double>("left_tail_cut", static_cast<double>(Units::convert(-10, "ns")));
if(m_config.has("correction_file_row")) {
......@@ -441,13 +446,13 @@ StatusCode AnalysisTimingATLASpix::run(std::shared_ptr<Clipboard> clipboard) {
has_associated_cluster = true;
matched_tracks++;
if(cluster->charge() > m_clusterChargeCut) {
if(m_config.has("cluster_charge_cut") && cluster->charge() > m_clusterChargeCut) {
LOG(DEBUG) << " - track discarded due to clusterChargeCut";
continue;
}
tracks_afterClusterChargeCut++;
if(cluster->size() > m_clusterSizeCut) {
if(m_config.has("cluster_size_cut") && cluster->size() > m_clusterSizeCut) {
LOG(DEBUG) << " - track discarded due to clusterSizeCut";
continue;
}
......
......@@ -19,10 +19,10 @@ After this both corrections can be applied on top of each other.
* `timing_cut`: Timing cut for associating a track with an ATLASpix cluster. Defaults to `1us`.
* `chi2ndof_cut`: Acceptance criterion for telescope tracks, defaults to a value of `3`.
* `time_cut_frameedge`: Parameter to discard telescope tracks at the frame edges (start and end of the current frame). Defaults to `20ns`.
* `cluster_charge_cut`: Parameter to discard clusters with a charge larger than the cut. Defaults to `100000e` (inifitely large).
* `cluster_size_cut`: Parameter to discard clusters with a size too large, only for debugging purposes, default is 100 (inifitely large).
* `cluster_charge_cut`: Parameter to discard clusters with a charge larger than the cut. No default, not used if not set.
* `cluster_size_cut`: Parameter to discard clusters with a size too large, only for debugging purposes. No default, not used if not set.
* `high_tot_cut`: Cut dividing 'low' and 'high' ToT events (based on seed pixel ToT). Defaults to `40`.
* `high_charge_cut`: Cut dividing 'low' and 'high' charge events (based on cluster charge). Defaults to `40e`.
* `high_charge_cut`: Cut dividing 'low' and 'high' charge events (based on cluster charge in electrons). Defaults to `high_tot_cut` (modify when calibration is available).
* `left_tail_cut`: Cut to divide into left tail and main peak of time correlation histogram. Only used to investigate characteristics of left tail. Defaults to `-10ns`.
* `calc_corrections`: If `true`, TGraphErrors for row and timewalk corrections are produced.
* `correction_file_row`, `correction_file_timewalk`. Defaults to `false`.
......
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