1 #ifndef HLTCollectionProducer_h 2 #define HLTCollectionProducer_h 54 : hltObjectTag_(iConfig.getParameter<
edm::
InputTag>(
"HLTObject")),
55 hltObjectToken_(consumes<
trigger::TriggerFilterObjectWithRefs>(hltObjectTag_)),
56 triggerTypes_(iConfig.getParameter<
std::
vector<
int>>(
"TriggerTypes")) {
57 produces<std::vector<T>>();
81 std::unique_ptr<std::vector<T>>
collection(
new std::vector<T>());
85 iEvent.getByToken(hltObjectToken_, hltObject);
86 std::vector<edm::Ref<std::vector<T>>> objectRefs;
88 for (
size_t t = 0;
t < triggerTypes_.size(); ++
t) {
90 hltObject->
getObjects(triggerTypes_[
t], objectRefs);
91 for (
size_t i = 0;
i < objectRefs.size(); ++
i) {
99 #endif // HLTCollectionProducer_h void getObjects(Vids &ids, VRphoton &refs) const
various physics-level getters:
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
~HLTCollectionProducer() override
std::string defaultModuleLabel()
HLTCollectionProducer(const edm::ParameterSet &)
const std::vector< int > triggerTypes_
const edm::EDGetTokenT< trigger::TriggerFilterObjectWithRefs > hltObjectToken_
const edm::InputTag hltObjectTag_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)