CMS 3D CMS Logo

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

#include <L1GlobalTriggerObjectMaps.h>

Public Member Functions

 ConditionsInAlgorithm (ConditionResult const *conditionResults, unsigned nConditions)
 
bool getConditionResult (unsigned condition) const
 
unsigned nConditions () const
 

Private Attributes

ConditionResult const * m_conditionResults
 
unsigned m_nConditions
 

Detailed Description

Definition at line 120 of file L1GlobalTriggerObjectMaps.h.

Constructor & Destructor Documentation

◆ ConditionsInAlgorithm()

L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::ConditionsInAlgorithm ( ConditionResult const *  conditionResults,
unsigned  nConditions 
)

Member Function Documentation

◆ getConditionResult()

bool L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::getConditionResult ( unsigned  condition) const

Definition at line 251 of file L1GlobalTriggerObjectMaps.cc.

References cms::Exception::addContext(), and L1GlobalTriggerObjectMaps::m_conditionResults.

Referenced by CompareToObjectMapRecord::analyze().

251  {
252  if (condition >= m_nConditions) {
253  cms::Exception ex("L1GlobalTrigger");
254  ex << "argument out of range";
255  ex.addContext("Calling L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::getConditionResult");
256  throw ex;
257  }
258  return (m_conditionResults + condition)->conditionResult();
259 }

◆ nConditions()

unsigned L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::nConditions ( ) const
inline

Member Data Documentation

◆ m_conditionResults

ConditionResult const* L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::m_conditionResults
private

Definition at line 127 of file L1GlobalTriggerObjectMaps.h.

◆ m_nConditions

unsigned L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::m_nConditions
private

Definition at line 128 of file L1GlobalTriggerObjectMaps.h.

Referenced by nConditions().