CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 132 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 297 of file L1GlobalTriggerObjectMaps.cc.

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

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

297  {
298  if (condition >= m_nConditions) {
299  cms::Exception ex("L1GlobalTrigger");
300  ex << "argument out of range";
301  ex.addContext("Calling L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::getConditionResult");
302  throw ex;
303  }
304  return (m_conditionResults + condition)->conditionResult();
305 }
unsigned L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::nConditions ( ) const
inline

Member Data Documentation

ConditionResult const* L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::m_conditionResults
private

Definition at line 140 of file L1GlobalTriggerObjectMaps.h.

unsigned L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::m_nConditions
private

Definition at line 141 of file L1GlobalTriggerObjectMaps.h.

Referenced by nConditions().