1 #ifndef DataFormats_PatCandidates_TriggerPath_h
2 #define DataFormats_PatCandidates_TriggerPath_h
32 typedef std::pair<bool, std::string>
L1Seed;
145 std::vector<std::string>
l1Seeds(
const bool decision)
const;
void setIndex(unsigned index)
Set the path index.
std::vector< unsigned > filterIndices_
std::vector< L1Seed > L1SeedCollection
Collection of L1Seed.
void setPrescale(unsigned prescale)
Set the path pre-scale.
const L1SeedCollection & l1Seeds() const
Get all L1 seeds.
edm::RefVector< TriggerPathCollection > TriggerPathRefVector
Vector of persistent references to items in the same TriggerPathCollection.
unsigned prescale_
Pre-scale.
edm::Ref< TriggerPathCollection > TriggerPathRef
Persistent reference to an item in a TriggerPathCollection.
edm::RefProd< TriggerPathCollection > TriggerPathRefProd
Persistent reference to a TriggerPathCollection product.
bool accept_
Did path succeed?
std::vector< std::string > modules_
int indexModule(const std::string &name) const
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::string name_
Data Members.
const std::vector< std::string > & modules() const
Get all module labels.
edm::RefVectorIterator< TriggerPathCollection > TriggerPathRefVectorIterator
Const iterator over vector of persistent references to items in the same TriggerPathCollection.
std::vector< std::string > acceptedL1Seeds() const
Get names of all succeeding L1 seeds.
unsigned prescale() const
Get the path pre-scale.
Analysis-level HLTrigger path class.
void setL3Filters(unsigned l3Filters)
Set the number of modules identified as L3 filter.
void setRun(bool run)
Set the run flag.
std::pair< bool, std::string > L1Seed
Pair to store decision and name of L1 seeds.
void setName(const std::string &name)
Methods.
void addL1Seed(bool decision, const std::string &expression)
void addL1Seed(const L1Seed &seed)
Add a new L1 seed.
unsigned l3Filters() const
TriggerPath()
Constructors and Desctructor.
std::vector< std::string > failedL1Seeds() const
Get names of all failing L1 seeds.
L1SeedCollection l1Seeds_
List of L1 seeds and their decisions.
void setError(bool error)
Set the error flag.
void setLastActiveFilterSlot(unsigned lastActiveFilterSlot)
Set the index of the last active filter.
std::vector< TriggerPath > TriggerPathCollection
Collection of TriggerPath.
void setAccept(bool accept)
Set the success flag.
const std::vector< unsigned > & filterIndices() const
Get all trigger fillter collection indeces.
bool error_
Was path in error?
void addFilterIndex(const unsigned index)
Add a new trigger fillter collection index.
virtual ~TriggerPath()
Destructor.
const std::string & name() const
Get the path name.
unsigned index() const
Get the path index.
bool wasError() const
Get the error flag.
bool wasRun() const
Get the run flag.
unsigned lastActiveFilterSlot_
Index of the last active filter in the list of modules.
unsigned lastActiveFilterSlot() const
Get the index of the last active filter.
void addModule(const std::string &name)
Add a new module label.
unsigned index_
Path index in trigger table.
bool wasAccept() const
Get the success flag.