1 #ifndef DataFormats_L1GlobalTrigger_L1GlobalTriggerObjectMaps_h
2 #define DataFormats_L1GlobalTrigger_L1GlobalTriggerObjectMaps_h
43 std::vector<L1GtLogicParser::OperandToken>& operandTokenVector)
const;
51 class ConditionsInAlgorithm;
52 class CombinationsInCondition;
64 unsigned conditionNumber)
const;
79 int algorithmBitNumber,
88 unsigned short nObjectsPerCombination,
89 bool conditionResult);
151 unsigned object)
const;
160 void getStartEndIndex(
int algorithmBitNumber,
unsigned& startIndex,
unsigned& endIndex)
const;
void swap(ora::Record &rh, ora::Record &lh)
unsigned char getObjectIndex(unsigned combination, unsigned object) const
void pushBackCondition(unsigned startIndexOfCombinations, unsigned short nObjectsPerCombination, bool conditionResult)
void reserveForAlgorithms(unsigned n)
~L1GlobalTriggerObjectMaps()
void reserveForObjectIndexes(unsigned n)
void pushBackObjectIndex(unsigned char objectIndex)
ConditionsInAlgorithm(ConditionResult const *conditionResults, unsigned nConditions)
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
CombinationsInCondition(unsigned char const *startOfObjectIndexes, unsigned nCombinations, unsigned short nObjectsPerCombination)
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
bool getConditionResult(unsigned condition) const
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