1 #ifndef DataFormats_L1GlobalTrigger_L1GlobalTriggerObjectMaps_h 2 #define DataFormats_L1GlobalTrigger_L1GlobalTriggerObjectMaps_h 40 std::vector<L1GtLogicParser::OperandToken>& operandTokenVector)
const;
74 void pushBackAlgorithm(
unsigned startIndexOfConditions,
int algorithmBitNumber,
bool algorithmResult);
82 unsigned short nObjectsPerCombination,
83 bool conditionResult);
93 AlgorithmResult(
unsigned startIndexOfConditions,
int algorithmBitNumber,
bool algorithmResult);
109 ConditionResult(
unsigned startIndexOfCombinations,
unsigned short nObjectsPerCombination,
bool conditionResult);
124 bool getConditionResult(
unsigned condition)
const;
134 unsigned nCombinations,
135 unsigned short nObjectsPerCombination);
139 unsigned char getObjectIndex(
unsigned combination,
unsigned object)
const;
148 void getStartEndIndex(
int algorithmBitNumber,
unsigned& startIndex,
unsigned& endIndex)
const;
void pushBackCondition(unsigned startIndexOfCombinations, unsigned short nObjectsPerCombination, bool conditionResult)
void reserveForAlgorithms(unsigned n)
~L1GlobalTriggerObjectMaps()
void reserveForObjectIndexes(unsigned n)
void pushBackObjectIndex(unsigned char objectIndex)
unsigned short nObjectsPerCombination() const
unsigned short nObjectsPerCombination() const
edm::ParameterSetID m_namesParameterSetID
L1GlobalTriggerObjectMaps()
void consistencyCheck() const
void reserveForConditions(unsigned n)
void getAlgorithmBitNumbers(std::vector< int > &algorithmBitNumbers) const
Fills the vector with all the algorithm bit numbers.
bool algorithmExists(int algorithmBitNumber) const
Returns true if there is an entry for this algorithm bit number.
bool operator<(AlgorithmResult const &right) const
void swap(L1GlobalTriggerObjectMaps &rh)
std::vector< AlgorithmResult > m_algorithmResults
unsigned short m_nObjectsPerCombination
unsigned char const * m_startOfObjectIndexes
edm::ParameterSetID const & namesParameterSetID() const
unsigned short m_nObjectsPerCombination
bool conditionResult() const
short m_algorithmBitNumber
std::vector< unsigned char > m_combinations
std::vector< ConditionResult > m_conditionResults
bool algorithmResult() const
short algorithmBitNumber() const
unsigned nConditions() const
void updateOperandTokenVector(int algorithmBitNumber, std::vector< L1GtLogicParser::OperandToken > &operandTokenVector) const
Update the condition result in the operandTokenVector.
void pushBackAlgorithm(unsigned startIndexOfConditions, int algorithmBitNumber, bool algorithmResult)
CombinationsInCondition getCombinationsInCondition(int algorithmBitNumber, unsigned conditionNumber) const
unsigned nCombinations() const
unsigned getNumberOfConditions(int algorithmBitNumber) const
Number of conditions associated with an algorithm.
void setNamesParameterSetID(edm::ParameterSetID const &psetID)
unsigned startIndexOfCombinations() const
unsigned m_startIndexOfConditions
ConditionResult const * m_conditionResults
ConditionsInAlgorithm getConditionsInAlgorithm(int algorithmBitNumber) const
bool algorithmResult(int algorithmBitNumber) const
Returns whether an algorithm trigger passed or failed.
unsigned startIndexOfConditions() const
unsigned m_startIndexOfCombinations
void getStartEndIndex(int algorithmBitNumber, unsigned &startIndex, unsigned &endIndex) const