#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 71 of file AlgorithmEvaluation.h.
typedef ConditionEvaluationMap::const_iterator l1t::AlgorithmEvaluation::CItEvalMap |
Definition at line 93 of file AlgorithmEvaluation.h.
typedef __gnu_cxx ::hash_map<std::string, ConditionEvaluation*> l1t::AlgorithmEvaluation::ConditionEvaluationMap |
typedef ConditionEvaluationMap::iterator l1t::AlgorithmEvaluation::ItEvalMap |
Definition at line 94 of file AlgorithmEvaluation.h.
Definition at line 76 of file AlgorithmEvaluation.h.
typedef std::vector<TokenRPN> l1t::AlgorithmEvaluation::RpnVector |
Definition at line 75 of file AlgorithmEvaluation.h.
Definition at line 74 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 edm::hlt::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 113 of file AlgorithmEvaluation.h.
References m_algoCombinationVector.
Referenced by l1t::GtBoard::runGTL().
|
inline |
get / set the result of the algorithm
Definition at line 99 of file AlgorithmEvaluation.h.
References m_algoResult.
Referenced by l1t::GtBoard::runGTL().
|
inline |
Definition at line 117 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 103 of file AlgorithmEvaluation.h.
References m_algoResult.
|
private |
Definition at line 134 of file AlgorithmEvaluation.h.
Referenced by gtAlgoCombinationVector().
|
private |
algorithm result
Definition at line 126 of file AlgorithmEvaluation.h.
Referenced by gtAlgoResult(), and setGtAlgoResult().
|
private |
Definition at line 129 of file AlgorithmEvaluation.h.
|
private |
Definition at line 132 of file AlgorithmEvaluation.h.
Referenced by operandTokenVector().
|
private |
Definition at line 130 of file AlgorithmEvaluation.h.