#include <DataFormats/HLTReco/interface/TriggerEvent.h>
Public Member Functions | |
void | addCollections (const std::vector< edm::InputTag > &collectionTags, const Keys &collectionKeys) |
void | addFilter (const edm::InputTag &filterTag, const Vids &filterIds, const Keys &filterKeys) |
void | addObjects (const TriggerObjectCollection &triggerObjects) |
setters | |
size_type | collectionIndex (const edm::InputTag &collectionTag) const |
find index of collection from collection tag | |
size_type | collectionKey (size_type index) const |
const Keys & | collectionKeys () const |
const edm::InputTag | collectionTag (size_type index) const |
const std::vector< std::string > & | collectionTags () const |
const Vids & | filterIds (size_type index) const |
size_type | filterIndex (const edm::InputTag &filterTag) const |
find index of filter in data-member vector from filter tag | |
const Keys & | filterKeys (size_type index) const |
const edm::InputTag | filterTag (size_type index) const |
const TriggerObjectCollection & | getObjects () const |
size_type | sizeCollections () const |
other | |
size_type | sizeFilters () const |
size_type | sizeObjects () const |
TriggerEvent (const std::string &usedProcessName, size_type nc, size_type no, size_type nf) | |
TriggerEvent () | |
methods | |
const std::string & | usedProcessName () const |
getters | |
Private Attributes | |
Keys | collectionKeys_ |
1-past-end indices into linearised vector | |
std::vector< std::string > | collectionTags_ |
Input tags of packed up collections. | |
std::vector< TriggerFilterObject > | triggerFilters_ |
collection of all TriggerFilterObjects | |
TriggerObjectCollection | triggerObjects_ |
collection of all unique physics objects (linearised vector) | |
std::string | usedProcessName_ |
data members | |
Classes | |
class | TriggerFilterObject |
Helper class: recording trigger objects firing a single filter. More... |
The single EDProduct to be saved for each event (AOD case) describing the (HLT) trigger table.
Definition at line 26 of file TriggerEvent.h.
trigger::TriggerEvent::TriggerEvent | ( | ) | [inline] |
methods
constructors
Definition at line 63 of file TriggerEvent.h.
00063 : usedProcessName_(), collectionTags_(), collectionKeys_(), triggerObjects_(), triggerFilters_() { }
trigger::TriggerEvent::TriggerEvent | ( | const std::string & | usedProcessName, | |
size_type | nc, | |||
size_type | no, | |||
size_type | nf | |||
) | [inline] |
Definition at line 64 of file TriggerEvent.h.
References collectionKeys_, collectionTags_, triggerFilters_, and triggerObjects_.
00064 : 00065 usedProcessName_(usedProcessName), 00066 collectionTags_(), 00067 collectionKeys_(), 00068 triggerObjects_(), 00069 triggerFilters_() 00070 { 00071 collectionTags_.reserve(nc); collectionKeys_.reserve(nc); 00072 triggerObjects_.reserve(no); triggerFilters_.reserve(nf); 00073 }
void trigger::TriggerEvent::addCollections | ( | const std::vector< edm::InputTag > & | collectionTags, | |
const Keys & | collectionKeys | |||
) | [inline] |
Definition at line 77 of file TriggerEvent.h.
References collectionKeys_, collectionTags_, encode(), i, and n.
00077 { 00078 assert(collectionTags.size()==collectionKeys.size()); 00079 const size_type n(collectionTags.size()); 00080 for (size_type i=0; i!=n; ++i) { 00081 collectionTags_.push_back(collectionTags[i].encode()); 00082 } 00083 collectionKeys_.insert(collectionKeys_.end(), collectionKeys.begin(), collectionKeys.end()); 00084 }
void trigger::TriggerEvent::addFilter | ( | const edm::InputTag & | filterTag, | |
const Vids & | filterIds, | |||
const Keys & | filterKeys | |||
) | [inline] |
Definition at line 86 of file TriggerEvent.h.
References triggerFilters_.
00086 {triggerFilters_.push_back(TriggerFilterObject(filterTag, filterIds, filterKeys));}
void trigger::TriggerEvent::addObjects | ( | const TriggerObjectCollection & | triggerObjects | ) | [inline] |
setters
Definition at line 76 of file TriggerEvent.h.
References triggerObjects_.
00076 {triggerObjects_.insert(triggerObjects_.end(), triggerObjects.begin(), triggerObjects.end());}
size_type trigger::TriggerEvent::collectionIndex | ( | const edm::InputTag & | collectionTag | ) | const [inline] |
find index of collection from collection tag
Definition at line 101 of file TriggerEvent.h.
References collectionTags_, edm::InputTag::encode(), i, and n.
00101 { 00102 const std::string encodedCollectionTag(collectionTag.encode()); 00103 const size_type n(collectionTags_.size()); 00104 for (size_type i=0; i!=n; ++i) { 00105 if (encodedCollectionTag==collectionTags_[i]) {return i;} 00106 } 00107 return n; 00108 }
Definition at line 95 of file TriggerEvent.h.
References collectionKeys_.
00095 {return collectionKeys_.at(index);}
const Keys& trigger::TriggerEvent::collectionKeys | ( | ) | const [inline] |
Definition at line 91 of file TriggerEvent.h.
References collectionKeys_.
00091 {return collectionKeys_;}
const edm::InputTag trigger::TriggerEvent::collectionTag | ( | size_type | index | ) | const [inline] |
Definition at line 94 of file TriggerEvent.h.
References collectionTags_.
00094 {return edm::InputTag(collectionTags_.at(index));}
const std::vector<std::string>& trigger::TriggerEvent::collectionTags | ( | ) | const [inline] |
Definition at line 90 of file TriggerEvent.h.
References collectionTags_.
00090 {return collectionTags_;}
Definition at line 97 of file TriggerEvent.h.
References triggerFilters_.
00097 {return triggerFilters_.at(index).filterIds_;}
size_type trigger::TriggerEvent::filterIndex | ( | const edm::InputTag & | filterTag | ) | const [inline] |
find index of filter in data-member vector from filter tag
Definition at line 110 of file TriggerEvent.h.
References edm::InputTag::encode(), i, n, and triggerFilters_.
00110 { 00111 const std::string encodedFilterTag(filterTag.encode()); 00112 const size_type n(triggerFilters_.size()); 00113 for (size_type i=0; i!=n; ++i) { 00114 if (encodedFilterTag==triggerFilters_[i].filterTag_) {return i;} 00115 } 00116 return n; 00117 }
Definition at line 98 of file TriggerEvent.h.
References triggerFilters_.
00098 {return triggerFilters_.at(index).filterKeys_;}
const edm::InputTag trigger::TriggerEvent::filterTag | ( | size_type | index | ) | const [inline] |
Definition at line 96 of file TriggerEvent.h.
References triggerFilters_.
00096 {return edm::InputTag(triggerFilters_.at(index).filterTag_);}
const TriggerObjectCollection& trigger::TriggerEvent::getObjects | ( | ) | const [inline] |
Definition at line 92 of file TriggerEvent.h.
References triggerObjects_.
00092 {return triggerObjects_;}
size_type trigger::TriggerEvent::sizeCollections | ( | ) | const [inline] |
other
Definition at line 120 of file TriggerEvent.h.
References collectionTags_.
00120 {return collectionTags_.size();}
size_type trigger::TriggerEvent::sizeFilters | ( | ) | const [inline] |
Definition at line 122 of file TriggerEvent.h.
References triggerFilters_.
00122 {return triggerFilters_.size();}
size_type trigger::TriggerEvent::sizeObjects | ( | ) | const [inline] |
Definition at line 121 of file TriggerEvent.h.
References triggerObjects_.
00121 {return triggerObjects_.size();}
const std::string& trigger::TriggerEvent::usedProcessName | ( | ) | const [inline] |
getters
Definition at line 89 of file TriggerEvent.h.
References usedProcessName_.
00089 {return usedProcessName_;}
Keys trigger::TriggerEvent::collectionKeys_ [private] |
1-past-end indices into linearised vector
Definition at line 54 of file TriggerEvent.h.
Referenced by addCollections(), collectionKey(), collectionKeys(), and TriggerEvent().
std::vector<std::string> trigger::TriggerEvent::collectionTags_ [private] |
Input tags of packed up collections.
Definition at line 52 of file TriggerEvent.h.
Referenced by addCollections(), collectionIndex(), collectionTag(), collectionTags(), sizeCollections(), and TriggerEvent().
std::vector<TriggerFilterObject> trigger::TriggerEvent::triggerFilters_ [private] |
collection of all TriggerFilterObjects
Definition at line 58 of file TriggerEvent.h.
Referenced by addFilter(), filterIds(), filterIndex(), filterKeys(), filterTag(), sizeFilters(), and TriggerEvent().
collection of all unique physics objects (linearised vector)
Definition at line 56 of file TriggerEvent.h.
Referenced by addObjects(), getObjects(), sizeObjects(), and TriggerEvent().
std::string trigger::TriggerEvent::usedProcessName_ [private] |
data members
processName used to select products packed up
Definition at line 50 of file TriggerEvent.h.
Referenced by usedProcessName().