Main Page
Namespaces
Classes
Package Documentation
L1TriggerConfig
L1ScalesProducers
src
L1MuTriggerPtScaleProducer.cc
Go to the documentation of this file.
1
//-------------------------------------------------
2
//
3
// \class L1MuTriggerPtScaleProducer
4
//
5
// Description: A class to produce the L1 mu emulator scales record in the event setup
6
//
7
//
8
// Author :
9
// W. Sun (copied from L1MuTriggerScalesProducer)
10
//
11
//--------------------------------------------------
12
#include "
L1TriggerConfig/L1ScalesProducers/interface/L1MuTriggerPtScaleProducer.h
"
13
14
L1MuTriggerPtScaleProducer::L1MuTriggerPtScaleProducer
(
const
edm::ParameterSet
& ps)
15
: m_scales( ps.getParameter<
int
>(
"nbitPackingPt"
),
16
ps.getParameter<
bool
>(
"signedPackingPt"
),
17
ps.getParameter<
int
>(
"nbinsPt"
),
18
ps.getParameter<
std
::vector<double> >(
"scalePt"
) )
19
{
20
setWhatProduced
(
this
, &
L1MuTriggerPtScaleProducer::produceL1MuTriggerPtScale
);
21
}
22
23
L1MuTriggerPtScaleProducer::~L1MuTriggerPtScaleProducer
() {}
24
25
26
//
27
// member functions
28
//
29
30
// ------------ method called to produce the data ------------
31
std::unique_ptr<L1MuTriggerPtScale>
32
L1MuTriggerPtScaleProducer::produceL1MuTriggerPtScale
(
const
L1MuTriggerPtScaleRcd
& iRecord)
33
{
34
return
std::make_unique<L1MuTriggerPtScale>(
m_scales
);
35
}
36
L1MuTriggerPtScaleProducer::~L1MuTriggerPtScaleProducer
~L1MuTriggerPtScaleProducer() override
Definition:
L1MuTriggerPtScaleProducer.cc:23
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:124
L1MuTriggerPtScaleProducer::produceL1MuTriggerPtScale
std::unique_ptr< L1MuTriggerPtScale > produceL1MuTriggerPtScale(const L1MuTriggerPtScaleRcd &)
Definition:
L1MuTriggerPtScaleProducer.cc:32
std
Definition:
JetResolutionObject.h:80
L1MuTriggerPtScaleProducer::m_scales
L1MuTriggerPtScale m_scales
Definition:
L1MuTriggerPtScaleProducer.h:43
L1MuTriggerPtScaleProducer::L1MuTriggerPtScaleProducer
L1MuTriggerPtScaleProducer(const edm::ParameterSet &)
Definition:
L1MuTriggerPtScaleProducer.cc:14
createfilelist.int
int
Definition:
createfilelist.py:10
L1MuTriggerPtScaleRcd
Definition:
L1MuTriggerPtScaleRcd.h:12
L1MuTriggerPtScaleProducer.h
electrons_cff.bool
bool
Definition:
electrons_cff.py:371
edm::ParameterSet
Definition:
ParameterSet.h:36
Generated for CMSSW Reference Manual by
1.8.11