1 #ifndef DataFormats_PatCandidates_TriggerPath_h 2 #define DataFormats_PatCandidates_TriggerPath_h 23 #include <type_traits> 33 typedef std::pair<bool, std::string>
L1Seed;
120 template <
typename T =
unsigned int>
122 static_assert(std::is_same_v<T, double>,
123 "\n\tPlease use prescale<double>" 124 "\n\t(other types for prescales are not supported anymore by pat::TriggerPath");
152 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.
T prescale() const
Get the path pre-scale.
edm::RefVector< TriggerPathCollection > TriggerPathRefVector
Vector of persistent references to items in the same TriggerPathCollection.
const std::string & name() const
Get the path name.
edm::Ref< TriggerPathCollection > TriggerPathRef
Persistent reference to an item in a TriggerPathCollection.
edm::RefProd< TriggerPathCollection > TriggerPathRefProd
Persistent reference to a TriggerPathCollection product.
std::vector< std::string > failedL1Seeds() const
Get names of all failing L1 seeds.
bool accept_
Did path succeed?
TriggerPath()
Constructors and Desctructor.
std::vector< std::string > modules_
unsigned index() const
Get the path index.
const L1SeedCollection & l1Seeds() const
Get all L1 seeds.
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
std::string name_
Data Members.
unsigned l3Filters() const
edm::RefVectorIterator< TriggerPathCollection > TriggerPathRefVectorIterator
Const iterator over vector of persistent references to items in the same TriggerPathCollection.
const std::vector< std::string > & modules() const
Get all module labels.
const std::vector< unsigned > & filterIndices() const
Get all trigger fillter collection indeces.
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.
int indexModule(const std::string &name) const
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.
virtual ~TriggerPath()=default
Destructor.
double prescale_
Pre-scale.
bool wasError() const
Get the error flag.
std::vector< TriggerPath > TriggerPathCollection
Collection of TriggerPath.
void setAccept(bool accept)
Set the success flag.
void setPrescale(double prescale)
Set the path pre-scale.
bool wasAccept() const
Get the success flag.
bool error_
Was path in error?
void addFilterIndex(const unsigned index)
Add a new trigger fillter collection index.
unsigned lastActiveFilterSlot() const
Get the index of the last active filter.
unsigned lastActiveFilterSlot_
Index of the last active filter in the list of modules.
bool wasRun() const
Get the run flag.
void addModule(const std::string &name)
Add a new module label.
unsigned index_
Path index in trigger table.
std::vector< std::string > acceptedL1Seeds() const
Get names of all succeeding L1 seeds.