CMS 3D CMS Logo

L1TCaloConfigESProducer.cc
Go to the documentation of this file.
1 
10 
11 // system include files
12 #include <memory>
13 #include <iostream>
14 #include <fstream>
15 
16 // user include files
22 
24 
28 
29 using namespace std;
30 
31 //
32 // class declaration
33 //
34 
35 using namespace l1t;
36 
38 public:
40  ~L1TCaloConfigESProducer() override;
41 
42  using ReturnType = std::unique_ptr<CaloConfig>;
43 
44  ReturnType produce(const L1TCaloConfigRcd&);
45 
46 private:
49 };
50 
51 //
52 // constants, enums and typedefs
53 //
54 
55 //
56 // static data member definitions
57 //
58 
59 //
60 // constructors and destructor
61 //
63 {
64  //the following line is needed to tell the framework what
65  // data is being produced
66  setWhatProduced(this);
67  //setWhatProduced(this, conf.getParameter<std::string>("label"));
68 
69  std::string l1epoch = conf.getParameter<string>("l1Epoch");
70  unsigned fwv = conf.getParameter<unsigned>("fwVersionLayer2");
71  CaloConfigHelper h(m_params, fwv, l1epoch);
72 }
73 
74 
76 {
77 
78  // do anything here that needs to be done at desctruction time
79  // (e.g. close files, deallocate resources etc.)
80 
81 }
82 
83 
84 //
85 // member functions
86 //
87 
88 // ------------ method called to produce the data ------------
91 {
92  return std::make_unique<CaloConfig>(m_params);
93 }
94 
95 //define this as a plug-in
T getParameter(std::string const &) const
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
delete x;
Definition: CaloConfig.h:22
std::unique_ptr< CaloConfig > ReturnType
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
ReturnType produce(const L1TCaloConfigRcd &)
L1TCaloConfigESProducer(const edm::ParameterSet &)