L1TriggerConfig
L1ScalesProducers
src
L1MuGMTScalesProducer.cc
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
3
// \class L1MuGMTScalesProducer
4
//
5
// Description: A class to produce the L1 GMT emulator scales record in the event setup
6
//
7
//
8
// Author :
9
// I. Mikulec
10
//
11
//--------------------------------------------------
12
#include "
L1TriggerConfig/L1ScalesProducers/interface/L1MuGMTScalesProducer.h
"
13
14
L1MuGMTScalesProducer::L1MuGMTScalesProducer
(
const
edm::ParameterSet
& ps)
15
: m_scales(ps.getParameter<
int
>(
"nbitPackingReducedEta"
),
16
ps.getParameter<
int
>(
"nbinsReducedEta"
),
17
ps.getParameter<
std
::
vector
<double> >(
"scaleReducedEtaDT"
),
18
ps.getParameter<
std
::
vector
<double> >(
"scaleReducedEtaBrlRPC"
),
19
ps.getParameter<
std
::
vector
<double> >(
"scaleReducedEtaCSC"
),
20
ps.getParameter<
std
::
vector
<double> >(
"scaleReducedEtaFwdRPC"
),
21
22
ps.getParameter<
int
>(
"nbitPackingDeltaEta"
),
23
ps.getParameter<
bool
>(
"signedPackingDeltaEta"
),
24
ps.getParameter<
int
>(
"nbinsDeltaEta"
),
25
ps.getParameter<double>(
"minDeltaEta"
),
26
ps.getParameter<double>(
"maxDeltaEta"
),
27
ps.getParameter<
int
>(
"offsetDeltaEta"
),
28
29
ps.getParameter<
int
>(
"nbitPackingDeltaPhi"
),
30
ps.getParameter<
bool
>(
"signedPackingDeltaPhi"
),
31
ps.getParameter<
int
>(
"nbinsDeltaPhi"
),
32
ps.getParameter<double>(
"minDeltaPhi"
),
33
ps.getParameter<double>(
"maxDeltaPhi"
),
34
ps.getParameter<
int
>(
"offsetDeltaPhi"
),
35
36
ps.getParameter<
int
>(
"nbitPackingOvlEtaDT"
),
37
ps.getParameter<
int
>(
"nbinsOvlEtaDT"
),
38
ps.getParameter<double>(
"minOvlEtaDT"
),
39
ps.getParameter<double>(
"maxOvlEtaDT"
),
40
41
ps.getParameter<
int
>(
"nbitPackingOvlEtaCSC"
),
42
ps.getParameter<
int
>(
"nbinsOvlEtaCSC"
),
43
ps.getParameter<double>(
"minOvlEtaCSC"
),
44
ps.getParameter<double>(
"maxOvlEtaCSC"
),
45
46
ps.getParameter<
std
::
vector
<double> >(
"scaleOvlEtaRPC"
),
47
ps.getParameter<
int
>(
"nbitPackingOvlEtaBrlRPC"
),
48
ps.getParameter<
int
>(
"nbinsOvlEtaBrlRPC"
),
49
ps.getParameter<
int
>(
"nbitPackingOvlEtaFwdRPC"
),
50
ps.getParameter<
int
>(
"nbinsOvlEtaFwdRPC"
)) {
51
setWhatProduced
(
this
, &
L1MuGMTScalesProducer::produceL1MuGMTScales
);
52
}
53
54
L1MuGMTScalesProducer::~L1MuGMTScalesProducer
() {}
55
56
//
57
// member functions
58
//
59
60
// ------------ method called to produce the data ------------
61
std::unique_ptr<L1MuGMTScales>
L1MuGMTScalesProducer::produceL1MuGMTScales
(
const
L1MuGMTScalesRcd
& iRecord) {
62
return
std::make_unique<L1MuGMTScales>(
m_scales
);
63
}
electrons_cff.bool
bool
Definition:
electrons_cff.py:393
L1MuGMTScalesProducer::~L1MuGMTScalesProducer
~L1MuGMTScalesProducer() override
Definition:
L1MuGMTScalesProducer.cc:54
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
L1MuGMTScalesProducer::L1MuGMTScalesProducer
L1MuGMTScalesProducer(const edm::ParameterSet &)
Definition:
L1MuGMTScalesProducer.cc:14
L1MuGMTScalesProducer::m_scales
L1MuGMTScales m_scales
Definition:
L1MuGMTScalesProducer.h:42
edm::ParameterSet
Definition:
ParameterSet.h:47
createfilelist.int
int
Definition:
createfilelist.py:10
trackerHitRTTI::vector
Definition:
trackerHitRTTI.h:21
L1MuGMTScalesProducer::produceL1MuGMTScales
std::unique_ptr< L1MuGMTScales > produceL1MuGMTScales(const L1MuGMTScalesRcd &)
Definition:
L1MuGMTScalesProducer.cc:61
std
Definition:
JetResolutionObject.h:76
L1MuGMTScalesProducer.h
L1MuGMTScalesRcd
Definition:
L1MuGMTScalesRcd.h:12
Generated for CMSSW Reference Manual by
1.8.16