Commit 56100f85 authored by Jens Kroeger's avatar Jens Kroeger
Browse files

AnalysisTimingATLASpix: remove default from cluster_charge/size_cut and only use when set in config

parent 99079c94
......@@ -26,8 +26,13 @@ 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", -1.);
m_clusterSizeCut = m_config.get<size_t>("cluster_size_cut", static_cast<size_t>(-1));
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", static_cast<double>(m_highTotCut));
m_leftTailCut = m_config.get<double>("left_tail_cut", static_cast<double>(Units::convert(-10, "ns")));
......@@ -441,13 +446,13 @@ StatusCode AnalysisTimingATLASpix::run(std::shared_ptr<Clipboard> clipboard) {
has_associated_cluster = true;
matched_tracks++;
if(m_clusterChargeCut > 0 && 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(m_clusterSizeCut > 0 && cluster->size() > m_clusterSizeCut) {
if(m_config.has("cluster_size_cut") && cluster->size() > m_clusterSizeCut) {
LOG(DEBUG) << " - track discarded due to clusterSizeCut";
continue;
}
......
Supports Markdown
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