Go to the documentation of this file. 1 #ifndef DataFormats_PatCandidates_TriggerCondition_h
2 #define DataFormats_PatCandidates_TriggerCondition_h
std::string name_
Data Members.
bool hasTriggerObjectType(int triggerObjectType) const
bool hasObjectKey(unsigned objectKey) const
Checks, if a certain trigger object collection index is assigned.
std::vector< unsigned > objectKeys_
std::vector< TriggerCondition > TriggerConditionCollection
Collection of TriggerCondition.
int type() const
Get the condition type.
const std::string & name() const
Get the filter label.
bool wasAccept() const
Get the success flag.
bool accept_
Did condition succeed?
edm::RefProd< TriggerConditionCollection > TriggerConditionRefProd
Persistent reference to a TriggerConditionCollection product.
Analysis-level L1 trigger condition class.
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
L1GtConditionType type_
L1 condition type as defined in CondFormats/L1TObjects/interface/L1GtFwd.h.
bool hasTriggerObjectType(trigger::TriggerObjectType triggerObjectType) const
Checks, if a certain trigger object type is assigned.
const std::vector< unsigned > & objectKeys() const
Get all trigger object collection indeces.
void setName(const std::string &name)
Methods.
void addTriggerObjectType(int triggerObjectType)
void addTriggerObjectType(trigger::TriggerObjectType triggerObjectType)
Add a new trigger object type.
edm::Ref< TriggerConditionCollection > TriggerConditionRef
Persistent reference to an item in a TriggerConditionCollection.
void setType(L1GtConditionType type)
Set the condition type.
edm::RefVector< TriggerConditionCollection > TriggerConditionRefVector
Vector of persistent references to items in the same TriggerConditionCollection.
void addObjectKey(unsigned objectKey)
Add a new trigger object collection index.
virtual ~TriggerCondition()
Destructor.
L1GtConditionCategory category_
L1 condition category as defined in CondFormats/L1TObjects/interface/L1GtFwd.h.
edm::RefVectorIterator< TriggerConditionCollection > TriggerConditionRefVectorIterator
Const iterator over vector of persistent references to items in the same TriggerConditionCollection.
int category() const
Get the condition category.
std::vector< trigger::TriggerObjectType > triggerObjectTypes_
void setCategory(L1GtConditionCategory category)
Set the condition category.
void setCategory(int category)
std::vector< int > triggerObjectTypes() const
Get the trigger object types.
TriggerCondition()
Constructors and Desctructor.
void setAccept(bool accept)
Set the success flag.