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