CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 boost::shared_ptr
< L1TMuonEndCapParams
ReturnType
 
- Public Types inherited from edm::eventsetup::DataProxyProvider
typedef std::vector< std::pair
< DataKey,
edm::propagate_const
< std::shared_ptr< DataProxy > > > > 
KeyedProxies
 
typedef std::vector
< EventSetupRecordKey
Keys
 
typedef std::map
< EventSetupRecordKey,
KeyedProxies
RecordProxies
 

Public Member Functions

 L1TMuonEndCapParamsESProducer (const edm::ParameterSet &)
 
ReturnType produce (const L1TMuonEndCapParamsRcd &)
 
 ~L1TMuonEndCapParamsESProducer ()
 
- Public Member Functions inherited from edm::ESProducer
 ESProducer ()
 
virtual ~ESProducer ()
 
- Public Member Functions inherited from edm::ESProxyFactoryProducer
 ESProxyFactoryProducer ()
 
virtual void newInterval (const eventsetup::EventSetupRecordKey &iRecordType, const ValidityInterval &iInterval)
 overrides DataProxyProvider method More...
 
virtual ~ESProxyFactoryProducer ()
 
- 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 ()
 

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::auto_ptr< TFactory > iFactory, const std::string &iLabel=std::string())
 
virtual void registerFactoryWithKey (const eventsetup::EventSetupRecordKey &iRecord, std::auto_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 24 of file L1TMuonEndCapParamsESProducer.cc.

Member Typedef Documentation

Definition at line 29 of file L1TMuonEndCapParamsESProducer.cc.

Constructor & Destructor Documentation

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

Definition at line 36 of file L1TMuonEndCapParamsESProducer.cc.

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

36  :
38 {
39  //the following line is needed to tell the framework what
40  // data is being produced
41  setWhatProduced(this);
42 
43  data_.SetPtAssignVersion(iConfig.getParameter<int>("PtAssignVersion"));
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 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_, and l1t::EndCapParamsHelper::getWriteInstance().

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

Member Data Documentation

l1t::EndCapParamsHelper L1TMuonEndCapParamsESProducer::data_
private

Definition at line 33 of file L1TMuonEndCapParamsESProducer.cc.

Referenced by L1TMuonEndCapParamsESProducer(), and produce().