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 142 of file L1GlobalTriggerObjectMaps.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 315 of file L1GlobalTriggerObjectMaps.cc.

References cms::Exception::addContext(), L1GlobalTriggerObjectMaps::getStartEndIndex(), m_nCombinations, m_nObjectsPerCombination, m_startOfObjectIndexes, and resolutioncreator_cfi::object.

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

316  {
317  if (combination >= m_nCombinations ||
318  object >= m_nObjectsPerCombination) {
319  cms::Exception ex("L1GlobalTrigger");
320  ex << "arguments out of range";
321  ex.addContext("Calling L1GlobalTriggerObjectMaps::CombinationsInCondition::getObjectIndex");
322  throw ex;
323  }
325 }
unsigned L1GlobalTriggerObjectMaps::CombinationsInCondition::nCombinations ( ) const
inline
unsigned short L1GlobalTriggerObjectMaps::CombinationsInCondition::nObjectsPerCombination ( ) const
inline

Member Data Documentation

unsigned L1GlobalTriggerObjectMaps::CombinationsInCondition::m_nCombinations
private

Definition at line 154 of file L1GlobalTriggerObjectMaps.h.

Referenced by getObjectIndex().

unsigned short L1GlobalTriggerObjectMaps::CombinationsInCondition::m_nObjectsPerCombination
private

Definition at line 155 of file L1GlobalTriggerObjectMaps.h.

Referenced by getObjectIndex().

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

Definition at line 153 of file L1GlobalTriggerObjectMaps.h.

Referenced by getObjectIndex().