test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1TMuonEndCapParamsESProducer.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <memory>
3 #include <iostream>
4 #include "boost/shared_ptr.hpp"
5 
10 
14 
16 #include "TXMLEngine.h"
17 
19 
20 using namespace std;
21 
22 // class declaration
23 
25 public:
28 
29  typedef boost::shared_ptr<L1TMuonEndCapParams> ReturnType;
30 
31  ReturnType produce(const L1TMuonEndCapParamsRcd&);
32 private:
34 };
35 
37  data_(new L1TMuonEndCapParams())
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 }
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  boost::shared_ptr<L1TMuonEndCapParams> pEMTFParams;
68 
69  pEMTFParams = boost::shared_ptr<L1TMuonEndCapParams>(data_.getWriteInstance());
70  return pEMTFParams;
71 
72 }
73 
74 //define this as a plug-in
T getParameter(std::string const &) const
L1TMuonEndCapParamsESProducer(const edm::ParameterSet &)
ReturnType produce(const L1TMuonEndCapParamsRcd &)
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)
L1TMuonEndCapParams * getWriteInstance()
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
void SetSt3PhiMatchWindow(int window)
boost::shared_ptr< L1TMuonEndCapParams > ReturnType