CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

RPCTriggerBxOrConfig Class Reference

Inheritance diagram for RPCTriggerBxOrConfig:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Types

typedef std::auto_ptr
< L1RPCBxOrConfig
ReturnType

Public Member Functions

ReturnType produce (const L1RPCBxOrConfigRcd &)
 RPCTriggerBxOrConfig (const edm::ParameterSet &)
 ~RPCTriggerBxOrConfig ()

Private Attributes

int m_firstBX
int m_lastBX

Detailed Description

Description: <one line="" class="" summary>="">

Implementation: <Notes on="" implementation>="">

Definition at line 40 of file RPCTriggerBxOrConfig.cc.


Member Typedef Documentation

Definition at line 45 of file RPCTriggerBxOrConfig.cc.


Constructor & Destructor Documentation

RPCTriggerBxOrConfig::RPCTriggerBxOrConfig ( const edm::ParameterSet iConfig)

Definition at line 65 of file RPCTriggerBxOrConfig.cc.

References edm::ParameterSet::getParameter(), m_firstBX, m_lastBX, and edm::ESProducer::setWhatProduced().

{
   //the following line is needed to tell the framework what
   // data is being produced
   setWhatProduced(this);

   m_firstBX = iConfig.getParameter<int>("firstBX");
   m_lastBX = iConfig.getParameter<int>("lastBX"); 


}
RPCTriggerBxOrConfig::~RPCTriggerBxOrConfig ( )

Definition at line 78 of file RPCTriggerBxOrConfig.cc.

{
 

}

Member Function Documentation

RPCTriggerBxOrConfig::ReturnType RPCTriggerBxOrConfig::produce ( const L1RPCBxOrConfigRcd iRecord)

Definition at line 91 of file RPCTriggerBxOrConfig.cc.

References Exception, m_firstBX, and m_lastBX.

{
   using namespace edm::es;
   std::auto_ptr<L1RPCBxOrConfig> pRPCTriggerBxOrConfig = std::auto_ptr<L1RPCBxOrConfig>( new L1RPCBxOrConfig() );

   if (m_firstBX > m_lastBX )
        throw cms::Exception("BadConfig") << " firstBX < m_lastBX  " << "\n";

   pRPCTriggerBxOrConfig->setFirstBX(m_firstBX);
   pRPCTriggerBxOrConfig->setLastBX(m_lastBX);

   return pRPCTriggerBxOrConfig ;
}

Member Data Documentation

Definition at line 49 of file RPCTriggerBxOrConfig.cc.

Referenced by produce(), and RPCTriggerBxOrConfig().

Definition at line 50 of file RPCTriggerBxOrConfig.cc.

Referenced by produce(), and RPCTriggerBxOrConfig().