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 36 of file TriggerCondition.h.
TriggerCondition::TriggerCondition | ( | ) |
Constructors and Desctructor.
Default constructor
Definition at line 15 of file TriggerCondition.cc.
References objectKeys_, and triggerObjectTypes_.
TriggerCondition::TriggerCondition | ( | const std::string & | name | ) |
Constructor from condition name "only".
Definition at line 27 of file TriggerCondition.cc.
References objectKeys_, and triggerObjectTypes_.
TriggerCondition::TriggerCondition | ( | const std::string & | name, |
bool | accept | ||
) |
Constructor from values.
Definition at line 39 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 83 of file TriggerCondition.h.
References triggerObjectTypes_.
|
inline |
Definition at line 84 of file TriggerCondition.h.
References addTriggerObjectType().
Referenced by addTriggerObjectType().
|
inline |
Get the condition category.
Definition at line 92 of file TriggerCondition.h.
References category_.
Referenced by setCategory().
bool TriggerCondition::hasObjectKey | ( | unsigned | objectKey | ) | const |
Checks, if a certain trigger object collection index is assigned.
Definition at line 75 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 65 of file TriggerCondition.cc.
References triggerObjectTypes_.
|
inline |
Definition at line 99 of file TriggerCondition.h.
References hasTriggerObjectType().
Referenced by hasTriggerObjectType().
|
inline |
Get the filter label.
Definition at line 88 of file TriggerCondition.h.
References name_.
Referenced by cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), setName(), and Vispa.Views.PropertyView.Property::valueChanged().
|
inline |
Get all trigger object collection indeces.
Definition at line 101 of file TriggerCondition.h.
References objectKeys_.
|
inline |
Set the success flag.
Definition at line 75 of file TriggerCondition.h.
References accept(), and accept_.
|
inline |
Set the condition category.
Definition at line 77 of file TriggerCondition.h.
References category(), and category_.
Referenced by pat::PATTriggerProducer::produce().
|
inline |
Definition at line 78 of file TriggerCondition.h.
References category_.
|
inline |
Methods.
Set the condition name
Definition at line 73 of file TriggerCondition.h.
Referenced by Vispa.Gui.PortWidget.PortWidget::__init__(), and Vispa.Views.PropertyView.Property::__init__().
|
inline |
Set the condition type.
Definition at line 80 of file TriggerCondition.h.
|
inline |
Definition at line 81 of file TriggerCondition.h.
References type_.
std::vector< int > TriggerCondition::triggerObjectTypes | ( | ) | const |
Get the trigger object types.
Definition at line 54 of file TriggerCondition.cc.
References triggerObjectTypes_.
|
inline |
Get the condition type.
Definition at line 94 of file TriggerCondition.h.
References type_.
Referenced by cuy.ValElement::__init__(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::inputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputCommands(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::properties(), and setType().
|
inline |
|
private |
Did condition succeed?
Definition at line 43 of file TriggerCondition.h.
Referenced by setAccept(), and wasAccept().
|
private |
L1 condition category as defined in CondFormats/L1TObjects/interface/L1GtFwd.h.
Definition at line 45 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 54 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 51 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 47 of file TriggerCondition.h.
Referenced by Modules.Service::_placeImpl(), Modules.ESSource::_placeImpl(), Modules.ESProducer::_placeImpl(), Modules.ESPrefer::copy(), Mixins._TypedParameterizable::dumpPython(), Modules.ESPrefer::dumpPythonAs(), Modules.Service::insertInto(), RandomRunSource.RandomRunSource::insertInto(), Mixins._TypedParameterizable::insertInto(), Modules.ESSource::moduleLabel_(), Modules.ESProducer::moduleLabel_(), Modules.ESSource::nameInProcessDesc_(), Modules.ESProducer::nameInProcessDesc_(), Modules.ESPrefer::nameInProcessDesc_(), setType(), and type().