Commit 672cf81f authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Add aliases for timing_cut to AnalysisAPXTiming and Prealignment

parent 70c8dbee
Pipeline #1259405 passed with stages
in 13 minutes and 26 seconds
......@@ -21,6 +21,9 @@ using namespace corryvreckan;
AnalysisTimingATLASpix::AnalysisTimingATLASpix(Configuration config, std::shared_ptr<Detector> detector)
: Module(std::move(config), detector) {
// Backwards compatibilty: also allow timing_cut to be used for time_cut_abs
m_config.setAlias("time_cut_abs", "timing_cut", true);
using namespace ROOT::Math;
m_detector = detector;
if(config.count({"time_cut_rel", "time_cut_abs"}) > 1) {
......
......@@ -8,6 +8,10 @@ Prealignment::Prealignment(Configuration config, std::shared_ptr<Detector> detec
max_correlation_rms = m_config.get<double>("max_correlation_rms", Units::get<double>(6, "mm"));
damping_factor = m_config.get<double>("damping_factor", 1.0);
// Backwards compatibilty: also allow timing_cut to be used for time_cut_abs
m_config.setAlias("time_cut_abs", "timing_cut", true);
if(m_config.count({"time_cut_rel", "time_cut_abs"}) > 1) {
throw InvalidCombinationError(
m_config, {"time_cut_rel", "time_cut_abs"}, "Absolute and relative time cuts are mutually exclusive.");
......
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