Analysis-level HLTrigger path class. More...
#include "DataFormats/PatCandidates/interface/TriggerPath.h"
Public Member Functions | |
std::vector< std::string > | acceptedL1Seeds () const |
Get names of all succeeding L1 seeds. More... | |
void | addFilterIndex (const unsigned index) |
Add a new trigger fillter collection index. More... | |
void | addL1Seed (const L1Seed &seed) |
Add a new L1 seed. More... | |
void | addL1Seed (bool decision, const std::string &expression) |
void | addModule (const std::string &name) |
Add a new module label. More... | |
std::vector< std::string > | failedL1Seeds () const |
Get names of all failing L1 seeds. More... | |
const std::vector< unsigned > & | filterIndices () const |
Get all trigger fillter collection indeces. More... | |
unsigned | index () const |
Get the path index. More... | |
int | indexModule (const std::string &name) const |
const L1SeedCollection & | l1Seeds () const |
Get all L1 seeds. More... | |
std::vector< std::string > | l1Seeds (const bool decision) const |
Get names of all L1 seeds with a certain decision. More... | |
unsigned | l3Filters () const |
unsigned | lastActiveFilterSlot () const |
Get the index of the last active filter. More... | |
const std::vector< std::string > & | modules () const |
Get all module labels. More... | |
const std::string & | name () const |
Get the path name. More... | |
unsigned | prescale () const |
Get the path pre-scale. More... | |
void | setAccept (bool accept) |
Set the success flag. More... | |
void | setError (bool error) |
Set the error flag. More... | |
void | setIndex (unsigned index) |
Set the path index. More... | |
void | setL3Filters (unsigned l3Filters) |
Set the number of modules identified as L3 filter. More... | |
void | setLastActiveFilterSlot (unsigned lastActiveFilterSlot) |
Set the index of the last active filter. More... | |
void | setName (const std::string &name) |
Methods. More... | |
void | setPrescale (unsigned prescale) |
Set the path pre-scale. More... | |
void | setRun (bool run) |
Set the run flag. More... | |
TriggerPath () | |
Constructors and Desctructor. More... | |
TriggerPath (const std::string &name) | |
Constructor from path name only. More... | |
TriggerPath (const std::string &name, unsigned index, unsigned prescale, bool run, bool accept, bool error, unsigned lastActiveFilterSlot, unsigned l3Filters=0) | |
Constructor from values. More... | |
bool | wasAccept () const |
Get the success flag. More... | |
bool | wasError () const |
Get the error flag. More... | |
bool | wasRun () const |
Get the run flag. More... | |
bool | xTrigger () const |
virtual | ~TriggerPath () |
Destructor. More... | |
Private Attributes | |
bool | accept_ |
Did path succeed? More... | |
bool | error_ |
Was path in error? More... | |
std::vector< unsigned > | filterIndices_ |
unsigned | index_ |
Path index in trigger table. More... | |
L1SeedCollection | l1Seeds_ |
List of L1 seeds and their decisions. More... | |
unsigned | l3Filters_ |
unsigned | lastActiveFilterSlot_ |
Index of the last active filter in the list of modules. More... | |
std::vector< std::string > | modules_ |
std::string | name_ |
Data Members. More... | |
unsigned | prescale_ |
Pre-scale. More... | |
bool | run_ |
Was path run? More... | |
Analysis-level HLTrigger path class.
TriggerPath implements a container for trigger paths' information within the 'pat' namespace. For detailed information, consult https://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePATTrigger#TriggerPath
Definition at line 39 of file TriggerPath.h.
TriggerPath::TriggerPath | ( | ) |
Constructors and Desctructor.
Default constructor
Definition at line 15 of file TriggerPath.cc.
References filterIndices_, and modules_.
TriggerPath::TriggerPath | ( | const std::string & | name | ) |
Constructor from path name only.
Definition at line 31 of file TriggerPath.cc.
References filterIndices_, and modules_.
TriggerPath::TriggerPath | ( | const std::string & | name, |
unsigned | index, | ||
unsigned | prescale, | ||
bool | run, | ||
bool | accept, | ||
bool | error, | ||
unsigned | lastActiveFilterSlot, | ||
unsigned | l3Filters = 0 |
||
) |
Constructor from values.
Definition at line 47 of file TriggerPath.cc.
References filterIndices_, and modules_.
|
inlinevirtual |
|
inline |
Get names of all succeeding L1 seeds.
Definition at line 145 of file TriggerPath.h.
References l1Seeds().
|
inline |
|
inline |
Add a new L1 seed.
Definition at line 110 of file TriggerPath.h.
|
inline |
Definition at line 111 of file TriggerPath.h.
|
inline |
Add a new module label.
Definition at line 106 of file TriggerPath.h.
|
inline |
Get names of all failing L1 seeds.
Definition at line 147 of file TriggerPath.h.
References l1Seeds().
|
inline |
Get all trigger fillter collection indeces.
Definition at line 135 of file TriggerPath.h.
References filterIndices_, indexModule(), name(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
inline |
Get the path index.
Definition at line 115 of file TriggerPath.h.
References index_.
Referenced by BeautifulSoup.PageElement::insert(), and setIndex().
int TriggerPath::indexModule | ( | const std::string & | name | ) | const |
Get the index of a certain module; returns size of 'modules_' ( modules().size() ) if name is unknown and -1 if list of modules is not filled
Definition at line 66 of file TriggerPath.cc.
References spr::find(), modules_, and name().
Referenced by filterIndices().
|
inline |
Get all L1 seeds.
Definition at line 141 of file TriggerPath.h.
References l1Seeds_.
Referenced by acceptedL1Seeds(), failedL1Seeds(), and l1Seeds().
std::vector< std::string > TriggerPath::l1Seeds | ( | const bool | decision | ) | const |
Get names of all L1 seeds with a certain decision.
Definition at line 74 of file TriggerPath.cc.
References begin, and l1Seeds().
|
inline |
Get the number of modules identified as L3 filter available starting from CMSSW_4_2_3
Definition at line 128 of file TriggerPath.h.
References l3Filters_.
Referenced by setL3Filters().
|
inline |
Get the index of the last active filter.
Definition at line 125 of file TriggerPath.h.
References lastActiveFilterSlot_.
Referenced by setLastActiveFilterSlot().
|
inline |
|
inline |
Get the path name.
Definition at line 113 of file TriggerPath.h.
References name_.
Referenced by config.CFG::__str__(), validation.Sample::digest(), filterIndices(), indexModule(), VIDSelectorBase.VIDSelectorBase::initialize(), setName(), and Vispa.Views.PropertyView.Property::valueChanged().
|
inline |
Get the path pre-scale.
Definition at line 117 of file TriggerPath.h.
References prescale_.
Referenced by setPrescale().
|
inline |
Set the success flag.
Definition at line 98 of file TriggerPath.h.
References accept().
|
inline |
Set the error flag.
Definition at line 100 of file TriggerPath.h.
References relativeConstraints::error.
|
inline |
|
inline |
Set the number of modules identified as L3 filter.
Definition at line 104 of file TriggerPath.h.
References l3Filters().
|
inline |
Set the index of the last active filter.
Definition at line 102 of file TriggerPath.h.
References lastActiveFilterSlot().
|
inline |
Methods.
Set the path name
Definition at line 90 of file TriggerPath.h.
References name().
Referenced by Vispa.Gui.PortWidget.PortWidget::__init__(), and Vispa.Views.PropertyView.Property::__init__().
|
inline |
Set the path pre-scale.
Definition at line 94 of file TriggerPath.h.
References prescale().
|
inline |
|
inline |
Get the success flag.
Definition at line 121 of file TriggerPath.h.
References accept_.
Referenced by PatTriggerTagAndProbe::analyze(), and WPlusJetsEventSelector::operator()().
|
inline |
|
inline |
Get the run flag.
Definition at line 119 of file TriggerPath.h.
References run_.
Referenced by PatTriggerTagAndProbe::analyze().
|
inline |
Determines, if the path is a x-trigger, based on the number of modules identified as L3 filter available starting from CMSSW_4_2_3
Definition at line 131 of file TriggerPath.h.
|
private |
|
private |
|
private |
Indeces of trigger filters in pat::TriggerFilterCollection in event as produced together with the pat::TriggerPathCollection; also filled in correct order by PATTriggerProducer; indices of active filters in filter collection
Definition at line 64 of file TriggerPath.h.
Referenced by filterIndices(), and TriggerPath().
|
private |
|
private |
List of L1 seeds and their decisions.
Definition at line 71 of file TriggerPath.h.
Referenced by l1Seeds().
|
private |
Number of modules identified as L3 filters by the 'saveTags' parameter available starting from CMSSW_4_2_3
Definition at line 69 of file TriggerPath.h.
Referenced by l3Filters().
|
private |
Index of the last active filter in the list of modules.
Definition at line 66 of file TriggerPath.h.
Referenced by lastActiveFilterSlot().
|
private |
List of all module labels in the path filled in correct order by PATTriggerProducer; modules not necessarily in filter collection; consumes disc space
Definition at line 59 of file TriggerPath.h.
Referenced by indexModule(), modules(), and TriggerPath().
|
private |
|
private |
|
private |