Analysis-level L1 trigger condition class. More...
#include "DataFormats/PatCandidates/interface/TriggerCondition.h"
Public Member Functions | |
void | addObjectKey (unsigned objectKey) |
Add a new trigger object collection index. More... | |
void | addTriggerObjectType (trigger::TriggerObjectType triggerObjectType) |
Add a new trigger object type. More... | |
void | addTriggerObjectType (int triggerObjectType) |
int | category () const |
Get the condition category. More... | |
bool | hasObjectKey (unsigned objectKey) const |
Checks, if a certain trigger object collection index is assigned. More... | |
bool | hasTriggerObjectType (trigger::TriggerObjectType triggerObjectType) const |
Checks, if a certain trigger object type is assigned. More... | |
bool | hasTriggerObjectType (int triggerObjectType) const |
const std::string & | name () const |
Get the filter label. More... | |
const std::vector< unsigned > & | objectKeys () const |
Get all trigger object collection indeces. More... | |
void | setAccept (bool accept) |
Set the success flag. More... | |
void | setCategory (L1GtConditionCategory category) |
Set the condition category. More... | |
void | setCategory (int category) |
void | setName (const std::string &name) |
Methods. More... | |
void | setType (L1GtConditionType type) |
Set the condition type. More... | |
void | setType (int type) |
TriggerCondition () | |
Constructors and Desctructor. More... | |
TriggerCondition (const std::string &name) | |
Constructor from condition name "only". More... | |
TriggerCondition (const std::string &name, bool accept) | |
Constructor from values. More... | |
std::vector< int > | triggerObjectTypes () const |
Get the trigger object types. More... | |
int | type () const |
Get the condition type. More... | |
bool | wasAccept () const |
Get the success flag. More... | |
virtual | ~TriggerCondition () |
Destructor. More... | |
Private Attributes | |
bool | accept_ |
Did condition succeed? More... | |
L1GtConditionCategory | category_ |
L1 condition category as defined in CondFormats/L1TObjects/interface/L1GtFwd.h. More... | |
std::string | name_ |
Data Members. More... | |
std::vector< unsigned > | objectKeys_ |
std::vector< trigger::TriggerObjectType > | triggerObjectTypes_ |
L1GtConditionType | type_ |
L1 condition type as defined in CondFormats/L1TObjects/interface/L1GtFwd.h. More... | |
Analysis-level L1 trigger condition class.
TriggerCondition implements a container for trigger conditions' information within the 'pat' namespace. For detailed information, consult https://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePATTrigger#TriggerCondition
Definition at line 34 of file TriggerCondition.h.
TriggerCondition::TriggerCondition | ( | ) |
Constructors and Desctructor.
Default constructor
Definition at line 11 of file TriggerCondition.cc.
References objectKeys_, and triggerObjectTypes_.
TriggerCondition::TriggerCondition | ( | const std::string & | name | ) |
Constructor from condition name "only".
Definition at line 17 of file TriggerCondition.cc.
References objectKeys_, and triggerObjectTypes_.
TriggerCondition::TriggerCondition | ( | const std::string & | name, |
bool | accept | ||
) |
Constructor from values.
Definition at line 23 of file TriggerCondition.cc.
References objectKeys_, and triggerObjectTypes_.
|
inlinevirtual |
|
inline |
Add a new trigger object collection index.
Definition at line 86 of file TriggerCondition.h.
References hasObjectKey(), and objectKeys_.
|
inline |
Add a new trigger object type.
Definition at line 79 of file TriggerCondition.h.
References triggerObjectTypes_.
Referenced by addTriggerObjectType().
|
inline |
Definition at line 82 of file TriggerCondition.h.
References addTriggerObjectType().
|
inline |
Get the condition category.
Definition at line 95 of file TriggerCondition.h.
References category_, and createfilelist::int.
Referenced by setCategory().
bool TriggerCondition::hasObjectKey | ( | unsigned | objectKey | ) | const |
Checks, if a certain trigger object collection index is assigned.
Definition at line 50 of file TriggerCondition.cc.
References objectKeys_.
Referenced by addObjectKey().
bool TriggerCondition::hasTriggerObjectType | ( | trigger::TriggerObjectType | triggerObjectType | ) | const |
Checks, if a certain trigger object type is assigned.
Definition at line 41 of file TriggerCondition.cc.
References triggerObjectTypes_.
Referenced by hasTriggerObjectType().
|
inline |
Definition at line 102 of file TriggerCondition.h.
References hasTriggerObjectType().
|
inline |
Get the filter label.
Definition at line 91 of file TriggerCondition.h.
References name_.
Referenced by config.CFG::__str__(), validation.Sample::digest(), VIDSelectorBase.VIDSelectorBase::initialize(), and setName().
|
inline |
Get all trigger object collection indeces.
Definition at line 106 of file TriggerCondition.h.
References objectKeys_.
|
inline |
Set the success flag.
Definition at line 71 of file TriggerCondition.h.
References accept(), and accept_.
|
inline |
Set the condition category.
Definition at line 73 of file TriggerCondition.h.
References category(), and category_.
Referenced by pat::PATTriggerProducer::produce().
|
inline |
Definition at line 74 of file TriggerCondition.h.
References category(), and category_.
|
inline |
Methods.
Set the condition name
Definition at line 69 of file TriggerCondition.h.
|
inline |
Set the condition type.
Definition at line 76 of file TriggerCondition.h.
|
inline |
Definition at line 77 of file TriggerCondition.h.
References type_.
std::vector< int > TriggerCondition::triggerObjectTypes | ( | ) | const |
Get the trigger object types.
Definition at line 32 of file TriggerCondition.cc.
References triggerObjectTypes_.
|
inline |
Get the condition type.
Definition at line 97 of file TriggerCondition.h.
References createfilelist::int, and type_.
Referenced by setType().
|
inline |
|
private |
Did condition succeed?
Definition at line 40 of file TriggerCondition.h.
Referenced by setAccept(), and wasAccept().
|
private |
L1 condition category as defined in CondFormats/L1TObjects/interface/L1GtFwd.h.
Definition at line 42 of file TriggerCondition.h.
Referenced by category(), and setCategory().
|
private |
|
private |
Indeces of trigger objects from succeeding combinations in pat::TriggerObjectCollection in event as produced together with the pat::TriggerAlgorithmCollection
Definition at line 51 of file TriggerCondition.h.
Referenced by addObjectKey(), hasObjectKey(), objectKeys(), and TriggerCondition().
|
private |
Special identifiers for the used trigger object type as defined in DataFormats/HLTReco/interface/TriggerTypeDefs.h translated from L1GtObject type (DataFormats/L1GlobalTrigger/interface/L1GlobalTriggerReadoutSetupFwd.h)
Definition at line 48 of file TriggerCondition.h.
Referenced by addTriggerObjectType(), hasTriggerObjectType(), TriggerCondition(), and triggerObjectTypes().
|
private |
L1 condition type as defined in CondFormats/L1TObjects/interface/L1GtFwd.h.
Definition at line 44 of file TriggerCondition.h.
Referenced by Modules.Service::__str__(), Modules.Service::_placeImpl(), Modules.ESSource::_placeImpl(), Modules.ESProducer::_placeImpl(), Modules.ESPrefer::copy(), Mixins._TypedParameterizable::dumpPython(), Modules.ESPrefer::dumpPythonAs(), Modules.Service::dumpSequencePython(), RandomRunSource.RandomRunSource::insertInto(), Modules.Service::insertInto(), ExternalGeneratorFilter.ExternalGeneratorFilter::insertInto(), Mixins._TypedParameterizable::insertInto(), Modules.ESSource::moduleLabel_(), Modules.ESProducer::moduleLabel_(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), Modules.ESPrefer::nameInProcessDesc_(), setType(), and type().