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 
11 // system include files
12 #include <memory>
13 
14 // user include files
17 //#include "FWCore/Framework/interface/ESHandle.h"
18 //#include "FWCore/Framework/interface/ESProducts.h"
19 
22 
23 
24 // class declaration
25 //
26 typedef std::map<short, short, std::less<short> > LUT;
27 
29  public:
31  ~L1TTwinMuxParamsESProducer() override;
32 
33  using ReturnType = std::unique_ptr<L1TTwinMuxParams>;
34 
36  private:
38 };
39 
40 //
41 // constants, enums and typedefs
42 //
43 
44 //
45 // static data member definitions
46 //
47 
48 //
49 // constructors and destructor
50 //
52 {
53  //the following line is needed to tell the framework what
54  // data is being produced
55  setWhatProduced(this);
56  // Firmware version
57  unsigned fwVersion = iConfig.getParameter<unsigned>("fwVersion");
58  unsigned useRpcBxForDtBelowQuality = iConfig.getParameter<unsigned>("useRpcBxForDtBelowQuality");
59  bool useOnlyRPC = iConfig.getParameter<bool>("useOnlyRPC");
60  bool useOnlyDT = iConfig.getParameter<bool>("useOnlyDT");
61  bool useLowQDT = iConfig.getParameter<bool>("useLowQDT");
62  bool CorrectDTBxwRPC = iConfig.getParameter<bool>("CorrectDTBxwRPC");
63  bool Verbose = iConfig.getParameter<bool>("verbose");
64  unsigned dphiWindowBxShift = iConfig.getParameter<unsigned>("dphiWindowBxShift");
65 
66  m_params.setFwVersion(fwVersion);
67  m_params.set_USERPCBXFORDTBELOWQUALITY(useRpcBxForDtBelowQuality);
68  m_params.set_UseOnlyRPC(useOnlyRPC);
69  m_params.set_UseOnlyDT(useOnlyDT);
70  m_params.set_UseLowQDT(useLowQDT);
71  m_params.set_CorrectDTBxwRPC(CorrectDTBxwRPC);
72  m_params.set_Verbose(Verbose);
73  m_params.set_DphiWindowBxShift(dphiWindowBxShift);
74 
75 
76 
77 }
78 
79 
81 {
82 
83 }
84 
85 
86 //
87 // member functions
88 //
89 
90 // ------------ method called to produce the data ------------
93 {
94  return std::make_unique<L1TTwinMuxParams>(m_params);
95 }
96 
97 //define this as a plug-in
ReturnType produce(const L1TTwinMuxParamsRcd &)
T getParameter(std::string const &) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
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:60
void set_CorrectDTBxwRPC(int par1)
void setFwVersion(unsigned fwVersion)
L1TTwinMuxParamsESProducer(const edm::ParameterSet &)
void set_USERPCBXFORDTBELOWQUALITY(int par1)