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 
)

Definition at line 247 of file L1GlobalTriggerObjectMaps.cc.

249  : m_conditionResults(conditionResults), m_nConditions(nConditions) {}

Member Function Documentation

◆ getConditionResult()

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

Definition at line 251 of file L1GlobalTriggerObjectMaps.cc.

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 }

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

Referenced by CompareToObjectMapRecord::analyze().

◆ nConditions()

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

Definition at line 123 of file L1GlobalTriggerObjectMaps.h.

123 { return m_nConditions; }

References m_nConditions.

Referenced by CompareToObjectMapRecord::analyze().

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().

L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::nConditions
unsigned nConditions() const
Definition: L1GlobalTriggerObjectMaps.h:123
L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::m_conditionResults
ConditionResult const * m_conditionResults
Definition: L1GlobalTriggerObjectMaps.h:127
L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::m_nConditions
unsigned m_nConditions
Definition: L1GlobalTriggerObjectMaps.h:128
cms::Exception
Definition: Exception.h:70