#include <L1GlobalTriggerObjectMaps.h>
Public Member Functions | |
CombinationsInCondition (unsigned char const *startOfObjectIndexes, unsigned nCombinations, unsigned short nObjectsPerCombination) | |
unsigned char | getObjectIndex (unsigned combination, unsigned object) const |
unsigned | nCombinations () const |
unsigned short | nObjectsPerCombination () const |
Private Attributes | |
unsigned | m_nCombinations |
unsigned short | m_nObjectsPerCombination |
unsigned char const * | m_startOfObjectIndexes |
Definition at line 144 of file L1GlobalTriggerObjectMaps.h.
L1GlobalTriggerObjectMaps::CombinationsInCondition::CombinationsInCondition | ( | unsigned char const * | startOfObjectIndexes, |
unsigned | nCombinations, | ||
unsigned short | nObjectsPerCombination | ||
) |
Definition at line 308 of file L1GlobalTriggerObjectMaps.cc.
: m_startOfObjectIndexes(startOfObjectIndexes), m_nCombinations(nCombinations), m_nObjectsPerCombination(nObjectsPerCombination) { }
unsigned char L1GlobalTriggerObjectMaps::CombinationsInCondition::getObjectIndex | ( | unsigned | combination, |
unsigned | object | ||
) | const |
Definition at line 317 of file L1GlobalTriggerObjectMaps.cc.
References cms::Exception::addContext(), and dbtoconf::object.
Referenced by CompareToObjectMapRecord::analyze(), and pat::PATTriggerProducer::produce().
{ if (combination >= m_nCombinations || object >= m_nObjectsPerCombination) { cms::Exception ex("L1GlobalTrigger"); ex << "arguments out of range"; ex.addContext("Calling L1GlobalTriggerObjectMaps::CombinationsInCondition::getObjectIndex"); throw ex; } return m_startOfObjectIndexes[combination * m_nObjectsPerCombination + object]; }
unsigned L1GlobalTriggerObjectMaps::CombinationsInCondition::nCombinations | ( | ) | const [inline] |
Definition at line 150 of file L1GlobalTriggerObjectMaps.h.
References m_nCombinations.
Referenced by CompareToObjectMapRecord::analyze(), and pat::PATTriggerProducer::produce().
{ return m_nCombinations; }
unsigned short L1GlobalTriggerObjectMaps::CombinationsInCondition::nObjectsPerCombination | ( | ) | const [inline] |
Definition at line 151 of file L1GlobalTriggerObjectMaps.h.
References m_nObjectsPerCombination.
Referenced by CompareToObjectMapRecord::analyze(), and pat::PATTriggerProducer::produce().
{ return m_nObjectsPerCombination; }
unsigned L1GlobalTriggerObjectMaps::CombinationsInCondition::m_nCombinations [private] |
Definition at line 156 of file L1GlobalTriggerObjectMaps.h.
Referenced by nCombinations().
unsigned short L1GlobalTriggerObjectMaps::CombinationsInCondition::m_nObjectsPerCombination [private] |
Definition at line 157 of file L1GlobalTriggerObjectMaps.h.
Referenced by nObjectsPerCombination().
unsigned char const* L1GlobalTriggerObjectMaps::CombinationsInCondition::m_startOfObjectIndexes [private] |
Definition at line 155 of file L1GlobalTriggerObjectMaps.h.