CMS 3D CMS Logo

L1TMuonEndCapParamsESProducer.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <memory>
3 #include <iostream>
4 
9 
13 
15 #include "TXMLEngine.h"
16 
18 
19 using namespace std;
20 
21 // class declaration
22 
24 public:
27 
28  typedef std::shared_ptr<L1TMuonEndCapParams> ReturnType;
29 
30  ReturnType produce(const L1TMuonEndcapParamsRcd&);
31 private:
33 };
34 
36  data_(new L1TMuonEndCapParams())
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 }
50 
51 
53 {
54 }
55 
56 
57 
58 //
59 // member functions
60 //
61 
62 // ------------ method called to produce the data ------------
65 {
66  using namespace edm::es;
67  std::shared_ptr<L1TMuonEndCapParams> pEMTFParams(data_.getWriteInstance());
68  return pEMTFParams;
69 
70 }
71 
72 //define this as a plug-in
T getParameter(std::string const &) const
L1TMuonEndCapParamsESProducer(const edm::ParameterSet &)
void SetFirmwareVersion(unsigned version)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
ReturnType produce(const L1TMuonEndcapParamsRcd &)
void SetPtAssignVersion(unsigned version)
void SetSt1PhiMatchWindow(int window)
void SetSt4PhiMatchWindow(int window)
void SetSt2PhiMatchWindow(int window)
L1TMuonEndCapParams * getWriteInstance()
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
void SetSt3PhiMatchWindow(int window)
std::shared_ptr< L1TMuonEndCapParams > ReturnType