1 #ifndef HLTReco_TriggerEvent_h 2 #define HLTReco_TriggerEvent_h 19 #include <string_view> 115 auto const idx =
tag.find(
':');
const Keys & filterKeys(trigger::size_type index) const
const std::vector< std::string > & collectionTags() const
The single EDProduct to be saved for each event (AOD case)
trigger::size_type collectionKey(trigger::size_type index) const
trigger::size_type sizeFilters() const
TriggerFilterObject(const edm::InputTag &filterTag)
std::vector< std::string > collectionTags_
Input tags of packed up collections.
const std::string & collectionTagEncoded(trigger::size_type index) const
const edm::InputTag collectionTag(trigger::size_type index) const
void addCollections(const std::vector< edm::InputTag > &collectionTags, const Keys &collectionKeys)
void addCollections(const std::vector< std::string > &collectionTags, const Keys &collectionKeys)
const edm::InputTag filterTag(trigger::size_type index) const
TriggerObjectCollection triggerObjects_
collection of all unique physics objects (linearised vector)
TriggerFilterObject()
constructors
trigger::size_type sizeCollections() const
other
const TriggerObjectCollection & getObjects() const
trigger::size_type sizeObjects() const
void addFilter(const edm::InputTag &filterTag, const Vids &filterIds, const Keys &filterKeys)
TriggerFilterObject(const edm::InputTag &filterTag, const Vids &filterIds, const Keys &filterKeys)
std::string filterTag_
encoded InputTag of filter product
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
Keys collectionKeys_
1-past-end indices into linearised vector
std::string usedProcessName_
data members
const Vids & filterIds(trigger::size_type index) const
std::vector< TriggerFilterObject > triggerFilters_
collection of all TriggerFilterObjects
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
std::vector< size_type > Keys
Vids filterIds_
physics object type as per filter
Keys filterKeys_
indices pointing into collection of unique TriggerObjects
const std::string & filterTagEncoded(trigger::size_type index) const
trigger::size_type collectionIndex(const edm::InputTag &collectionTag) const
find index of collection from collection tag
const std::string & usedProcessName() const
getters
void addObjects(const TriggerObjectCollection &triggerObjects)
setters
std::string_view filterLabel(trigger::size_type index) const
Helper class: recording trigger objects firing a single filter.
const Keys & collectionKeys() const
TriggerEvent(const std::string &usedProcessName, trigger::size_type nc, trigger::size_type no, trigger::size_type nf)