Public Types | |
typedef std::auto_ptr < L1RPCHsbConfig > | ReturnType |
Public Member Functions | |
ReturnType | produce (const L1RPCHsbConfigRcd &) |
RPCTriggerHsbConfig (const edm::ParameterSet &) | |
~RPCTriggerHsbConfig () | |
Private Attributes | |
std::vector< int > | m_hsb0 |
std::vector< int > | m_hsb1 |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 40 of file RPCTriggerHsbConfig.cc.
typedef std::auto_ptr<L1RPCHsbConfig> RPCTriggerHsbConfig::ReturnType |
Definition at line 45 of file RPCTriggerHsbConfig.cc.
RPCTriggerHsbConfig::RPCTriggerHsbConfig | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 65 of file RPCTriggerHsbConfig.cc.
References edm::ParameterSet::getParameter(), m_hsb0, m_hsb1, and edm::ESProducer::setWhatProduced().
{ //the following line is needed to tell the framework what // data is being produced setWhatProduced(this); m_hsb0 = iConfig.getParameter< std::vector<int > >("hsb0Mask"); m_hsb1 = iConfig.getParameter< std::vector<int > >("hsb1Mask"); if ( m_hsb0.size() !=8 || m_hsb1.size() != 8 ) throw cms::Exception("BadConfig") << " hsbMask needs to be 8 digits long \n"; // contents of the vector wont be checked here - there are also different sources of this cfg }
RPCTriggerHsbConfig::~RPCTriggerHsbConfig | ( | ) |
Definition at line 84 of file RPCTriggerHsbConfig.cc.
{ }
RPCTriggerHsbConfig::ReturnType RPCTriggerHsbConfig::produce | ( | const L1RPCHsbConfigRcd & | iRecord | ) |
Definition at line 97 of file RPCTriggerHsbConfig.cc.
References m_hsb0, and m_hsb1.
{ using namespace edm::es; std::auto_ptr<L1RPCHsbConfig> pRPCTriggerHsbConfig = std::auto_ptr<L1RPCHsbConfig>( new L1RPCHsbConfig() ); pRPCTriggerHsbConfig->setHsbMask(0, m_hsb0); pRPCTriggerHsbConfig->setHsbMask(1, m_hsb1); return pRPCTriggerHsbConfig ; }
std::vector<int> RPCTriggerHsbConfig::m_hsb0 [private] |
Definition at line 49 of file RPCTriggerHsbConfig.cc.
Referenced by produce(), and RPCTriggerHsbConfig().
std::vector<int> RPCTriggerHsbConfig::m_hsb1 [private] |
Definition at line 50 of file RPCTriggerHsbConfig.cc.
Referenced by produce(), and RPCTriggerHsbConfig().