#include <AlgorithmEvaluation.h>
Public Types | |
typedef ConditionEvaluationMap::const_iterator | CItEvalMap |
typedef std::unordered_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 39 of file AlgorithmEvaluation.h.
typedef ConditionEvaluationMap::const_iterator l1t::AlgorithmEvaluation::CItEvalMap |
Definition at line 59 of file AlgorithmEvaluation.h.
typedef std::unordered_map<std::string, ConditionEvaluation*> l1t::AlgorithmEvaluation::ConditionEvaluationMap |
typedef ConditionEvaluationMap::iterator l1t::AlgorithmEvaluation::ItEvalMap |
Definition at line 60 of file AlgorithmEvaluation.h.
Definition at line 43 of file AlgorithmEvaluation.h.
typedef std::vector<TokenRPN> l1t::AlgorithmEvaluation::RpnVector |
Definition at line 42 of file AlgorithmEvaluation.h.
Definition at line 41 of file AlgorithmEvaluation.h.
|
explicit |
constructor
constructor from an algorithm from event setup
Definition at line 39 of file AlgorithmEvaluation.cc.
void AlgorithmEvaluation::evaluateAlgorithm | ( | const int | chipNumber, |
const std::vector< ConditionEvaluationMap > & | conditionResultMaps | ||
) |
evaluate an algorithm
Definition at line 47 of file AlgorithmEvaluation.cc.
References b1, b2, Exception, spr::find(), GlobalLogicParser::OP_AND, GlobalLogicParser::OP_NOT, GlobalLogicParser::OP_OPERAND, GlobalLogicParser::OP_OR, GlobalLogicParser::OP_XOR, 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 73 of file AlgorithmEvaluation.h.
References m_algoCombinationVector.
Referenced by l1t::GlobalBoard::runGTL().
|
inline |
get / set the result of the algorithm
Definition at line 64 of file AlgorithmEvaluation.h.
References m_algoResult.
Referenced by l1t::GlobalBoard::runGTL().
|
inline |
Definition at line 75 of file AlgorithmEvaluation.h.
References m_operandTokenVector.
Referenced by l1t::GlobalBoard::runGTL().
void AlgorithmEvaluation::print | ( | std::ostream & | myCout | ) | const |
Definition at line 161 of file AlgorithmEvaluation.cc.
References mps_fire::i.
Referenced by l1t::GlobalBoard::runGTL().
|
inline |
|
private |
Definition at line 89 of file AlgorithmEvaluation.h.
Referenced by gtAlgoCombinationVector().
|
private |
algorithm result
Definition at line 81 of file AlgorithmEvaluation.h.
Referenced by gtAlgoResult(), and setGtAlgoResult().
|
private |
Definition at line 84 of file AlgorithmEvaluation.h.
|
private |
Definition at line 87 of file AlgorithmEvaluation.h.
Referenced by operandTokenVector().
|
private |
Definition at line 85 of file AlgorithmEvaluation.h.