Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
setWhatProduced
(
this
, &
L1MuTriggerPtScaleProducer::produceL1MuTriggerPtScale
);
20
}
21
22
L1MuTriggerPtScaleProducer::~L1MuTriggerPtScaleProducer
() {}
23
24
//
25
// member functions
26
//
27
28
// ------------ method called to produce the data ------------
29
std::unique_ptr<L1MuTriggerPtScale>
L1MuTriggerPtScaleProducer::produceL1MuTriggerPtScale
(
30
const
L1MuTriggerPtScaleRcd
& iRecord) {
31
return
std::make_unique<L1MuTriggerPtScale>(
m_scales
);
32
}
L1MuTriggerPtScaleProducer::~L1MuTriggerPtScaleProducer
~L1MuTriggerPtScaleProducer() override
Definition:
L1MuTriggerPtScaleProducer.cc:22
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
L1MuTriggerPtScaleProducer::produceL1MuTriggerPtScale
std::unique_ptr< L1MuTriggerPtScale > produceL1MuTriggerPtScale(const L1MuTriggerPtScaleRcd &)
Definition:
L1MuTriggerPtScaleProducer.cc:29
L1MuTriggerPtScaleProducer::m_scales
L1MuTriggerPtScale m_scales
Definition:
L1MuTriggerPtScaleProducer.h:42
L1MuTriggerPtScaleProducer::L1MuTriggerPtScaleProducer
L1MuTriggerPtScaleProducer(const edm::ParameterSet &)
Definition:
L1MuTriggerPtScaleProducer.cc:14
L1MuTriggerPtScaleRcd
Definition:
L1MuTriggerPtScaleRcd.h:12
L1MuTriggerPtScaleProducer.h
trackerHitRTTI::vector
Definition:
trackerHitRTTI.h:21
edm::ParameterSet
Definition:
ParameterSet.h:47
Generated for CMSSW Reference Manual by
1.8.5