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 |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 40 of file RPCTriggerBxOrConfig.cc.
typedef std::auto_ptr<L1RPCBxOrConfig> RPCTriggerBxOrConfig::ReturnType |
Definition at line 45 of file RPCTriggerBxOrConfig.cc.
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.
{ }
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 ; }
int RPCTriggerBxOrConfig::m_firstBX [private] |
Definition at line 49 of file RPCTriggerBxOrConfig.cc.
Referenced by produce(), and RPCTriggerBxOrConfig().
int RPCTriggerBxOrConfig::m_lastBX [private] |
Definition at line 50 of file RPCTriggerBxOrConfig.cc.
Referenced by produce(), and RPCTriggerBxOrConfig().