CMS 3D CMS Logo

Public Member Functions | Private Attributes

L1GlobalTriggerObjectMaps::ConditionsInAlgorithm Class Reference

#include <L1GlobalTriggerObjectMaps.h>

List of all members.

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 
)

Definition at line 290 of file L1GlobalTriggerObjectMaps.cc.

                                            :
  m_conditionResults(conditionResults),
  m_nConditions(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().

                                             {
  if (condition >= m_nConditions) {
    cms::Exception ex("L1GlobalTrigger");
    ex << "argument out of range";
    ex.addContext("Calling L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::getConditionResult");
    throw ex;
  }
  return (m_conditionResults + condition)->conditionResult();
}
unsigned L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::nConditions ( ) const [inline]

Definition at line 136 of file L1GlobalTriggerObjectMaps.h.

References m_nConditions.

Referenced by CompareToObjectMapRecord::analyze().

{ return m_nConditions; }

Member Data Documentation

Definition at line 140 of file L1GlobalTriggerObjectMaps.h.

Definition at line 141 of file L1GlobalTriggerObjectMaps.h.

Referenced by nConditions().