#include <L1GtUtils.h>
Public Member Functions | |
const std::vector< std::pair< std::string, bool > > & | decisionsAfterMask () |
const std::vector< std::pair< std::string, bool > > & | decisionsBeforeMask () |
const std::vector< std::pair< std::string, int > > & | errorCodes (const edm::Event &) |
const std::vector< L1GtLogicParser::OperandToken > & | expL1Triggers () |
list of triggers in the logical expression, trigger decisions, prescale factors and masks, error codes More... | |
bool | isValid () |
return true if the logical expression is syntactically correct More... | |
LogicalExpressionL1Results (const std::string &, L1GtUtils &) | |
constructor(s) More... | |
const int | logicalExpressionRunUpdate (const edm::Run &, const edm::EventSetup &, const std::string &) |
const int | logicalExpressionRunUpdate (const edm::Run &, const edm::EventSetup &) |
keep the logical expression given in the previous run More... | |
const std::vector< std::pair< std::string, int > > & | prescaleFactors () |
const std::vector< std::pair< std::string, int > > & | triggerMasks () |
~LogicalExpressionL1Results () | |
destructor More... | |
Private Member Functions | |
bool | initialize () |
void | l1Results (const edm::Event &iEvent) |
void | reset (const std::vector< std::pair< std::string, bool > > &) const |
reset for each L1 trigger the value from pair.second More... | |
void | reset (const std::vector< std::pair< std::string, int > > &) const |
Private Attributes | |
std::vector< std::pair< std::string, bool > > | m_decisionsAfterMask |
std::vector< std::pair< std::string, bool > > | m_decisionsBeforeMask |
std::vector< std::pair< std::string, int > > | m_errorCodes |
bool | m_expBitsTechTrigger |
flag true, if the logical expression is built from technical trigger bits More... | |
std::vector< L1GtLogicParser::OperandToken > | m_expL1Triggers |
size_t | m_expL1TriggersSize |
std::vector< L1GtUtils::TriggerCategory > | m_expTriggerCategory |
trigger category for each L1 trigger in the logical expression More... | |
std::vector< bool > | m_expTriggerInMenu |
int | m_l1ConfCode |
code for L1 trigger configuration More... | |
L1GtUtils & | m_l1GtUtils |
bool | m_l1ResultsAlreadyCalled |
set to true if the method l1Results was called once More... | |
std::string | m_logicalExpression |
private members as input parameters More... | |
std::vector< std::pair< std::string, int > > | m_prescaleFactors |
std::vector< std::pair< std::string, int > > | m_triggerMasks |
bool | m_validL1Configuration |
true if valid L1 configuration - if not, reset all quantities and return More... | |
bool | m_validLogicalExpression |
true if the logical expression uses accepted L1GtLogicParser operators More... | |
Definition at line 113 of file L1GtUtils.h.
|
explicit |
constructor(s)
trigger decisions, prescale factors and masks from GT record(s)
Definition at line 1743 of file L1GtUtils.cc.
References initialize().
L1GtUtils::LogicalExpressionL1Results::~LogicalExpressionL1Results | ( | ) |
const std::vector< std::pair< std::string, bool > > & L1GtUtils::LogicalExpressionL1Results::decisionsAfterMask | ( | ) |
Definition at line 1969 of file L1GtUtils.cc.
References Exception, m_decisionsAfterMask, and m_l1ResultsAlreadyCalled.
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), and expL1Triggers().
const std::vector< std::pair< std::string, bool > > & L1GtUtils::LogicalExpressionL1Results::decisionsBeforeMask | ( | ) |
Definition at line 1957 of file L1GtUtils.cc.
References Exception, m_decisionsBeforeMask, and m_l1ResultsAlreadyCalled.
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), and expL1Triggers().
const std::vector< std::pair< std::string, int > > & L1GtUtils::LogicalExpressionL1Results::errorCodes | ( | const edm::Event & | iEvent | ) |
Definition at line 2005 of file L1GtUtils.cc.
References l1Results(), m_decisionsAfterMask, m_decisionsBeforeMask, m_errorCodes, m_l1ResultsAlreadyCalled, m_prescaleFactors, m_triggerMasks, m_validL1Configuration, and reset().
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), and expL1Triggers().
|
inline |
list of triggers in the logical expression, trigger decisions, prescale factors and masks, error codes
Definition at line 136 of file L1GtUtils.h.
References decisionsAfterMask(), decisionsBeforeMask(), errorCodes(), iEvent, initialize(), l1Results(), m_expL1Triggers, prescaleFactors(), reset(), and triggerMasks().
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore().
|
private |
parse the logical expression, initialize the private members to required size such that one can just reset them
Definition at line 1769 of file L1GtUtils.cc.
References L1GtUtils::AlgorithmTrigger, cms::Exception::explainSelf(), dqmdumpme::first, LogDebug, LogTrace, m_decisionsAfterMask, m_decisionsBeforeMask, m_errorCodes, m_expBitsTechTrigger, m_expL1Triggers, m_expL1TriggersSize, m_expTriggerCategory, m_expTriggerInMenu, m_logicalExpression, m_prescaleFactors, m_triggerMasks, m_validLogicalExpression, L1GtLogicParser::operandTokenVector(), edm::second(), AlCaHLTBitMon_QueryRunRegistry::string, and cms::Exception::what().
Referenced by expL1Triggers(), LogicalExpressionL1Results(), and logicalExpressionRunUpdate().
|
inline |
return true if the logical expression is syntactically correct
Definition at line 125 of file L1GtUtils.h.
References logicalExpressionRunUpdate(), m_validLogicalExpression, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by ntupleDataFormat._Object::_checkIsValid(), L1GtAnalyzer::beginRun(), and core.AutoHandle.AutoHandle::ReallyLoad().
|
private |
Definition at line 2042 of file L1GtUtils.cc.
References L1GtUtils::EmptyString, L1GtUtils::L1GtNotValidError, L1GtUtils::l1Results(), LogDebug, LogTrace, m_decisionsAfterMask, m_decisionsBeforeMask, m_errorCodes, m_expL1Triggers, m_expL1TriggersSize, m_expTriggerInMenu, m_l1ConfCode, m_l1GtUtils, m_logicalExpression, m_prescaleFactors, m_triggerMasks, reset(), edm::second(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by errorCodes(), and expL1Triggers().
const int L1GtUtils::LogicalExpressionL1Results::logicalExpressionRunUpdate | ( | const edm::Run & | iRun, |
const edm::EventSetup & | evSetup, | ||
const std::string & | logicExpression | ||
) |
update quantities related to the logical expression at the beginning of the run new logical expression, replacing the logical expression given the in previous run
Definition at line 1853 of file L1GtUtils.cc.
References initialize(), m_decisionsAfterMask, m_decisionsBeforeMask, m_errorCodes, m_expBitsTechTrigger, m_expL1TriggersSize, m_expTriggerCategory, m_expTriggerInMenu, m_l1ResultsAlreadyCalled, m_logicalExpression, m_prescaleFactors, m_triggerMasks, and m_validLogicalExpression.
Referenced by L1GtAnalyzer::beginRun(), and isValid().
const int L1GtUtils::LogicalExpressionL1Results::logicalExpressionRunUpdate | ( | const edm::Run & | iRun, |
const edm::EventSetup & | evSetup | ||
) |
keep the logical expression given in the previous run
Definition at line 1887 of file L1GtUtils.cc.
References L1GtUtils::AlgorithmTrigger, L1GtUtils::availableL1Configuration(), L1TBPTX_cfi::bitNumber, dqmdumpme::first, L1GtUtils::l1AlgoTechTrigBitNumber(), L1GtUtils::l1TriggerNameFromBit(), m_decisionsAfterMask, m_decisionsBeforeMask, m_errorCodes, m_expBitsTechTrigger, m_expL1Triggers, m_expL1TriggersSize, m_expTriggerCategory, m_expTriggerInMenu, m_l1ConfCode, m_l1GtUtils, m_prescaleFactors, m_triggerMasks, m_validL1Configuration, AlCaHLTBitMon_QueryRunRegistry::string, and L1GtUtils::TechnicalTrigger.
const std::vector< std::pair< std::string, int > > & L1GtUtils::LogicalExpressionL1Results::prescaleFactors | ( | ) |
Definition at line 1981 of file L1GtUtils.cc.
References Exception, m_l1ResultsAlreadyCalled, and m_prescaleFactors.
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), and expL1Triggers().
|
private |
reset for each L1 trigger the value from pair.second
Definition at line 2028 of file L1GtUtils.cc.
References m_expL1TriggersSize, and edm::second().
Referenced by errorCodes(), expL1Triggers(), and l1Results().
|
private |
Definition at line 2035 of file L1GtUtils.cc.
References m_expL1TriggersSize, and edm::second().
const std::vector< std::pair< std::string, int > > & L1GtUtils::LogicalExpressionL1Results::triggerMasks | ( | ) |
Definition at line 1993 of file L1GtUtils.cc.
References Exception, m_l1ResultsAlreadyCalled, and m_triggerMasks.
Referenced by L1GtAnalyzer::analyzeL1GtUtilsCore(), and expL1Triggers().
|
private |
Definition at line 193 of file L1GtUtils.h.
Referenced by decisionsAfterMask(), errorCodes(), initialize(), l1Results(), and logicalExpressionRunUpdate().
|
private |
Definition at line 192 of file L1GtUtils.h.
Referenced by decisionsBeforeMask(), errorCodes(), initialize(), l1Results(), and logicalExpressionRunUpdate().
|
private |
Definition at line 196 of file L1GtUtils.h.
Referenced by errorCodes(), initialize(), l1Results(), and logicalExpressionRunUpdate().
|
private |
flag true, if the logical expression is built from technical trigger bits
Definition at line 185 of file L1GtUtils.h.
Referenced by initialize(), and logicalExpressionRunUpdate().
|
private |
Definition at line 178 of file L1GtUtils.h.
Referenced by expL1Triggers(), initialize(), l1Results(), and logicalExpressionRunUpdate().
|
private |
Definition at line 179 of file L1GtUtils.h.
Referenced by initialize(), l1Results(), logicalExpressionRunUpdate(), and reset().
|
private |
trigger category for each L1 trigger in the logical expression
Definition at line 182 of file L1GtUtils.h.
Referenced by initialize(), and logicalExpressionRunUpdate().
|
private |
for each L1 trigger in the logical expression, true if the trigger is found in the current L1 menu
Definition at line 189 of file L1GtUtils.h.
Referenced by initialize(), l1Results(), and logicalExpressionRunUpdate().
|
private |
code for L1 trigger configuration
Definition at line 167 of file L1GtUtils.h.
Referenced by l1Results(), and logicalExpressionRunUpdate().
|
private |
Definition at line 161 of file L1GtUtils.h.
Referenced by l1Results(), and logicalExpressionRunUpdate().
|
private |
set to true if the method l1Results was called once
Definition at line 176 of file L1GtUtils.h.
Referenced by decisionsAfterMask(), decisionsBeforeMask(), errorCodes(), logicalExpressionRunUpdate(), prescaleFactors(), and triggerMasks().
|
private |
private members as input parameters
logical expression
Definition at line 159 of file L1GtUtils.h.
Referenced by initialize(), l1Results(), and logicalExpressionRunUpdate().
|
private |
Definition at line 194 of file L1GtUtils.h.
Referenced by errorCodes(), initialize(), l1Results(), logicalExpressionRunUpdate(), and prescaleFactors().
|
private |
Definition at line 195 of file L1GtUtils.h.
Referenced by errorCodes(), initialize(), l1Results(), logicalExpressionRunUpdate(), and triggerMasks().
|
private |
true if valid L1 configuration - if not, reset all quantities and return
Definition at line 170 of file L1GtUtils.h.
Referenced by errorCodes(), and logicalExpressionRunUpdate().
|
private |
true if the logical expression uses accepted L1GtLogicParser operators
Definition at line 173 of file L1GtUtils.h.
Referenced by initialize(), isValid(), and logicalExpressionRunUpdate().