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