CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1GlobalTriggerObjectMaps::CombinationsInCondition Class Reference

#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
 

Detailed Description

Definition at line 131 of file L1GlobalTriggerObjectMaps.h.

Constructor & Destructor Documentation

◆ CombinationsInCondition()

L1GlobalTriggerObjectMaps::CombinationsInCondition::CombinationsInCondition ( unsigned char const *  startOfObjectIndexes,
unsigned  nCombinations,
unsigned short  nObjectsPerCombination 
)

Definition at line 261 of file L1GlobalTriggerObjectMaps.cc.

Member Function Documentation

◆ getObjectIndex()

unsigned char L1GlobalTriggerObjectMaps::CombinationsInCondition::getObjectIndex ( unsigned  combination,
unsigned  object 
) const

Definition at line 268 of file L1GlobalTriggerObjectMaps.cc.

269  {
270  if (combination >= m_nCombinations || object >= m_nObjectsPerCombination) {
271  cms::Exception ex("L1GlobalTrigger");
272  ex << "arguments out of range";
273  ex.addContext("Calling L1GlobalTriggerObjectMaps::CombinationsInCondition::getObjectIndex");
274  throw ex;
275  }
277 }

References cms::Exception::addContext(), and resolutioncreator_cfi::object.

Referenced by CompareToObjectMapRecord::analyze(), and pat::PATTriggerProducer::produce().

◆ nCombinations()

unsigned L1GlobalTriggerObjectMaps::CombinationsInCondition::nCombinations ( ) const
inline

◆ nObjectsPerCombination()

unsigned short L1GlobalTriggerObjectMaps::CombinationsInCondition::nObjectsPerCombination ( ) const
inline

Member Data Documentation

◆ m_nCombinations

unsigned L1GlobalTriggerObjectMaps::CombinationsInCondition::m_nCombinations
private

Definition at line 143 of file L1GlobalTriggerObjectMaps.h.

Referenced by nCombinations().

◆ m_nObjectsPerCombination

unsigned short L1GlobalTriggerObjectMaps::CombinationsInCondition::m_nObjectsPerCombination
private

Definition at line 144 of file L1GlobalTriggerObjectMaps.h.

Referenced by nObjectsPerCombination().

◆ m_startOfObjectIndexes

unsigned char const* L1GlobalTriggerObjectMaps::CombinationsInCondition::m_startOfObjectIndexes
private

Definition at line 142 of file L1GlobalTriggerObjectMaps.h.

resolutioncreator_cfi.object
object
Definition: resolutioncreator_cfi.py:4
L1GlobalTriggerObjectMaps::CombinationsInCondition::m_startOfObjectIndexes
unsigned char const * m_startOfObjectIndexes
Definition: L1GlobalTriggerObjectMaps.h:142
L1GlobalTriggerObjectMaps::CombinationsInCondition::m_nCombinations
unsigned m_nCombinations
Definition: L1GlobalTriggerObjectMaps.h:143
L1GlobalTriggerObjectMaps::CombinationsInCondition::nCombinations
unsigned nCombinations() const
Definition: L1GlobalTriggerObjectMaps.h:137
L1GlobalTriggerObjectMaps::CombinationsInCondition::nObjectsPerCombination
unsigned short nObjectsPerCombination() const
Definition: L1GlobalTriggerObjectMaps.h:138
L1GlobalTriggerObjectMaps::CombinationsInCondition::m_nObjectsPerCombination
unsigned short m_nObjectsPerCombination
Definition: L1GlobalTriggerObjectMaps.h:144
cms::Exception
Definition: Exception.h:70