CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
L1TMuonEndCapParamsESProducer Class Reference
Inheritance diagram for L1TMuonEndCapParamsESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

Public Types

typedef std::shared_ptr< L1TMuonEndCapParamsReturnType
 
- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair< DataKey, edm::propagate_const< std::shared_ptr< DataProxy > > > > KeyedProxies
 
typedef std::vector< EventSetupRecordKeyKeys
 
typedef std::map< EventSetupRecordKey, KeyedProxiesRecordProxies
 

Public Member Functions

 L1TMuonEndCapParamsESProducer (const edm::ParameterSet &)
 
ReturnType produce (const L1TMuonEndcapParamsRcd &)
 
 ~L1TMuonEndCapParamsESProducer ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()(false)
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer () noexcept(false)
 
- Public Member Functions inherited from edm::eventsetup::DataProxyProvider
 DataProxyProvider ()
 
const ComponentDescriptiondescription () const
 
bool isUsingRecord (const EventSetupRecordKey &) const
 
const KeyedProxieskeyedProxies (const EventSetupRecordKey &iRecordKey) const
 
void resetProxies (const EventSetupRecordKey &iRecordType)
 
void resetProxiesIfTransient (const EventSetupRecordKey &iRecordType)
 
void setAppendToDataLabel (const edm::ParameterSet &)
 
void setDescription (const ComponentDescription &iDescription)
 
std::set< EventSetupRecordKeyusingRecords () const
 
virtual ~DataProxyProvider () noexcept(false)
 

Private Attributes

l1t::EndCapParamsHelper data_
 

Additional Inherited Members

- Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::ESProducer
template<typename T >
void setWhatProduced (T *iThis, const es::Label &iLabel=es::Label())
 
template<typename T >
void setWhatProduced (T *iThis, const char *iLabel)
 
template<typename T >
void setWhatProduced (T *iThis, const std::string &iLabel)
 
template<typename T , typename TDecorator >
void setWhatProduced (T *iThis, const TDecorator &iDec, const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const es::Label &iLabel=es::Label())
 
template<typename T , typename TReturn , typename TRecord , typename TArg >
void setWhatProduced (T *iThis, TReturn(T::*iMethod)(const TRecord &), const TArg &iDec, const es::Label &iLabel=es::Label())
 
- Protected Member Functions inherited from edm::ESProxyFactoryProducer
template<class TFactory >
void registerFactory (std::unique_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::unique_ptr< eventsetup::ProxyFactoryBase > iFactory, const std::string &iLabel=std::string())
 
virtual void registerProxies (const eventsetup::EventSetupRecordKey &iRecord, KeyedProxies &aProxyList)
 override DataProxyProvider method More...
 
- Protected Member Functions inherited from edm::eventsetup::DataProxyProvider
void eraseAll (const EventSetupRecordKey &iRecordKey)
 deletes all the Proxies in aStream More...
 
void invalidateProxies (const EventSetupRecordKey &iRecordKey)
 
template<class T >
void usingRecord ()
 
void usingRecordWithKey (const EventSetupRecordKey &)
 

Detailed Description

Definition at line 23 of file L1TMuonEndCapParamsESProducer.cc.

Member Typedef Documentation

Definition at line 28 of file L1TMuonEndCapParamsESProducer.cc.

Constructor & Destructor Documentation

L1TMuonEndCapParamsESProducer::L1TMuonEndCapParamsESProducer ( const edm::ParameterSet iConfig)

Definition at line 35 of file L1TMuonEndCapParamsESProducer.cc.

References data_, edm::ParameterSet::getParameter(), l1t::EndCapParamsHelper::SetFirmwareVersion(), l1t::EndCapParamsHelper::SetPtAssignVersion(), l1t::EndCapParamsHelper::SetSt1PhiMatchWindow(), l1t::EndCapParamsHelper::SetSt2PhiMatchWindow(), l1t::EndCapParamsHelper::SetSt3PhiMatchWindow(), l1t::EndCapParamsHelper::SetSt4PhiMatchWindow(), and edm::ESProducer::setWhatProduced().

35  :
37 {
38  //the following line is needed to tell the framework what
39  // data is being produced
40  setWhatProduced(this);
41 
42  data_.SetPtAssignVersion(iConfig.getParameter<int>("PtAssignVersion"));
43  data_.SetFirmwareVersion(iConfig.getParameter<int>("firmwareVersion"));
44  data_.SetSt1PhiMatchWindow(iConfig.getParameter<int>("St1MatchWindow"));
45  data_.SetSt2PhiMatchWindow(iConfig.getParameter<int>("St2MatchWindow"));
46  data_.SetSt3PhiMatchWindow(iConfig.getParameter<int>("St3MatchWindow"));
47  data_.SetSt4PhiMatchWindow(iConfig.getParameter<int>("St4MatchWindow"));
48 
49 }
T getParameter(std::string const &) const
void SetFirmwareVersion(unsigned version)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
void SetPtAssignVersion(unsigned version)
void SetSt1PhiMatchWindow(int window)
void SetSt4PhiMatchWindow(int window)
void SetSt2PhiMatchWindow(int window)
void SetSt3PhiMatchWindow(int window)
L1TMuonEndCapParamsESProducer::~L1TMuonEndCapParamsESProducer ( )

Definition at line 52 of file L1TMuonEndCapParamsESProducer.cc.

53 {
54 }

Member Function Documentation

L1TMuonEndCapParamsESProducer::ReturnType L1TMuonEndCapParamsESProducer::produce ( const L1TMuonEndcapParamsRcd iRecord)

Definition at line 64 of file L1TMuonEndCapParamsESProducer.cc.

References data_, DEFINE_FWK_EVENTSETUP_MODULE, and l1t::EndCapParamsHelper::getWriteInstance().

65 {
66  using namespace edm::es;
67  std::shared_ptr<L1TMuonEndCapParams> pEMTFParams(data_.getWriteInstance());
68  return pEMTFParams;
69 
70 }
L1TMuonEndCapParams * getWriteInstance()

Member Data Documentation

l1t::EndCapParamsHelper L1TMuonEndCapParamsESProducer::data_
private

Definition at line 32 of file L1TMuonEndCapParamsESProducer.cc.

Referenced by L1TMuonEndCapParamsESProducer(), and produce().