CalibTracker
SiPixelESProducers
plugins
SiPixelGainCalibrationForHLTGPUESProducer.cc
Go to the documentation of this file.
1
#include "
CalibTracker/SiPixelESProducers/interface/SiPixelGainCalibrationForHLTGPU.h
"
2
#include "
CalibTracker/Records/interface/SiPixelGainCalibrationForHLTGPURcd.h
"
3
#include "
CondFormats/SiPixelObjects/interface/SiPixelGainCalibrationForHLT.h
"
4
#include "
CondFormats/DataRecord/interface/SiPixelGainCalibrationForHLTRcd.h
"
5
#include "
FWCore/Framework/interface/ESProducer.h
"
6
#include "
FWCore/Framework/interface/EventSetup.h
"
7
#include "
FWCore/Framework/interface/ESHandle.h
"
8
#include "
FWCore/Framework/interface/ModuleFactory.h
"
9
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
10
#include "
Geometry/TrackerGeometryBuilder/interface/TrackerGeometry.h
"
11
#include "
Geometry/Records/interface/TrackerDigiGeometryRecord.h
"
12
13
#include <memory>
14
15
class
SiPixelGainCalibrationForHLTGPUESProducer
:
public
edm::ESProducer
{
16
public
:
17
explicit
SiPixelGainCalibrationForHLTGPUESProducer
(
const
edm::ParameterSet
& iConfig);
18
std::unique_ptr<SiPixelGainCalibrationForHLTGPU>
produce
(
const
SiPixelGainCalibrationForHLTGPURcd
& iRecord);
19
20
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions);
21
22
private
:
23
edm::ESGetToken<SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd>
gainsToken_
;
24
edm::ESGetToken<TrackerGeometry, TrackerDigiGeometryRecord>
geometryToken_
;
25
};
26
27
SiPixelGainCalibrationForHLTGPUESProducer::SiPixelGainCalibrationForHLTGPUESProducer
(
const
edm::ParameterSet
& iConfig) {
28
auto
cc
=
setWhatProduced
(
this
);
29
gainsToken_
=
cc
.consumes();
30
geometryToken_
=
cc
.consumes();
31
}
32
33
void
SiPixelGainCalibrationForHLTGPUESProducer::fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions) {
34
edm::ParameterSetDescription
desc
;
35
descriptions.
add
(
"siPixelGainCalibrationForHLTGPU"
,
desc
);
36
}
37
38
std::unique_ptr<SiPixelGainCalibrationForHLTGPU>
SiPixelGainCalibrationForHLTGPUESProducer::produce
(
39
const
SiPixelGainCalibrationForHLTGPURcd
& iRecord) {
40
auto
gains = iRecord.
getHandle
(
gainsToken_
);
41
auto
geom
= iRecord.
getHandle
(
geometryToken_
);
42
return
std::make_unique<SiPixelGainCalibrationForHLTGPU>(*gains, *
geom
);
43
}
44
45
#include "
FWCore/Framework/interface/MakerMacros.h
"
46
#include "
FWCore/Utilities/interface/typelookup.h
"
47
#include "
FWCore/Framework/interface/eventsetuprecord_registration_macro.h
"
48
49
DEFINE_FWK_EVENTSETUP_MODULE
(
SiPixelGainCalibrationForHLTGPUESProducer
);
SiPixelGainCalibrationForHLTGPUESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
SiPixelGainCalibrationForHLTGPUESProducer.cc:33
SiPixelGainCalibrationForHLTGPURcd
Definition:
SiPixelGainCalibrationForHLTGPURcd.h:9
TrackerGeometry.h
ESHandle.h
edm::eventsetup::DependentRecordImplementation::getHandle
ESHandle< ProductT > getHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition:
DependentRecordImplementation.h:87
eventsetuprecord_registration_macro.h
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
ESProducer.h
typelookup.h
SiPixelGainCalibrationForHLT.h
SiPixelGainCalibrationForHLTGPUESProducer::produce
std::unique_ptr< SiPixelGainCalibrationForHLTGPU > produce(const SiPixelGainCalibrationForHLTGPURcd &iRecord)
Definition:
SiPixelGainCalibrationForHLTGPUESProducer.cc:38
SiPixelGainCalibrationForHLTGPUESProducer
Definition:
SiPixelGainCalibrationForHLTGPUESProducer.cc:15
SiPixelGainCalibrationForHLTGPUESProducer::SiPixelGainCalibrationForHLTGPUESProducer
SiPixelGainCalibrationForHLTGPUESProducer(const edm::ParameterSet &iConfig)
Definition:
SiPixelGainCalibrationForHLTGPUESProducer.cc:27
MakerMacros.h
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition:
ConfigurationDescriptions.cc:57
relativeConstraints.geom
geom
Definition:
relativeConstraints.py:72
SiPixelGainCalibrationForHLTGPUESProducer::gainsToken_
edm::ESGetToken< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd > gainsToken_
Definition:
SiPixelGainCalibrationForHLTGPUESProducer.cc:23
SiPixelGainCalibrationForHLTRcd.h
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
SiPixelGainCalibrationForHLTGPURcd.h
TrackerDigiGeometryRecord.h
edm::ParameterSet
Definition:
ParameterSet.h:47
SiPixelGainCalibrationForHLTGPUESProducer::geometryToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geometryToken_
Definition:
SiPixelGainCalibrationForHLTGPUESProducer.cc:24
cc
edm::ESGetToken< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd >
ModuleFactory.h
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
EventSetup.h
edm::ESProducer
Definition:
ESProducer.h:104
ParameterSet.h
SiPixelGainCalibrationForHLTGPU.h
Generated for CMSSW Reference Manual by
1.8.16