@@ -40,6 +40,7 @@ HLTHighLevel::HLTHighLevel(const edm::ParameterSet& iConfig)
4040 andOr_(iConfig.getParameter<bool >(" andOr" )),
4141 throw_(iConfig.getParameter<bool >(" throw" )),
4242 eventSetupPathsKey_(iConfig.getParameter<std::string>(" eventSetupPathsKey" )),
43+ eventSetupPathsLabel_(iConfig.getParameter<std::string>(" eventSetupPathsLabel" )),
4344 HLTPatterns_(iConfig.getParameter<std::vector<std::string> >(" HLTPaths" )),
4445 HLTPathsByName_(),
4546 HLTPathsByIndex_() {
@@ -55,7 +56,8 @@ HLTHighLevel::HLTHighLevel(const edm::ParameterSet& iConfig)
5556 << HLTPatterns_.size () << " HLTPaths and\n "
5657 << " eventSetupPathsKey " << eventSetupPathsKey_ << " , choose either of them." ;
5758 }
58- alcaRecotriggerBitsToken_ = esConsumes<AlCaRecoTriggerBits, AlCaRecoTriggerBitsRcd>();
59+ alcaRecotriggerBitsToken_ =
60+ esConsumes<AlCaRecoTriggerBits, AlCaRecoTriggerBitsRcd>(edm::ESInputTag (" " , eventSetupPathsLabel_));
5961 watchAlCaRecoTriggerBitsRcd_.emplace ();
6062 }
6163}
@@ -72,6 +74,7 @@ void HLTHighLevel::fillDescriptions(edm::ConfigurationDescriptions& descriptions
7274 desc.add <std::vector<std::string> >(" HLTPaths" , hltPaths);
7375 // # not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
7476 desc.add <std::string>(" eventSetupPathsKey" , " " );
77+ desc.add <std::string>(" eventSetupPathsLabel" , " " );
7578 // # how to deal with multiple triggers: True (OR) accept if ANY is true, False (AND) accept if ALL are true
7679 desc.add <bool >(" andOr" , true );
7780 // # throw exception on unknown path names
0 commit comments