test
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 130 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 295 of file L1GlobalTriggerObjectMaps.cc.

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

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

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

Member Data Documentation

ConditionResult const* L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::m_conditionResults
private

Definition at line 138 of file L1GlobalTriggerObjectMaps.h.

unsigned L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::m_nConditions
private

Definition at line 139 of file L1GlobalTriggerObjectMaps.h.

Referenced by nConditions().