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
L1TTwinMuxParams::set_UseLowQDT
void set_UseLowQDT(int par1)
Definition: L1TTwinMuxParams.h:65
amcDumpToRaw_cfi.fwVersion
fwVersion
Definition: amcDumpToRaw_cfi.py:11
fakeTwinMuxParams_cff.CorrectDTBxwRPC
CorrectDTBxwRPC
Definition: fakeTwinMuxParams_cff.py:24
L1TTwinMuxParams.h
L1TTwinMuxParams::set_UseOnlyRPC
void set_UseOnlyRPC(int par1)
Definition: L1TTwinMuxParams.h:59
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
ESProducer.h
L1TTwinMuxParamsESProducer
Definition: L1TTwinMuxParamsESProducer.cc:26
fakeTwinMuxParams_cff.useRpcBxForDtBelowQuality
useRpcBxForDtBelowQuality
Definition: fakeTwinMuxParams_cff.py:19
L1TTwinMuxParamsRcd.h
L1TTwinMuxParamsESProducer::ReturnType
std::unique_ptr< L1TTwinMuxParams > ReturnType
Definition: L1TTwinMuxParamsESProducer.cc:31
EcalTangentSkim_cfg.Verbose
Verbose
Definition: EcalTangentSkim_cfg.py:24
L1TTwinMuxParams::set_CorrectDTBxwRPC
void set_CorrectDTBxwRPC(int par1)
Definition: L1TTwinMuxParams.h:68
L1TTwinMuxParamsESProducer::produce
ReturnType produce(const L1TTwinMuxParamsRcd &)
Definition: L1TTwinMuxParamsESProducer.cc:81
edm::ParameterSet
Definition: ParameterSet.h:47
LUT
std::map< short, short, std::less< short > > LUT
Definition: L1TTwinMuxParamsESProducer.cc:24
fakeTwinMuxParams_cff.dphiWindowBxShift
dphiWindowBxShift
Definition: fakeTwinMuxParams_cff.py:20
fakeTwinMuxParams_cff.useOnlyRPC
useOnlyRPC
Definition: fakeTwinMuxParams_cff.py:21
L1TTwinMuxParams::set_USERPCBXFORDTBELOWQUALITY
void set_USERPCBXFORDTBELOWQUALITY(int par1)
Definition: L1TTwinMuxParams.h:56
L1TTwinMuxParamsRcd
Definition: L1TTwinMuxParamsRcd.h:14
L1TTwinMuxParams::set_DphiWindowBxShift
void set_DphiWindowBxShift(int par1)
Definition: L1TTwinMuxParams.h:74
L1TTwinMuxParams::setFwVersion
void setFwVersion(unsigned fwVersion)
Definition: L1TTwinMuxParams.h:54
fakeTwinMuxParams_cff.useOnlyDT
useOnlyDT
Definition: fakeTwinMuxParams_cff.py:22
ModuleFactory.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
L1TTwinMuxParamsESProducer::~L1TTwinMuxParamsESProducer
~L1TTwinMuxParamsESProducer() override
Definition: L1TTwinMuxParamsESProducer.cc:74
L1TTwinMuxParamsESProducer::m_params
L1TTwinMuxParams m_params
Definition: L1TTwinMuxParamsESProducer.cc:36
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::ESProducer
Definition: ESProducer.h:104
L1TTwinMuxParams::set_UseOnlyDT
void set_UseOnlyDT(int par1)
Definition: L1TTwinMuxParams.h:62
fakeTwinMuxParams_cff.useLowQDT
useLowQDT
Definition: fakeTwinMuxParams_cff.py:23
L1TTwinMuxParamsESProducer::L1TTwinMuxParamsESProducer
L1TTwinMuxParamsESProducer(const edm::ParameterSet &)
Definition: L1TTwinMuxParamsESProducer.cc:50
L1TTwinMuxParams::set_Verbose
void set_Verbose(int par1)
Definition: L1TTwinMuxParams.h:71
L1TTwinMuxParams
Definition: L1TTwinMuxParams.h:19