#include <L1GtAlgorithmEvaluation.h>
Public Types | |
typedef ConditionEvaluationMap::const_iterator | CItEvalMap |
typedef __gnu_cxx::hash_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 66 of file L1GtAlgorithmEvaluation.h.
typedef ConditionEvaluationMap::const_iterator L1GtAlgorithmEvaluation::CItEvalMap |
Definition at line 88 of file L1GtAlgorithmEvaluation.h.
typedef __gnu_cxx ::hash_map<std::string, L1GtConditionEvaluation*> L1GtAlgorithmEvaluation::ConditionEvaluationMap |
typedef ConditionEvaluationMap::iterator L1GtAlgorithmEvaluation::ItEvalMap |
Definition at line 89 of file L1GtAlgorithmEvaluation.h.
Definition at line 71 of file L1GtAlgorithmEvaluation.h.
typedef std::vector<TokenRPN> L1GtAlgorithmEvaluation::RpnVector |
Definition at line 70 of file L1GtAlgorithmEvaluation.h.
Definition at line 69 of file L1GtAlgorithmEvaluation.h.
|
explicit |
constructor
constructor from an algorithm from event setup
Definition at line 45 of file L1GtAlgorithmEvaluation.cc.
void L1GtAlgorithmEvaluation::evaluateAlgorithm | ( | const int | chipNumber, |
const std::vector< ConditionEvaluationMap > & | conditionResultMaps | ||
) |
evaluate an algorithm
Definition at line 58 of file L1GtAlgorithmEvaluation.cc.
References 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 108 of file L1GtAlgorithmEvaluation.h.
Referenced by L1GlobalTriggerGTL::run().
|
inline |
get / set the result of the algorithm
Definition at line 94 of file L1GtAlgorithmEvaluation.h.
Referenced by L1GlobalTriggerGTL::run().
|
inline |
Definition at line 112 of file L1GtAlgorithmEvaluation.h.
References reco::print().
Referenced by L1GlobalTriggerGTL::run().
void L1GtAlgorithmEvaluation::print | ( | std::ostream & | myCout | ) | const |
Definition at line 183 of file L1GtAlgorithmEvaluation.cc.
References mps_fire::i, m_algoCombinationVector, m_algoResult, and m_operandTokenVector.
Referenced by L1GlobalTriggerGTL::run().
|
inline |
Definition at line 98 of file L1GtAlgorithmEvaluation.h.
|
private |
Definition at line 129 of file L1GtAlgorithmEvaluation.h.
Referenced by evaluateAlgorithm(), and print().
|
private |
algorithm result
Definition at line 121 of file L1GtAlgorithmEvaluation.h.
Referenced by evaluateAlgorithm(), and print().
|
private |
Definition at line 124 of file L1GtAlgorithmEvaluation.h.
Referenced by evaluateAlgorithm().
|
private |
Definition at line 127 of file L1GtAlgorithmEvaluation.h.
Referenced by evaluateAlgorithm(), and print().
|
private |
Definition at line 125 of file L1GtAlgorithmEvaluation.h.
Referenced by evaluateAlgorithm().