1 #ifndef DataFormats_L1GlobalTrigger_L1GlobalTriggerObjectMaps_h 2 #define DataFormats_L1GlobalTrigger_L1GlobalTriggerObjectMaps_h 43 std::vector<L1GtLogicParser::OperandToken>& operandTokenVector)
const;
64 unsigned conditionNumber)
const;
79 int algorithmBitNumber,
80 bool algorithmResult);
88 unsigned short nObjectsPerCombination,
89 bool conditionResult);
100 int algorithmBitNumber,
101 bool algorithmResult);
119 unsigned short nObjectsPerCombination,
120 bool conditionResult);
133 unsigned nConditions);
135 bool getConditionResult(
unsigned condition)
const;
145 unsigned nCombinations,
146 unsigned short nObjectsPerCombination);
150 unsigned char getObjectIndex(
unsigned combination,
151 unsigned object)
const;
160 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