#include <CondTools/L1Trigger/interface/L1TriggerKeyDummyProd.h>
Public Types | |
typedef boost::shared_ptr < L1TriggerKey > | ReturnType |
Public Member Functions | |
L1TriggerKeyDummyProd (const edm::ParameterSet &) | |
ReturnType | produce (const L1TriggerKeyRcd &) |
~L1TriggerKeyDummyProd () | |
Private Attributes | |
L1TriggerKey | m_key |
Implementation: <Notes on="" implementation>="">
Usage: <usage>
Definition at line 37 of file L1TriggerKeyDummyProd.h.
typedef boost::shared_ptr<L1TriggerKey> L1TriggerKeyDummyProd::ReturnType |
Definition at line 42 of file L1TriggerKeyDummyProd.h.
L1TriggerKeyDummyProd::L1TriggerKeyDummyProd | ( | const edm::ParameterSet & | iConfig | ) |
Definition at line 41 of file L1TriggerKeyDummyProd.cc.
References L1TriggerKey::add(), edm::ParameterSet::getParameter(), it, bookConverter::keys, m_key, L1TriggerKey::setTSCKey(), and edm::ESProducer::setWhatProduced().
00042 { 00043 //the following line is needed to tell the framework what 00044 // data is being produced 00045 setWhatProduced(this); 00046 00047 //now do what ever other initialization is needed 00048 m_key.setTSCKey( iConfig.getParameter< std::string >( "tscKey" ) ) ; 00049 00050 typedef std::vector< edm::ParameterSet > SubsystemKeys; 00051 SubsystemKeys keys = 00052 iConfig.getParameter< SubsystemKeys >( "subsystemKeys" ) ; 00053 00054 for( SubsystemKeys::const_iterator it = keys.begin (); 00055 it != keys.end() ; 00056 ++it ) 00057 { 00058 m_key.add( it->getParameter< std::string >( "record" ), 00059 it->getParameter< std::string >( "type" ), 00060 it->getParameter< std::string >( "key" ) ) ; 00061 } 00062 }
L1TriggerKeyDummyProd::~L1TriggerKeyDummyProd | ( | ) |
Definition at line 65 of file L1TriggerKeyDummyProd.cc.
00066 { 00067 00068 // do anything here that needs to be done at desctruction time 00069 // (e.g. close files, deallocate resources etc.) 00070 00071 }
L1TriggerKeyDummyProd::ReturnType L1TriggerKeyDummyProd::produce | ( | const L1TriggerKeyRcd & | iRecord | ) |
Definition at line 80 of file L1TriggerKeyDummyProd.cc.
References m_key.
00081 { 00082 using namespace edm::es; 00083 boost::shared_ptr<L1TriggerKey> pL1TriggerKey ; 00084 00085 pL1TriggerKey = boost::shared_ptr< L1TriggerKey >( 00086 new L1TriggerKey( m_key ) ) ; 00087 00088 return pL1TriggerKey ; 00089 }
L1TriggerKey L1TriggerKeyDummyProd::m_key [private] |
Definition at line 47 of file L1TriggerKeyDummyProd.h.
Referenced by L1TriggerKeyDummyProd(), and produce().