diff --git a/include/Hcal/HcalVetoProcessor.h b/include/Hcal/HcalVetoProcessor.h index 7762a43..0b282e7 100644 --- a/include/Hcal/HcalVetoProcessor.h +++ b/include/Hcal/HcalVetoProcessor.h @@ -52,11 +52,10 @@ class HcalVetoProcessor : public framework::Producer { /** Maximum hit time that should be considered by the veto. */ float maxTime_{50}; // ns - /** Maximum z depth that a hit can have. */ - float maxDepth_{4000}; // mm + /** The minimum number of PE in both bars needed for a hit to be considered in + * double ended readout mode. */ + float backMinPE_{1}; - /** The minimum number of PE needed for a hit. */ - float minPE_{1}; }; // HcalVetoProcessor } // namespace hcal diff --git a/src/Hcal/HcalVetoProcessor.cxx b/src/Hcal/HcalVetoProcessor.cxx index 3bcd11a..fb54de6 100644 --- a/src/Hcal/HcalVetoProcessor.cxx +++ b/src/Hcal/HcalVetoProcessor.cxx @@ -22,7 +22,22 @@ HcalVetoProcessor::~HcalVetoProcessor() {} void HcalVetoProcessor::configure(framework::config::Parameters ¶meters) { totalPEThreshold_ = parameters.getParameter("pe_threshold"); maxTime_ = parameters.getParameter("max_time"); - minPE_ = parameters.getParameter("back_min_pe"); + outputCollName_ = parameters.getParameter("output_coll_name"); + inputHitCollName_ = + parameters.getParameter("input_hit_coll_name"); + inputHitPassName_ = + parameters.getParameter("input_hit_pass_name"); + + double maxDepth_ = parameters.getParameter("max_depth", 0.); + if (maxDepth_ != 0.) { + EXCEPTION_RAISE( + "InvalidParam", + "Earlier versions of the Hcal veto defined a max depth for " + "positions which is no longer implemented. Remove the " + "parameter (max_depth) from your configuration. See " + "https://github.com/LDMX-Software/Hcal/issues/61 for details"); + } + backMinPE_ = parameters.getParameter("back_min_pe"); } void HcalVetoProcessor::produce(framework::Event &event) {