#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 L1GtLogicParser::OperandToken | OperandToken |
typedef std::vector< TokenRPN > | RpnVector |
typedef L1GtLogicParser::TokenRPN | TokenRPN |
Public Member Functions | |
AlgorithmEvaluation (const L1GtAlgorithm &) | |
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 < 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 |
Definition at line 73 of file AlgorithmEvaluation.h.
typedef ConditionEvaluationMap::const_iterator l1t::AlgorithmEvaluation::CItEvalMap |
Definition at line 95 of file AlgorithmEvaluation.h.
typedef __gnu_cxx ::hash_map<std::string, ConditionEvaluation*> l1t::AlgorithmEvaluation::ConditionEvaluationMap |
typedef ConditionEvaluationMap::iterator l1t::AlgorithmEvaluation::ItEvalMap |
Definition at line 96 of file AlgorithmEvaluation.h.
Definition at line 78 of file AlgorithmEvaluation.h.
typedef std::vector<TokenRPN> l1t::AlgorithmEvaluation::RpnVector |
Definition at line 77 of file AlgorithmEvaluation.h.
Definition at line 76 of file AlgorithmEvaluation.h.
|
explicit |
constructor
constructor from an algorithm from event setup
Definition at line 45 of file AlgorithmEvaluation.cc.
void AlgorithmEvaluation::evaluateAlgorithm | ( | const int | chipNumber, |
const std::vector< ConditionEvaluationMap > & | conditionResultMaps | ||
) |
evaluate an algorithm
Definition at line 58 of file AlgorithmEvaluation.cc.
References Exception, spr::find(), L1GtLogicParser::OP_AND, L1GtLogicParser::OP_NOT, L1GtLogicParser::OP_OPERAND, L1GtLogicParser::OP_OR, L1GtLogicParser::OperandToken::tokenName, L1GtLogicParser::OperandToken::tokenNumber, and L1GtLogicParser::OperandToken::tokenResult.
Referenced by l1t::GtBoard::runGTL().
|
inline |
get all the object combinations evaluated to true in the conditions from the algorithm
Definition at line 115 of file AlgorithmEvaluation.h.
References m_algoCombinationVector.
Referenced by l1t::GtBoard::runGTL().
|
inline |
get / set the result of the algorithm
Definition at line 101 of file AlgorithmEvaluation.h.
References m_algoResult.
Referenced by l1t::GtBoard::runGTL().
|
inline |
Definition at line 119 of file AlgorithmEvaluation.h.
References m_operandTokenVector.
Referenced by l1t::GtBoard::runGTL().
void AlgorithmEvaluation::print | ( | std::ostream & | myCout | ) | const |
Definition at line 184 of file AlgorithmEvaluation.cc.
References i.
Referenced by l1t::GtBoard::runGTL().
|
inline |
Definition at line 105 of file AlgorithmEvaluation.h.
References m_algoResult.
|
private |
Definition at line 136 of file AlgorithmEvaluation.h.
Referenced by gtAlgoCombinationVector().
|
private |
algorithm result
Definition at line 128 of file AlgorithmEvaluation.h.
Referenced by gtAlgoResult(), and setGtAlgoResult().
|
private |
Definition at line 131 of file AlgorithmEvaluation.h.
|
private |
Definition at line 134 of file AlgorithmEvaluation.h.
Referenced by operandTokenVector().
|
private |
Definition at line 132 of file AlgorithmEvaluation.h.