CMS 3D CMS Logo

L1TTwinMuxParamsESProducer.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Class: L1TTwinMuxParamsESProducer
4 //
5 // Original Author: Giannis Flouris
6 // Created:
7 //
8 //modifications: g karathanasis
9 
10 // system include files
11 #include <memory>
12 
13 // user include files
16 //#include "FWCore/Framework/interface/ESHandle.h"
17 //#include "FWCore/Framework/interface/ESProducts.h"
18 
21 
22 // class declaration
23 //
24 typedef std::map<short, short, std::less<short> > LUT;
25 
27 public:
29  ~L1TTwinMuxParamsESProducer() override;
30 
31  using ReturnType = std::unique_ptr<L1TTwinMuxParams>;
32 
34 
35 private:
37 };
38 
39 //
40 // constants, enums and typedefs
41 //
42 
43 //
44 // static data member definitions
45 //
46 
47 //
48 // constructors and destructor
49 //
51  //the following line is needed to tell the framework what
52  // data is being produced
53  setWhatProduced(this);
54  // Firmware version
55  unsigned fwVersion = iConfig.getParameter<unsigned>("fwVersion");
56  unsigned useRpcBxForDtBelowQuality = iConfig.getParameter<unsigned>("useRpcBxForDtBelowQuality");
57  bool useOnlyRPC = iConfig.getParameter<bool>("useOnlyRPC");
58  bool useOnlyDT = iConfig.getParameter<bool>("useOnlyDT");
59  bool useLowQDT = iConfig.getParameter<bool>("useLowQDT");
60  bool CorrectDTBxwRPC = iConfig.getParameter<bool>("CorrectDTBxwRPC");
61  bool Verbose = iConfig.getParameter<bool>("verbose");
62  unsigned dphiWindowBxShift = iConfig.getParameter<unsigned>("dphiWindowBxShift");
63 
72 }
73 
75 
76 //
77 // member functions
78 //
79 
80 // ------------ method called to produce the data ------------
82  return std::make_unique<L1TTwinMuxParams>(m_params);
83 }
84 
85 //define this as a plug-in
ReturnType produce(const L1TTwinMuxParamsRcd &)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
T getParameter(std::string const &) const
Definition: ParameterSet.h:307
std::unique_ptr< L1TTwinMuxParams > ReturnType
void set_Verbose(int par1)
void set_UseOnlyRPC(int par1)
void set_UseOnlyDT(int par1)
std::map< short, short, std::less< short > > LUT
void set_UseLowQDT(int par1)
void set_DphiWindowBxShift(int par1)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:61
void set_CorrectDTBxwRPC(int par1)
void setFwVersion(unsigned fwVersion)
L1TTwinMuxParamsESProducer(const edm::ParameterSet &)
void set_USERPCBXFORDTBELOWQUALITY(int par1)