#include <L1GtAlgorithmEvaluation.h>
Public Types | |
typedef ConditionEvaluationMap::const_iterator | CItEvalMap |
typedef std::unordered_map < std::string, L1GtConditionEvaluation * > | ConditionEvaluationMap |
copy constructor More... | |
typedef ConditionEvaluationMap::iterator | ItEvalMap |
typedef L1GtLogicParser::OperandToken | OperandToken |
typedef std::vector< TokenRPN > | RpnVector |
typedef L1GtLogicParser::TokenRPN | TokenRPN |
Public Member Functions | |
void | evaluateAlgorithm (const int chipNumber, const std::vector< ConditionEvaluationMap > &) |
evaluate an algorithm More... | |
std::vector< CombinationsInCond > & | gtAlgoCombinationVector () |
bool | gtAlgoResult () const |
get / set the result of the algorithm More... | |
L1GtAlgorithmEvaluation (const L1GtAlgorithm &) | |
constructor More... | |
std::vector < L1GtLogicParser::OperandToken > & | operandTokenVector () |
void | print (std::ostream &myCout) const |
void | setGtAlgoResult (const bool algoResult) |
Private Attributes | |
std::vector< CombinationsInCond > | m_algoCombinationVector |
bool | m_algoResult |
algorithm result More... | |
std::string const & | m_logicalExpression |
std::vector< OperandToken > | m_operandTokenVector |
RpnVector const & | m_rpnVector |
Description: Evaluation of a L1 Global Trigger algorithm.
Implementation: <TODO: enter implementation details>
Definition at line 34 of file L1GtAlgorithmEvaluation.h.
typedef ConditionEvaluationMap::const_iterator L1GtAlgorithmEvaluation::CItEvalMap |
Definition at line 55 of file L1GtAlgorithmEvaluation.h.
typedef std ::unordered_map<std::string, L1GtConditionEvaluation *> L1GtAlgorithmEvaluation::ConditionEvaluationMap |
typedef ConditionEvaluationMap::iterator L1GtAlgorithmEvaluation::ItEvalMap |
Definition at line 56 of file L1GtAlgorithmEvaluation.h.
Definition at line 38 of file L1GtAlgorithmEvaluation.h.
typedef std::vector<TokenRPN> L1GtAlgorithmEvaluation::RpnVector |
Definition at line 37 of file L1GtAlgorithmEvaluation.h.
Definition at line 36 of file L1GtAlgorithmEvaluation.h.
|
explicit |
constructor
constructor from an algorithm from event setup
Definition at line 42 of file L1GtAlgorithmEvaluation.cc.
void L1GtAlgorithmEvaluation::evaluateAlgorithm | ( | const int | chipNumber, |
const std::vector< ConditionEvaluationMap > & | conditionResultMaps | ||
) |
evaluate an algorithm
Definition at line 50 of file L1GtAlgorithmEvaluation.cc.
References b1, b2, Exception, spr::find(), m_algoCombinationVector, m_algoResult, m_logicalExpression, m_operandTokenVector, m_rpnVector, L1GtLogicParser::OP_AND, L1GtLogicParser::OP_NOT, L1GtLogicParser::OP_OPERAND, L1GtLogicParser::OP_OR, L1GtLogicParser::OperandToken::tokenName, L1GtLogicParser::OperandToken::tokenNumber, and L1GtLogicParser::OperandToken::tokenResult.
Referenced by L1GlobalTriggerGTL::run().
|
inline |
get all the object combinations evaluated to true in the conditions from the algorithm
Definition at line 69 of file L1GtAlgorithmEvaluation.h.
References m_algoCombinationVector.
Referenced by L1GlobalTriggerGTL::run().
|
inline |
get / set the result of the algorithm
Definition at line 60 of file L1GtAlgorithmEvaluation.h.
References m_algoResult.
Referenced by L1GlobalTriggerGTL::run().
|
inline |
Definition at line 71 of file L1GtAlgorithmEvaluation.h.
References m_operandTokenVector.
Referenced by L1GlobalTriggerGTL::run().
void L1GtAlgorithmEvaluation::print | ( | std::ostream & | myCout | ) | const |
Definition at line 159 of file L1GtAlgorithmEvaluation.cc.
References mps_fire::i, m_algoCombinationVector, m_algoResult, and m_operandTokenVector.
Referenced by L1GlobalTriggerGTL::run().
|
inline |
Definition at line 62 of file L1GtAlgorithmEvaluation.h.
References m_algoResult.
|
private |
Definition at line 85 of file L1GtAlgorithmEvaluation.h.
Referenced by evaluateAlgorithm(), gtAlgoCombinationVector(), and print().
|
private |
algorithm result
Definition at line 77 of file L1GtAlgorithmEvaluation.h.
Referenced by evaluateAlgorithm(), gtAlgoResult(), print(), and setGtAlgoResult().
|
private |
Definition at line 80 of file L1GtAlgorithmEvaluation.h.
Referenced by evaluateAlgorithm().
|
private |
Definition at line 83 of file L1GtAlgorithmEvaluation.h.
Referenced by evaluateAlgorithm(), operandTokenVector(), and print().
|
private |
Definition at line 81 of file L1GtAlgorithmEvaluation.h.
Referenced by evaluateAlgorithm().