CMS 3D CMS Logo

L1TMuonBarrelKalmanParamsESProducer.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Class: L1TMuonBarrelKalmanParamsESProducer
4 //
5 // Original Author (of the base file): Giannis Flouris
6 // Kalman Mod & clean up: Panos Katsoulis
7 // Created:
8 //
9 //
10 
11 // system include files
12 #include <memory>
13 
14 // user include files
17 
20 
21 // for future, LUTs implementaion
22 //#include "L1Trigger/L1TMuon/interface/MicroGMTLUTFactories.h"
23 // for future, masks
24 //#include "L1Trigger/L1TCommon/interface/Mask.h"
25 
26 // class declaration
27 //
28 
30 public:
33 
34  using ReturnType = std::unique_ptr<L1TMuonBarrelKalmanParams>;
36 
37 private:
39 };
40 
41 //
42 // constants, enums and typedefs
43 //
44 
45 //
46 // static data member definitions
47 //
48 
49 //
50 // constructors and destructor
51 //
53  // the following line is needed to tell the framework what data is being produced
54  setWhatProduced(this);
55 
56  // basic configurables needed (now set static)
57  kalman_params.pnodes_[kalman_params.CONFIG].fwVersion_ = iConfig.getParameter<unsigned>("fwVersion");
58 
59  // the LUTs
60  kalman_params.pnodes_[kalman_params.CONFIG].kalmanLUTsPath_ = iConfig.getParameter<std::string>("LUTsPath");
61 }
62 
64 
65 //
66 // member functions
67 //
68 
69 // ------------ method called to produce the data ------------
71  const L1TMuonBarrelKalmanParamsRcd& iRecord) {
72  return std::make_unique<L1TMuonBarrelKalmanParams>(kalman_params);
73 }
74 
75 //define this as a plug-in
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
ReturnType produce(const L1TMuonBarrelKalmanParamsRcd &)
std::unique_ptr< L1TMuonBarrelKalmanParams > ReturnType
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60