Analysis-level L1 trigger algorithm class. More...
#include "DataFormats/PatCandidates/interface/TriggerAlgorithm.h"
Public Member Functions | |
void | addConditionKey (unsigned conditionKey) |
Add a new trigger condition collection index. More... | |
const std::string & | alias () const |
Get L1 algorithm alias. More... | |
unsigned | bit () const |
Get L1 algorithm bit number. More... | |
const std::vector< unsigned > & | conditionKeys () const |
Get all trigger condition collection indeces. More... | |
bool | decision () const |
bool | decisionAfterMask () const |
Get L1 algorithm decision, considering the mask. More... | |
bool | decisionBeforeMask () const |
Get L1 algorithm decision, not considering the mask. More... | |
bool | gtlResult () const |
Get L1 algorithm GTL result. More... | |
bool | hasConditionKey (unsigned conditionKey) const |
Checks, if a certain trigger condition collection index is assigned. More... | |
const std::string & | logicalExpression () const |
Get L1 algorithm logical expression. More... | |
bool | mask () const |
Get L1 algorithm mask. More... | |
const std::string & | name () const |
Get L1 algorithm name. More... | |
unsigned | prescale () const |
Get L1 algorithm pre-scale. More... | |
void | setAlias (const std::string &alias) |
Set L1 algorithm alias. More... | |
void | setBit (unsigned bit) |
Set L1 algorithm bit number. More... | |
void | setDecisionAfterMas (bool decisionAfterMask) |
Set L1 algorithm decision, considering the mask. More... | |
void | setDecisionBeforeMask (bool decisionBeforeMask) |
Set L1 algorithm decision, not considering the mask. More... | |
void | setGtlResult (bool gtlResult) |
Set L1 algorithm GTL result. More... | |
void | setLogicalExpression (const std::string &expression) |
Set L1 algorithm logical expression. More... | |
void | setMask (bool mask) |
Set L1 algorithm mask. More... | |
void | setName (const std::string &name) |
Methods. More... | |
void | setPrescale (unsigned prescale) |
Set L1 algorithm pre-scale. More... | |
void | setTechTrigger (bool tech) |
Set flag for technical L1 algorithms. More... | |
bool | techTrigger () const |
Get flag for technical L1 algorithms. More... | |
TriggerAlgorithm () | |
Constructors and Destructor. More... | |
TriggerAlgorithm (const std::string &name) | |
Constructor from algorithm name only. More... | |
TriggerAlgorithm (const std::string &name, const std::string &alias, bool tech, unsigned bit, unsigned prescale, bool mask, bool decisionBeforeMask, bool decisionAfterMask) | |
Constructors from values. More... | |
TriggerAlgorithm (const std::string &name, const std::string &alias, bool tech, unsigned bit, bool gtlResult, unsigned prescale, bool mask, bool decisionBeforeMask, bool decisionAfterMask) | |
virtual | ~TriggerAlgorithm () |
Destructor. More... | |
Private Attributes | |
std::string | alias_ |
L1 algorithm alias. More... | |
unsigned | bit_ |
L1 algorithm bit number. More... | |
std::vector< unsigned > | conditionKeys_ |
bool | decisionAfterMask_ |
L1 algorithm decision, considering the mask. More... | |
bool | decisionBeforeMask_ |
L1 algorithm decision, not considering the mask. More... | |
bool | gtlResult_ |
L1 algorithm result as determined on the GTL board. More... | |
std::string | logic_ |
L1 algorithm logival expression. More... | |
bool | mask_ |
L1 algorithm mask. More... | |
std::string | name_ |
Data Members. More... | |
unsigned | prescale_ |
L1 algorithm pre-scale. More... | |
bool | tech_ |
Flag for technical L1 algorithms. More... | |
Analysis-level L1 trigger algorithm class.
TriggerAlgorithm implements a container for L1 trigger algorithms' information within the 'pat' namespace. For detailed information, consult https://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePATTrigger#TriggerAlgorithm
Definition at line 34 of file TriggerAlgorithm.h.
TriggerAlgorithm::TriggerAlgorithm | ( | ) |
Constructors and Destructor.
Default constructor
Definition at line 15 of file TriggerAlgorithm.cc.
References conditionKeys_.
TriggerAlgorithm::TriggerAlgorithm | ( | const std::string & | name | ) |
Constructor from algorithm name only.
Definition at line 32 of file TriggerAlgorithm.cc.
References conditionKeys_.
TriggerAlgorithm::TriggerAlgorithm | ( | const std::string & | name, |
const std::string & | alias, | ||
bool | tech, | ||
unsigned | bit, | ||
unsigned | prescale, | ||
bool | mask, | ||
bool | decisionBeforeMask, | ||
bool | decisionAfterMask | ||
) |
Constructors from values.
Definition at line 49 of file TriggerAlgorithm.cc.
References conditionKeys_.
TriggerAlgorithm::TriggerAlgorithm | ( | const std::string & | name, |
const std::string & | alias, | ||
bool | tech, | ||
unsigned | bit, | ||
bool | gtlResult, | ||
unsigned | prescale, | ||
bool | mask, | ||
bool | decisionBeforeMask, | ||
bool | decisionAfterMask | ||
) |
Definition at line 63 of file TriggerAlgorithm.cc.
References conditionKeys_.
|
inlinevirtual |
|
inline |
Add a new trigger condition collection index.
Definition at line 100 of file TriggerAlgorithm.h.
References conditionKeys_, and hasConditionKey().
Referenced by pat::PATTriggerProducer::produce().
|
inline |
Get L1 algorithm alias.
Definition at line 104 of file TriggerAlgorithm.h.
References alias_.
Referenced by setAlias().
|
inline |
Get L1 algorithm bit number.
Definition at line 110 of file TriggerAlgorithm.h.
References bit_.
Referenced by setBit().
|
inline |
Get all trigger condition collection indeces.
Definition at line 125 of file TriggerAlgorithm.h.
References conditionKeys_.
Referenced by hasConditionKey().
|
inline |
Get L1 algorithm decision as applied, identical to L1 algorithm decision, considering the mask
Definition at line 123 of file TriggerAlgorithm.h.
References decisionAfterMask().
Referenced by pat::PATTriggerProducer::produce().
|
inline |
Get L1 algorithm decision, considering the mask.
Definition at line 120 of file TriggerAlgorithm.h.
References decisionAfterMask_.
Referenced by decision(), and setDecisionAfterMas().
|
inline |
Get L1 algorithm decision, not considering the mask.
Definition at line 118 of file TriggerAlgorithm.h.
References decisionBeforeMask_.
Referenced by setDecisionBeforeMask().
|
inline |
Get L1 algorithm GTL result.
Definition at line 112 of file TriggerAlgorithm.h.
References gtlResult_.
Referenced by setGtlResult().
bool TriggerAlgorithm::hasConditionKey | ( | unsigned | conditionKey | ) | const |
Checks, if a certain trigger condition collection index is assigned.
Definition at line 83 of file TriggerAlgorithm.cc.
References conditionKeys().
Referenced by addConditionKey().
|
inline |
Get L1 algorithm logical expression.
Definition at line 106 of file TriggerAlgorithm.h.
References logic_.
|
inline |
Get L1 algorithm mask.
Definition at line 116 of file TriggerAlgorithm.h.
References mask_.
Referenced by setMask().
|
inline |
Get L1 algorithm name.
Definition at line 102 of file TriggerAlgorithm.h.
References name_.
Referenced by cuy.divideElement::__init__(), cuy.plotElement::__init__(), cuy.additionElement::__init__(), cuy.superimposeElement::__init__(), cuy.graphElement::__init__(), config.CFG::__str__(), validation.Sample::digest(), VIDSelectorBase.VIDSelectorBase::initialize(), pat::PATTriggerProducer::produce(), setName(), and Vispa.Views.PropertyView.Property::valueChanged().
|
inline |
Get L1 algorithm pre-scale.
Definition at line 114 of file TriggerAlgorithm.h.
References prescale_.
Referenced by setPrescale().
|
inline |
Set L1 algorithm alias.
Definition at line 82 of file TriggerAlgorithm.h.
References alias(), and alias_.
|
inline |
Set L1 algorithm bit number.
Definition at line 88 of file TriggerAlgorithm.h.
|
inline |
Set L1 algorithm decision, considering the mask.
Definition at line 98 of file TriggerAlgorithm.h.
References decisionAfterMask(), and decisionAfterMask_.
|
inline |
Set L1 algorithm decision, not considering the mask.
Definition at line 96 of file TriggerAlgorithm.h.
References decisionBeforeMask(), and decisionBeforeMask_.
|
inline |
Set L1 algorithm GTL result.
Definition at line 90 of file TriggerAlgorithm.h.
References gtlResult(), and gtlResult_.
Referenced by pat::PATTriggerProducer::produce().
|
inline |
Set L1 algorithm logical expression.
Definition at line 84 of file TriggerAlgorithm.h.
References logic_.
Referenced by pat::PATTriggerProducer::produce().
|
inline |
Set L1 algorithm mask.
Definition at line 94 of file TriggerAlgorithm.h.
|
inline |
Methods.
Set L1 algorithm name
Definition at line 80 of file TriggerAlgorithm.h.
Referenced by Vispa.Gui.PortWidget.PortWidget::__init__(), and Vispa.Views.PropertyView.Property::__init__().
|
inline |
Set L1 algorithm pre-scale.
Definition at line 92 of file TriggerAlgorithm.h.
References prescale(), and prescale_.
|
inline |
Set flag for technical L1 algorithms.
Definition at line 86 of file TriggerAlgorithm.h.
References tech_.
|
inline |
Get flag for technical L1 algorithms.
Definition at line 108 of file TriggerAlgorithm.h.
References tech_.
|
private |
L1 algorithm alias.
Definition at line 41 of file TriggerAlgorithm.h.
Referenced by alias(), and setAlias().
|
private |
L1 algorithm bit number.
Definition at line 47 of file TriggerAlgorithm.h.
|
private |
Indeces of trigger conditions in pat::TriggerConditionCollection in event as produced together with the pat::TriggerAlgorithmCollection
Definition at line 60 of file TriggerAlgorithm.h.
Referenced by addConditionKey(), conditionKeys(), and TriggerAlgorithm().
|
private |
L1 algorithm decision, considering the mask.
Definition at line 57 of file TriggerAlgorithm.h.
Referenced by decisionAfterMask(), and setDecisionAfterMas().
|
private |
L1 algorithm decision, not considering the mask.
Definition at line 55 of file TriggerAlgorithm.h.
Referenced by decisionBeforeMask(), and setDecisionBeforeMask().
|
private |
L1 algorithm result as determined on the GTL board.
Definition at line 49 of file TriggerAlgorithm.h.
Referenced by gtlResult(), and setGtlResult().
|
private |
L1 algorithm logival expression.
Definition at line 43 of file TriggerAlgorithm.h.
Referenced by logicalExpression(), and setLogicalExpression().
|
private |
L1 algorithm mask.
Definition at line 53 of file TriggerAlgorithm.h.
|
private |
|
private |
L1 algorithm pre-scale.
Definition at line 51 of file TriggerAlgorithm.h.
Referenced by prescale(), and setPrescale().
|
private |
Flag for technical L1 algorithms.
Definition at line 45 of file TriggerAlgorithm.h.
Referenced by setTechTrigger(), and techTrigger().