#include <L1GlobalTriggerObjectMaps.h>
Classes | |
class | AlgorithmResult |
class | CombinationsInCondition |
class | ConditionResult |
class | ConditionsInAlgorithm |
Public Member Functions | |
bool | algorithmExists (int algorithmBitNumber) const |
Returns true if there is an entry for this algorithm bit number. More... | |
bool | algorithmResult (int algorithmBitNumber) const |
Returns whether an algorithm trigger passed or failed. More... | |
void | consistencyCheck () const |
void | getAlgorithmBitNumbers (std::vector< int > &algorithmBitNumbers) const |
Fills the vector with all the algorithm bit numbers. More... | |
CombinationsInCondition | getCombinationsInCondition (int algorithmBitNumber, unsigned conditionNumber) const |
ConditionsInAlgorithm | getConditionsInAlgorithm (int algorithmBitNumber) const |
unsigned | getNumberOfConditions (int algorithmBitNumber) const |
Number of conditions associated with an algorithm. More... | |
L1GlobalTriggerObjectMaps () | |
edm::ParameterSetID const & | namesParameterSetID () const |
void | pushBackAlgorithm (unsigned startIndexOfConditions, int algorithmBitNumber, bool algorithmResult) |
void | pushBackCondition (unsigned startIndexOfCombinations, unsigned short nObjectsPerCombination, bool conditionResult) |
void | pushBackObjectIndex (unsigned char objectIndex) |
void | reserveForAlgorithms (unsigned n) |
void | reserveForConditions (unsigned n) |
void | reserveForObjectIndexes (unsigned n) |
void | setNamesParameterSetID (edm::ParameterSetID const &psetID) |
void | swap (L1GlobalTriggerObjectMaps &rh) |
void | updateOperandTokenVector (int algorithmBitNumber, std::vector< L1GtLogicParser::OperandToken > &operandTokenVector) const |
Update the condition result in the operandTokenVector. More... | |
~L1GlobalTriggerObjectMaps () | |
Private Member Functions | |
void | getStartEndIndex (int algorithmBitNumber, unsigned &startIndex, unsigned &endIndex) const |
Private Attributes | |
std::vector< AlgorithmResult > | m_algorithmResults |
std::vector< unsigned char > | m_combinations |
std::vector< ConditionResult > | m_conditionResults |
edm::ParameterSetID | m_namesParameterSetID |
Description: map trigger objects to algorithms and conditions.
Implementation: <TODO: enter implementation details>
Definition at line 24 of file L1GlobalTriggerObjectMaps.h.
|
inline |
Definition at line 29 of file L1GlobalTriggerObjectMaps.h.
|
inline |
Definition at line 31 of file L1GlobalTriggerObjectMaps.h.
bool L1GlobalTriggerObjectMaps::algorithmExists | ( | int | algorithmBitNumber | ) | const |
Returns true if there is an entry for this algorithm bit number.
Definition at line 30 of file L1GlobalTriggerObjectMaps.cc.
References i, and m_algorithmResults.
bool L1GlobalTriggerObjectMaps::algorithmResult | ( | int | algorithmBitNumber | ) | const |
Returns whether an algorithm trigger passed or failed.
Definition at line 41 of file L1GlobalTriggerObjectMaps.cc.
References cms::Exception::addContext(), i, and m_algorithmResults.
void L1GlobalTriggerObjectMaps::consistencyCheck | ( | ) | const |
Definition at line 154 of file L1GlobalTriggerObjectMaps.cc.
References cms::Exception::addContext(), i, j, m_algorithmResults, m_combinations, and m_conditionResults.
void L1GlobalTriggerObjectMaps::getAlgorithmBitNumbers | ( | std::vector< int > & | algorithmBitNumbers | ) | const |
Fills the vector with all the algorithm bit numbers.
Definition at line 76 of file L1GlobalTriggerObjectMaps.cc.
References i, and m_algorithmResults.
L1GlobalTriggerObjectMaps::CombinationsInCondition L1GlobalTriggerObjectMaps::getCombinationsInCondition | ( | int | algorithmBitNumber, |
unsigned | conditionNumber | ||
) | const |
Each condition can be satisfied by multiple combinations of L1 objects. The number, order, and type of objects associated with each condition is defined in the L1 Trigger Menu. The following function returns an object which has a function that returns the index into the L1 Object Collections of each object in each combination.
Definition at line 102 of file L1GlobalTriggerObjectMaps.cc.
References cms::Exception::addContext(), getStartEndIndex(), m_combinations, and m_conditionResults.
L1GlobalTriggerObjectMaps::ConditionsInAlgorithm L1GlobalTriggerObjectMaps::getConditionsInAlgorithm | ( | int | algorithmBitNumber | ) | const |
Return an object which has a function that returns the results of the conditions associated with an algorithm.
Definition at line 94 of file L1GlobalTriggerObjectMaps.cc.
References getStartEndIndex(), and m_conditionResults.
unsigned L1GlobalTriggerObjectMaps::getNumberOfConditions | ( | int | algorithmBitNumber | ) | const |
Number of conditions associated with an algorithm.
Definition at line 85 of file L1GlobalTriggerObjectMaps.cc.
References getStartEndIndex().
|
private |
Definition at line 328 of file L1GlobalTriggerObjectMaps.cc.
References cms::Exception::addContext(), m_algorithmResults, and m_conditionResults.
Referenced by getCombinationsInCondition(), getConditionsInAlgorithm(), getNumberOfConditions(), and updateOperandTokenVector().
|
inline |
Returns the ID of the ParameterSet containing the algorithm names and condition names.
Definition at line 68 of file L1GlobalTriggerObjectMaps.h.
References m_namesParameterSetID.
void L1GlobalTriggerObjectMaps::pushBackAlgorithm | ( | unsigned | startIndexOfConditions, |
int | algorithmBitNumber, | ||
bool | algorithmResult | ||
) |
Definition at line 146 of file L1GlobalTriggerObjectMaps.cc.
References m_algorithmResults.
void L1GlobalTriggerObjectMaps::pushBackCondition | ( | unsigned | startIndexOfCombinations, |
unsigned short | nObjectsPerCombination, | ||
bool | conditionResult | ||
) |
Definition at line 215 of file L1GlobalTriggerObjectMaps.cc.
References m_conditionResults.
void L1GlobalTriggerObjectMaps::pushBackObjectIndex | ( | unsigned char | objectIndex | ) |
Definition at line 229 of file L1GlobalTriggerObjectMaps.cc.
References m_combinations.
void L1GlobalTriggerObjectMaps::reserveForAlgorithms | ( | unsigned | n | ) |
Definition at line 141 of file L1GlobalTriggerObjectMaps.cc.
References m_algorithmResults.
void L1GlobalTriggerObjectMaps::reserveForConditions | ( | unsigned | n | ) |
Definition at line 210 of file L1GlobalTriggerObjectMaps.cc.
References m_conditionResults.
void L1GlobalTriggerObjectMaps::reserveForObjectIndexes | ( | unsigned | n | ) |
Definition at line 224 of file L1GlobalTriggerObjectMaps.cc.
References m_combinations.
void L1GlobalTriggerObjectMaps::setNamesParameterSetID | ( | edm::ParameterSetID const & | psetID | ) |
Definition at line 234 of file L1GlobalTriggerObjectMaps.cc.
References m_namesParameterSetID.
void L1GlobalTriggerObjectMaps::swap | ( | L1GlobalTriggerObjectMaps & | rh | ) |
Definition at line 23 of file L1GlobalTriggerObjectMaps.cc.
References m_algorithmResults, m_combinations, m_conditionResults, m_namesParameterSetID, and edm::Hash< I >::swap().
Referenced by swap().
void L1GlobalTriggerObjectMaps::updateOperandTokenVector | ( | int | algorithmBitNumber, |
std::vector< L1GtLogicParser::OperandToken > & | operandTokenVector | ||
) | const |
Update the condition result in the operandTokenVector.
Definition at line 56 of file L1GlobalTriggerObjectMaps.cc.
References cms::Exception::addContext(), getStartEndIndex(), i, and m_conditionResults.
|
private |
Definition at line 169 of file L1GlobalTriggerObjectMaps.h.
Referenced by algorithmExists(), algorithmResult(), consistencyCheck(), getAlgorithmBitNumbers(), getStartEndIndex(), pushBackAlgorithm(), reserveForAlgorithms(), and swap().
|
private |
Definition at line 171 of file L1GlobalTriggerObjectMaps.h.
Referenced by consistencyCheck(), getCombinationsInCondition(), pushBackObjectIndex(), reserveForObjectIndexes(), and swap().
|
private |
Definition at line 170 of file L1GlobalTriggerObjectMaps.h.
Referenced by consistencyCheck(), getCombinationsInCondition(), L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::getConditionResult(), getConditionsInAlgorithm(), getStartEndIndex(), pushBackCondition(), reserveForConditions(), swap(), and updateOperandTokenVector().
|
private |
Definition at line 172 of file L1GlobalTriggerObjectMaps.h.
Referenced by namesParameterSetID(), setNamesParameterSetID(), and swap().