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
L1TMuonBarrelKalmanParams::pnodes_
std::vector< Node > pnodes_
Definition: L1TMuonBarrelKalmanParams.h:41
L1TMuonBarrelKalmanParamsESProducer::ReturnType
std::unique_ptr< L1TMuonBarrelKalmanParams > ReturnType
Definition: L1TMuonBarrelKalmanParamsESProducer.cc:34
L1TMuonBarrelKalmanParamsESProducer::L1TMuonBarrelKalmanParamsESProducer
L1TMuonBarrelKalmanParamsESProducer(const edm::ParameterSet &)
Definition: L1TMuonBarrelKalmanParamsESProducer.cc:52
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
L1TMuonBarrelKalmanParamsESProducer::kalman_params
L1TMuonBarrelKalmanParams kalman_params
Definition: L1TMuonBarrelKalmanParamsESProducer.cc:38
ESProducer.h
L1TMuonBarrelKalmanParamsESProducer::produce
ReturnType produce(const L1TMuonBarrelKalmanParamsRcd &)
Definition: L1TMuonBarrelKalmanParamsESProducer.cc:70
L1TMuonBarrelKalmanParams
Definition: L1TMuonBarrelKalmanParams.h:21
L1TMuonBarrelKalmanParamsESProducer::~L1TMuonBarrelKalmanParamsESProducer
~L1TMuonBarrelKalmanParamsESProducer() override
Definition: L1TMuonBarrelKalmanParamsESProducer.cc:63
L1TMuonBarrelKalmanParams::CONFIG
Definition: L1TMuonBarrelKalmanParams.h:27
L1TMuonBarrelKalmanParamsESProducer
Definition: L1TMuonBarrelKalmanParamsESProducer.cc:29
L1TMuonBarrelKalmanParams.h
edm::ParameterSet
Definition: ParameterSet.h:47
L1TMuonBarrelKalmanParamsRcd
Definition: L1TMuonBarrelKalmanParamsRcd.h:13
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ModuleFactory.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
L1TMuonBarrelKalmanParamsRcd.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::ESProducer
Definition: ESProducer.h:104