diff --git a/EventFilter/HcalRawToDigi/plugins/HcalDigiToRawuHTR.cc b/EventFilter/HcalRawToDigi/plugins/HcalDigiToRawuHTR.cc index a7933213d1fa8..6830e224ddd59 100644 --- a/EventFilter/HcalRawToDigi/plugins/HcalDigiToRawuHTR.cc +++ b/EventFilter/HcalRawToDigi/plugins/HcalDigiToRawuHTR.cc @@ -50,6 +50,7 @@ class HcalDigiToRawuHTR : public edm::global::EDProducer<> { int _verbosity; int tdc1_; int tdc2_; + bool packHBTDC_; static constexpr int tdcmax_ = 49; std::string electronicsMapLabel_; @@ -66,6 +67,7 @@ HcalDigiToRawuHTR::HcalDigiToRawuHTR(const edm::ParameterSet& iConfig) : _verbosity(iConfig.getUntrackedParameter("Verbosity", 0)), tdc1_(iConfig.getParameter("tdc1")), tdc2_(iConfig.getParameter("tdc2")), + packHBTDC_(iConfig.getParameter("packHBTDC")), electronicsMapLabel_(iConfig.getParameter("ElectronicsMap")), tok_QIE10DigiCollection_( consumes >(iConfig.getParameter("QIE10"))), @@ -152,7 +154,7 @@ void HcalDigiToRawuHTR::produce(edm::StreamID id, edm::Event& iEvent, const edm: int presamples = qiedf.presamples(); // convert to hb qie data if hb - if (HcalDetId(detid.rawId()).subdet() == HcalSubdetector::HcalBarrel) + if (packHBTDC_ && HcalDetId(detid.rawId()).subdet() == HcalSubdetector::HcalBarrel) qiedf = convertHB(qiedf, tdc1_, tdc2_, tdcmax_); if (!uhtrs.exist(uhtrIndex)) { @@ -283,6 +285,7 @@ void HcalDigiToRawuHTR::fillDescriptions(edm::ConfigurationDescriptions& descrip desc.addUntracked("Verbosity", 0); desc.add("tdc1", 4); desc.add("tdc2", 20); + desc.add("packHBTDC", true); desc.add("ElectronicsMap", ""); desc.add("QIE10", edm::InputTag("simHcalDigis", "HFQIE10DigiCollection")); desc.add("QIE11", edm::InputTag("simHcalDigis", "HBHEQIE11DigiCollection"));