#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 26 of file L1GlobalTriggerObjectMaps.h.
|
inline |
Definition at line 28 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 mps_fire::i, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and m_algorithmResults.
Referenced by pat::PATTriggerProducer::produce().
bool L1GlobalTriggerObjectMaps::algorithmResult | ( | int | algorithmBitNumber | ) | const |
Returns whether an algorithm trigger passed or failed.
Definition at line 39 of file L1GlobalTriggerObjectMaps.cc.
References cms::Exception::addContext(), mps_fire::i, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and m_algorithmResults.
Referenced by CompareToObjectMapRecord::analyze(), pat::PATTriggerProducer::produce(), and pushBackAlgorithm().
void L1GlobalTriggerObjectMaps::consistencyCheck | ( | ) | const |
Definition at line 138 of file L1GlobalTriggerObjectMaps.cc.
References cms::Exception::addContext(), mps_fire::i, dqmiolumiharvest::j, m_algorithmResults, m_combinations, m_conditionResults, and mitigatedMETSequence_cff::U.
Referenced by pat::PATTriggerProducer::produce().
void L1GlobalTriggerObjectMaps::getAlgorithmBitNumbers | ( | std::vector< int > & | algorithmBitNumbers | ) | const |
Fills the vector with all the algorithm bit numbers.
Definition at line 70 of file L1GlobalTriggerObjectMaps.cc.
References mps_fire::i, and m_algorithmResults.
Referenced by CompareToObjectMapRecord::analyze().
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 94 of file L1GlobalTriggerObjectMaps.cc.
References cms::Exception::addContext(), getStartEndIndex(), m_combinations, m_conditionResults, and mitigatedMETSequence_cff::U.
Referenced by CompareToObjectMapRecord::analyze(), and pat::PATTriggerProducer::produce().
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 86 of file L1GlobalTriggerObjectMaps.cc.
References getStartEndIndex(), and m_conditionResults.
Referenced by CompareToObjectMapRecord::analyze(), and pat::PATTriggerProducer::produce().
unsigned L1GlobalTriggerObjectMaps::getNumberOfConditions | ( | int | algorithmBitNumber | ) | const |
Number of conditions associated with an algorithm.
Definition at line 79 of file L1GlobalTriggerObjectMaps.cc.
References getStartEndIndex().
Referenced by CompareToObjectMapRecord::analyze().
|
private |
Definition at line 279 of file L1GlobalTriggerObjectMaps.cc.
References cms::Exception::addContext(), pfDeepBoostedJetPreprocessParams_cfi::lower_bound, 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 64 of file L1GlobalTriggerObjectMaps.h.
References m_namesParameterSetID.
Referenced by CompareToObjectMapRecord::analyze(), and pat::PATTriggerProducer::produce().
void L1GlobalTriggerObjectMaps::pushBackAlgorithm | ( | unsigned | startIndexOfConditions, |
int | algorithmBitNumber, | ||
bool | algorithmResult | ||
) |
Definition at line 132 of file L1GlobalTriggerObjectMaps.cc.
References algorithmResult(), and m_algorithmResults.
void L1GlobalTriggerObjectMaps::pushBackCondition | ( | unsigned | startIndexOfCombinations, |
unsigned short | nObjectsPerCombination, | ||
bool | conditionResult | ||
) |
Definition at line 195 of file L1GlobalTriggerObjectMaps.cc.
References m_conditionResults.
void L1GlobalTriggerObjectMaps::pushBackObjectIndex | ( | unsigned char | objectIndex | ) |
Definition at line 203 of file L1GlobalTriggerObjectMaps.cc.
References m_combinations.
void L1GlobalTriggerObjectMaps::reserveForAlgorithms | ( | unsigned | n | ) |
Definition at line 130 of file L1GlobalTriggerObjectMaps.cc.
References m_algorithmResults, and dqmiodumpmetadata::n.
void L1GlobalTriggerObjectMaps::reserveForConditions | ( | unsigned | n | ) |
Definition at line 193 of file L1GlobalTriggerObjectMaps.cc.
References m_conditionResults, and dqmiodumpmetadata::n.
void L1GlobalTriggerObjectMaps::reserveForObjectIndexes | ( | unsigned | n | ) |
Definition at line 201 of file L1GlobalTriggerObjectMaps.cc.
References m_combinations, and dqmiodumpmetadata::n.
void L1GlobalTriggerObjectMaps::setNamesParameterSetID | ( | edm::ParameterSetID const & | psetID | ) |
Definition at line 207 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().
void L1GlobalTriggerObjectMaps::updateOperandTokenVector | ( | int | algorithmBitNumber, |
std::vector< L1GtLogicParser::OperandToken > & | operandTokenVector | ||
) | const |
Update the condition result in the operandTokenVector.
Definition at line 51 of file L1GlobalTriggerObjectMaps.cc.
References cms::Exception::addContext(), getStartEndIndex(), mps_fire::i, and m_conditionResults.
|
private |
Definition at line 157 of file L1GlobalTriggerObjectMaps.h.
Referenced by algorithmExists(), algorithmResult(), consistencyCheck(), getAlgorithmBitNumbers(), getStartEndIndex(), pushBackAlgorithm(), reserveForAlgorithms(), and swap().
|
private |
Definition at line 159 of file L1GlobalTriggerObjectMaps.h.
Referenced by consistencyCheck(), getCombinationsInCondition(), pushBackObjectIndex(), reserveForObjectIndexes(), and swap().
|
private |
Definition at line 158 of file L1GlobalTriggerObjectMaps.h.
Referenced by consistencyCheck(), getCombinationsInCondition(), L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::getConditionResult(), getConditionsInAlgorithm(), getStartEndIndex(), pushBackCondition(), reserveForConditions(), swap(), and updateOperandTokenVector().
|
private |
Definition at line 160 of file L1GlobalTriggerObjectMaps.h.
Referenced by namesParameterSetID(), setNamesParameterSetID(), and swap().