![]() |
![]() |
#include <TriggerFilterObjectWithRefs.h>
Public Member Functions | |
void | addCollectionTag (const edm::InputTag &collectionTag) |
collectionTags | |
void | getCollectionTags (std::vector< edm::InputTag > &collectionTags) const |
const std::vector< std::string > & | getCollectionTagsAsStrings () const |
low-level technical accessor | |
int | module () const |
int | path () const |
accessors | |
void | swap (TriggerFilterObjectWithRefs &other) |
utility | |
TriggerFilterObjectWithRefs (int path, int module) | |
TriggerFilterObjectWithRefs () | |
methods | |
Private Attributes | |
std::vector< std::string > | collectionTags_ |
int | module_ |
int | path_ |
data members |
Transient book-keeping EDProduct filled by HLTFilter module to record physics objects firing the filter (never persistet in production; same functionality but different implementation compared to the old HLT data model's HLTFilterObjectWithRefs class)
If HLT cuts of intermediate or final HLT filters are satisfied, instances of this class hold the combination of reconstructed physics objects (e/gamma/mu/jet/MMet...) satisfying the cuts.
This implementation is not completely space-efficient as some physics object containers may stay empty. However, the big advantage is that the solution is generic, i.e., works for all possible HLT filters. Hence we accept the reasonably small overhead of empty containers.
Definition at line 38 of file TriggerFilterObjectWithRefs.h.
trigger::TriggerFilterObjectWithRefs::TriggerFilterObjectWithRefs | ( | ) | [inline] |
methods
constructors
Definition at line 49 of file TriggerFilterObjectWithRefs.h.
: TriggerRefsCollections(), path_(-9), module_(-9), collectionTags_() { }
trigger::TriggerFilterObjectWithRefs::TriggerFilterObjectWithRefs | ( | int | path, |
int | module | ||
) | [inline] |
Definition at line 55 of file TriggerFilterObjectWithRefs.h.
: TriggerRefsCollections(), path_(path), module_(module), collectionTags_() { }
void trigger::TriggerFilterObjectWithRefs::addCollectionTag | ( | const edm::InputTag & | collectionTag | ) | [inline] |
collectionTags
Definition at line 66 of file TriggerFilterObjectWithRefs.h.
References collectionTags_, and edm::InputTag::encode().
{ collectionTags_.push_back(collectionTag.encode()); }
void trigger::TriggerFilterObjectWithRefs::getCollectionTags | ( | std::vector< edm::InputTag > & | collectionTags | ) | const [inline] |
Definition at line 70 of file TriggerFilterObjectWithRefs.h.
References collectionTags_, i, and n.
{ const trigger::size_type n(collectionTags_.size()); collectionTags.resize(n); for (trigger::size_type i=0; i!=n; ++i) { collectionTags[i]=edm::InputTag(collectionTags_[i]); } }
const std::vector<std::string>& trigger::TriggerFilterObjectWithRefs::getCollectionTagsAsStrings | ( | ) | const [inline] |
low-level technical accessor
Definition at line 79 of file TriggerFilterObjectWithRefs.h.
References collectionTags_.
{ return collectionTags_; }
int trigger::TriggerFilterObjectWithRefs::module | ( | ) | const [inline] |
int trigger::TriggerFilterObjectWithRefs::path | ( | ) | const [inline] |
accessors
Definition at line 62 of file TriggerFilterObjectWithRefs.h.
References path_.
{return path_;}
void trigger::TriggerFilterObjectWithRefs::swap | ( | TriggerFilterObjectWithRefs & | other | ) | [inline] |
utility
Definition at line 84 of file TriggerFilterObjectWithRefs.h.
References collectionTags_, module_, and path_.
Referenced by trigger::swap().
{ TriggerRefsCollections::swap(other); // swap base instance std::swap(path_, other.path_); std::swap(module_, other.module_); std::swap(collectionTags_, other.collectionTags_); // use specialized version for STL containers }
std::vector<std::string> trigger::TriggerFilterObjectWithRefs::collectionTags_ [private] |
Definition at line 44 of file TriggerFilterObjectWithRefs.h.
Referenced by addCollectionTag(), getCollectionTags(), getCollectionTagsAsStrings(), and swap().
int trigger::TriggerFilterObjectWithRefs::module_ [private] |
Definition at line 43 of file TriggerFilterObjectWithRefs.h.
int trigger::TriggerFilterObjectWithRefs::path_ [private] |
data members
Definition at line 42 of file TriggerFilterObjectWithRefs.h.