#include <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... | |
template<typename T = unsigned int> | |
T | 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 (double 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, double 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 ()=default |
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... | |
double | prescale_ |
Pre-scale. More... | |
bool | run_ |
Was path run? More... | |
Definition at line 37 of file TriggerPath.h.
pat::TriggerPath::TriggerPath | ( | ) |
Constructors and Desctructor.
Default constructor
Definition at line 6 of file TriggerPath.cc.
References filterIndices_, and modules_.
pat::TriggerPath::TriggerPath | ( | const std::string & | name | ) |
Constructor from path name only.
Definition at line 13 of file TriggerPath.cc.
References filterIndices_, and modules_.
pat::TriggerPath::TriggerPath | ( | const std::string & | name, |
unsigned | index, | ||
double | prescale, | ||
bool | run, | ||
bool | accept, | ||
bool | error, | ||
unsigned | lastActiveFilterSlot, | ||
unsigned | l3Filters = 0 |
||
) |
Constructor from values.
Definition at line 20 of file TriggerPath.cc.
References filterIndices_, and modules_.
|
virtualdefault |
Destructor.
|
inline |
Get names of all succeeding L1 seeds.
Definition at line 154 of file TriggerPath.h.
References l1Seeds().
|
inline |
Add a new trigger fillter collection index.
Definition at line 111 of file TriggerPath.h.
References filterIndices_, and index().
|
inline |
Add a new L1 seed.
Definition at line 113 of file TriggerPath.h.
References l1Seeds_, and fileCollector::seed.
|
inline |
Definition at line 114 of file TriggerPath.h.
References l1tGTMenu_hadr_metSeeds_cff::expression, and l1Seeds_.
|
inline |
Add a new module label.
Definition at line 109 of file TriggerPath.h.
References modules_, and name().
|
inline |
Get names of all failing L1 seeds.
Definition at line 156 of file TriggerPath.h.
References l1Seeds().
|
inline |
Get all trigger fillter collection indeces.
Definition at line 144 of file TriggerPath.h.
References filterIndices_.
|
inline |
Get the path index.
Definition at line 118 of file TriggerPath.h.
References index_.
Referenced by addFilterIndex(), and setIndex().
int pat::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 43 of file TriggerPath.cc.
References spr::find(), and Skims_PA_cff::name.
|
inline |
Get all L1 seeds.
Definition at line 150 of file TriggerPath.h.
References l1Seeds_.
Referenced by acceptedL1Seeds(), and failedL1Seeds().
std::vector< std::string > pat::TriggerPath::l1Seeds | ( | const bool | decision | ) | const |
Get names of all L1 seeds with a certain decision.
Definition at line 50 of file TriggerPath.cc.
References HLT_FULL_cff::seeds.
|
inline |
Get the number of modules identified as L3 filter available starting from CMSSW_4_2_3
Definition at line 137 of file TriggerPath.h.
References l3Filters_.
Referenced by setL3Filters().
|
inline |
Get the index of the last active filter.
Definition at line 134 of file TriggerPath.h.
References lastActiveFilterSlot_.
Referenced by setLastActiveFilterSlot().
|
inline |
|
inline |
Get the path name.
Definition at line 116 of file TriggerPath.h.
References name_.
Referenced by config.CFG::__str__(), addModule(), validation.Sample::digest(), VIDSelectorBase.VIDSelectorBase::initialize(), and setName().
|
inline |
Get the path pre-scale.
Definition at line 121 of file TriggerPath.h.
References prescale_.
Referenced by setPrescale().
|
inline |
Set the success flag.
Definition at line 101 of file TriggerPath.h.
References accept(), and accept_.
|
inline |
Set the error flag.
Definition at line 103 of file TriggerPath.h.
References relativeConstraints::error, and error_.
|
inline |
|
inline |
Set the number of modules identified as L3 filter.
Definition at line 107 of file TriggerPath.h.
References l3Filters(), and l3Filters_.
|
inline |
Set the index of the last active filter.
Definition at line 105 of file TriggerPath.h.
References lastActiveFilterSlot(), and lastActiveFilterSlot_.
|
inline |
Methods.
Set the path name
Definition at line 93 of file TriggerPath.h.
|
inline |
Set the path pre-scale.
Definition at line 97 of file TriggerPath.h.
References prescale(), and prescale_.
|
inline |
Set the run flag.
Definition at line 99 of file TriggerPath.h.
References writedatasetfile::run, and run_.
|
inline |
Get the success flag.
Definition at line 130 of file TriggerPath.h.
References accept_.
Referenced by WPlusJetsEventSelector::operator()().
|
inline |
|
inline |
|
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 140 of file TriggerPath.h.
References l3Filters_.
|
private |
Did path succeed?
Definition at line 49 of file TriggerPath.h.
Referenced by setAccept(), and wasAccept().
|
private |
Was path in error?
Definition at line 51 of file TriggerPath.h.
Referenced by setError(), and wasError().
|
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 61 of file TriggerPath.h.
Referenced by addFilterIndex(), filterIndices(), and TriggerPath().
|
private |
Path index in trigger table.
Definition at line 43 of file TriggerPath.h.
Referenced by index(), and setIndex().
|
private |
List of L1 seeds and their decisions.
Definition at line 68 of file TriggerPath.h.
Referenced by addL1Seed(), and l1Seeds().
|
private |
Number of modules identified as L3 filters by the 'saveTags' parameter available starting from CMSSW_4_2_3
Definition at line 66 of file TriggerPath.h.
Referenced by l3Filters(), setL3Filters(), and xTrigger().
|
private |
Index of the last active filter in the list of modules.
Definition at line 63 of file TriggerPath.h.
Referenced by lastActiveFilterSlot(), and setLastActiveFilterSlot().
|
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 56 of file TriggerPath.h.
Referenced by addModule(), modules(), and TriggerPath().
|
private |
|
private |
Pre-scale.
Definition at line 45 of file TriggerPath.h.
Referenced by prescale(), and setPrescale().
|
private |