#include <AlgorithmEvaluation.h>
Public Types | |
typedef ConditionEvaluationMap::const_iterator | CItEvalMap |
typedef __gnu_cxx::hash_map< std::string, ConditionEvaluation * > | ConditionEvaluationMap |
copy constructor More... | |
typedef ConditionEvaluationMap::iterator | ItEvalMap |
typedef GlobalLogicParser::OperandToken | OperandToken |
typedef std::vector< TokenRPN > | RpnVector |
typedef GlobalLogicParser::TokenRPN | TokenRPN |
Public Member Functions | |
AlgorithmEvaluation (const GlobalAlgorithm &) | |
constructor More... | |
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... | |
std::vector< GlobalLogicParser::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 |
Definition at line 72 of file AlgorithmEvaluation.h.
typedef ConditionEvaluationMap::const_iterator l1t::AlgorithmEvaluation::CItEvalMap |
Definition at line 94 of file AlgorithmEvaluation.h.
typedef __gnu_cxx ::hash_map<std::string, ConditionEvaluation*> l1t::AlgorithmEvaluation::ConditionEvaluationMap |
typedef ConditionEvaluationMap::iterator l1t::AlgorithmEvaluation::ItEvalMap |
Definition at line 95 of file AlgorithmEvaluation.h.
Definition at line 77 of file AlgorithmEvaluation.h.
typedef std::vector<TokenRPN> l1t::AlgorithmEvaluation::RpnVector |
Definition at line 76 of file AlgorithmEvaluation.h.
Definition at line 75 of file AlgorithmEvaluation.h.
|
explicit |
constructor
constructor from an algorithm from event setup
Definition at line 44 of file AlgorithmEvaluation.cc.
void AlgorithmEvaluation::evaluateAlgorithm | ( | const int | chipNumber, |
const std::vector< ConditionEvaluationMap > & | conditionResultMaps | ||
) |
evaluate an algorithm
Definition at line 57 of file AlgorithmEvaluation.cc.
References Exception, spr::find(), m_algoCombinationVector, m_algoResult, m_logicalExpression, m_operandTokenVector, m_rpnVector, GlobalLogicParser::OP_AND, GlobalLogicParser::OP_NOT, GlobalLogicParser::OP_OPERAND, GlobalLogicParser::OP_OR, GlobalLogicParser::OperandToken::tokenName, GlobalLogicParser::OperandToken::tokenNumber, and GlobalLogicParser::OperandToken::tokenResult.
Referenced by l1t::GlobalBoard::runGTL().
|
inline |
get all the object combinations evaluated to true in the conditions from the algorithm
Definition at line 114 of file AlgorithmEvaluation.h.
Referenced by l1t::GlobalBoard::runGTL().
|
inline |
get / set the result of the algorithm
Definition at line 100 of file AlgorithmEvaluation.h.
Referenced by l1t::GlobalBoard::runGTL().
|
inline |
Definition at line 118 of file AlgorithmEvaluation.h.
References reco::print().
Referenced by l1t::GlobalBoard::runGTL().
void AlgorithmEvaluation::print | ( | std::ostream & | myCout | ) | const |
Definition at line 177 of file AlgorithmEvaluation.cc.
References mps_fire::i, m_algoCombinationVector, m_algoResult, and m_operandTokenVector.
Referenced by l1t::GlobalBoard::runGTL().
|
inline |
Definition at line 104 of file AlgorithmEvaluation.h.
|
private |
Definition at line 135 of file AlgorithmEvaluation.h.
Referenced by evaluateAlgorithm(), and print().
|
private |
algorithm result
Definition at line 127 of file AlgorithmEvaluation.h.
Referenced by evaluateAlgorithm(), and print().
|
private |
Definition at line 130 of file AlgorithmEvaluation.h.
Referenced by evaluateAlgorithm().
|
private |
Definition at line 133 of file AlgorithmEvaluation.h.
Referenced by evaluateAlgorithm(), and print().
|
private |
Definition at line 131 of file AlgorithmEvaluation.h.
Referenced by evaluateAlgorithm().