#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.
References algorithmExists(), algorithmResult(), getAlgorithmBitNumbers(), getCombinationsInCondition(), getConditionsInAlgorithm(), getNumberOfConditions(), swap(), and updateOperandTokenVector().
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, and m_algorithmResults.
Referenced by pat::PATTriggerProducer::produce(), and ~L1GlobalTriggerObjectMaps().
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(), mps_fire::i, m_algorithmResults, and updateOperandTokenVector().
Referenced by CompareToObjectMapRecord::analyze(), pat::PATTriggerProducer::produce(), and ~L1GlobalTriggerObjectMaps().
void L1GlobalTriggerObjectMaps::consistencyCheck | ( | ) | const |
Definition at line 154 of file L1GlobalTriggerObjectMaps.cc.
References cms::Exception::addContext(), mps_fire::i, m_algorithmResults, m_combinations, m_conditionResults, reserveForConditions(), and mitigatedMETSequence_cff::U.
Referenced by namesParameterSetID(), and pat::PATTriggerProducer::produce().
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 getNumberOfConditions(), mps_fire::i, and m_algorithmResults.
Referenced by CompareToObjectMapRecord::analyze(), updateOperandTokenVector(), and ~L1GlobalTriggerObjectMaps().
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, m_conditionResults, reserveForAlgorithms(), and mitigatedMETSequence_cff::U.
Referenced by CompareToObjectMapRecord::analyze(), getConditionsInAlgorithm(), pat::PATTriggerProducer::produce(), and ~L1GlobalTriggerObjectMaps().
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 getCombinationsInCondition(), getStartEndIndex(), and m_conditionResults.
Referenced by CompareToObjectMapRecord::analyze(), getNumberOfConditions(), pat::PATTriggerProducer::produce(), and ~L1GlobalTriggerObjectMaps().
unsigned L1GlobalTriggerObjectMaps::getNumberOfConditions | ( | int | algorithmBitNumber | ) | const |
Number of conditions associated with an algorithm.
Definition at line 85 of file L1GlobalTriggerObjectMaps.cc.
References getConditionsInAlgorithm(), and getStartEndIndex().
Referenced by CompareToObjectMapRecord::analyze(), getAlgorithmBitNumbers(), and ~L1GlobalTriggerObjectMaps().
|
private |
Definition at line 328 of file L1GlobalTriggerObjectMaps.cc.
References cms::Exception::addContext(), m_algorithmResults, and m_conditionResults.
Referenced by getCombinationsInCondition(), getConditionsInAlgorithm(), getNumberOfConditions(), L1GlobalTriggerObjectMaps::CombinationsInCondition::getObjectIndex(), 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 consistencyCheck(), m_namesParameterSetID, gen::n, pushBackAlgorithm(), pushBackCondition(), pushBackObjectIndex(), reserveForAlgorithms(), reserveForConditions(), reserveForObjectIndexes(), and setNamesParameterSetID().
Referenced by CompareToObjectMapRecord::analyze(), and pat::PATTriggerProducer::produce().
void L1GlobalTriggerObjectMaps::pushBackAlgorithm | ( | unsigned | startIndexOfConditions, |
int | algorithmBitNumber, | ||
bool | algorithmResult | ||
) |
Definition at line 146 of file L1GlobalTriggerObjectMaps.cc.
References m_algorithmResults.
Referenced by namesParameterSetID(), and reserveForAlgorithms().
void L1GlobalTriggerObjectMaps::pushBackCondition | ( | unsigned | startIndexOfCombinations, |
unsigned short | nObjectsPerCombination, | ||
bool | conditionResult | ||
) |
Definition at line 215 of file L1GlobalTriggerObjectMaps.cc.
References m_conditionResults, and reserveForObjectIndexes().
Referenced by namesParameterSetID(), and reserveForConditions().
void L1GlobalTriggerObjectMaps::pushBackObjectIndex | ( | unsigned char | objectIndex | ) |
Definition at line 229 of file L1GlobalTriggerObjectMaps.cc.
References m_combinations, and setNamesParameterSetID().
Referenced by namesParameterSetID(), and reserveForObjectIndexes().
void L1GlobalTriggerObjectMaps::reserveForAlgorithms | ( | unsigned | n | ) |
Definition at line 141 of file L1GlobalTriggerObjectMaps.cc.
References m_algorithmResults, and pushBackAlgorithm().
Referenced by getCombinationsInCondition(), and namesParameterSetID().
void L1GlobalTriggerObjectMaps::reserveForConditions | ( | unsigned | n | ) |
Definition at line 210 of file L1GlobalTriggerObjectMaps.cc.
References m_conditionResults, and pushBackCondition().
Referenced by consistencyCheck(), and namesParameterSetID().
void L1GlobalTriggerObjectMaps::reserveForObjectIndexes | ( | unsigned | n | ) |
Definition at line 224 of file L1GlobalTriggerObjectMaps.cc.
References m_combinations, and pushBackObjectIndex().
Referenced by namesParameterSetID(), and pushBackCondition().
void L1GlobalTriggerObjectMaps::setNamesParameterSetID | ( | edm::ParameterSetID const & | psetID | ) |
Definition at line 234 of file L1GlobalTriggerObjectMaps.cc.
References L1GlobalTriggerObjectMaps::AlgorithmResult::AlgorithmResult(), and m_namesParameterSetID.
Referenced by namesParameterSetID(), and pushBackObjectIndex().
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(), and ~L1GlobalTriggerObjectMaps().
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(), getAlgorithmBitNumbers(), getStartEndIndex(), mps_fire::i, and m_conditionResults.
Referenced by algorithmResult(), and ~L1GlobalTriggerObjectMaps().
|
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(), getConditionsInAlgorithm(), getStartEndIndex(), pushBackCondition(), reserveForConditions(), swap(), and updateOperandTokenVector().
|
private |
Definition at line 172 of file L1GlobalTriggerObjectMaps.h.
Referenced by namesParameterSetID(), setNamesParameterSetID(), and swap().