CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Member Function Documentation

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(), and pat::PATTriggerProducer::produce().

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 }
unsigned L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::nConditions ( ) const
inline

Member Data Documentation

ConditionResult const* L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::m_conditionResults
private

Definition at line 127 of file L1GlobalTriggerObjectMaps.h.

unsigned L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::m_nConditions
private

Definition at line 128 of file L1GlobalTriggerObjectMaps.h.

Referenced by nConditions().