#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 |
Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Description: <one line="" class="" summary>="">
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(), L1TriggerKey::kCSCTF, L1TriggerKey::kDTTF, combine::key, relativeConstraints::keys, L1TriggerKey::kGCT, L1TriggerKey::kGMT, L1TriggerKey::kGT, L1TriggerKey::kRCT, L1TriggerKey::kRPC, L1TriggerKey::kTSP0, label, m_key, linker::replace(), L1TriggerKey::setSubsystemKey(), L1TriggerKey::setTSCKey(), and edm::ESProducer::setWhatProduced().
{ //the following line is needed to tell the framework what // data is being produced // Label should be empty, "SubsystemKeysOnly" or any subsystem label expected // by L1TriggerKeyOnlineProd. std::string label = iConfig.getParameter< std::string >( "label" ) ; setWhatProduced(this, label); //now do what ever other initialization is needed m_key.setTSCKey( iConfig.getParameter< std::string >( "tscKey" ) ) ; m_key.setSubsystemKey( L1TriggerKey::kCSCTF, iConfig.getParameter< std::string >( "csctfKey" ) ) ; m_key.setSubsystemKey( L1TriggerKey::kDTTF, iConfig.getParameter< std::string >( "dttfKey" ) ) ; m_key.setSubsystemKey( L1TriggerKey::kRPC, iConfig.getParameter< std::string >( "rpcKey" ) ) ; m_key.setSubsystemKey( L1TriggerKey::kGMT, iConfig.getParameter< std::string >( "gmtKey" ) ) ; m_key.setSubsystemKey( L1TriggerKey::kRCT, iConfig.getParameter< std::string >( "rctKey" ) ) ; m_key.setSubsystemKey( L1TriggerKey::kGCT, iConfig.getParameter< std::string >( "gctKey" ) ) ; m_key.setSubsystemKey( L1TriggerKey::kGT, iConfig.getParameter< std::string >( "gtKey" ) ) ; m_key.setSubsystemKey( L1TriggerKey::kTSP0, iConfig.getParameter< std::string >( "tsp0Key" ) ) ; if( label != "SubsystemKeysOnly" ) { typedef std::vector< edm::ParameterSet > ObjectKeys; ObjectKeys keys = iConfig.getParameter< ObjectKeys >( "objectKeys" ) ; for( ObjectKeys::const_iterator it = keys.begin (); it != keys.end() ; ++it ) { // Replace ?s with spaces. std::string key = it->getParameter< std::string >( "key" ) ; replace( key.begin(), key.end(), '?', ' ' ) ; m_key.add( it->getParameter< std::string >( "record" ), it->getParameter< std::string >( "type" ), key ) ; } } }
L1TriggerKeyDummyProd::~L1TriggerKeyDummyProd | ( | ) |
Definition at line 91 of file L1TriggerKeyDummyProd.cc.
{ // do anything here that needs to be done at desctruction time // (e.g. close files, deallocate resources etc.) }
L1TriggerKeyDummyProd::ReturnType L1TriggerKeyDummyProd::produce | ( | const L1TriggerKeyRcd & | iRecord | ) |
Definition at line 106 of file L1TriggerKeyDummyProd.cc.
References m_key.
{ using namespace edm::es; boost::shared_ptr<L1TriggerKey> pL1TriggerKey ; pL1TriggerKey = boost::shared_ptr< L1TriggerKey >( new L1TriggerKey( m_key ) ) ; return pL1TriggerKey ; }
L1TriggerKey L1TriggerKeyDummyProd::m_key [private] |
Definition at line 47 of file L1TriggerKeyDummyProd.h.
Referenced by L1TriggerKeyDummyProd(), and produce().