CMS 3D CMS Logo

SiPixelGainCalibrationForHLTGPUESProducer.cc
Go to the documentation of this file.
12 
13 #include <memory>
14 
16 public:
18  std::unique_ptr<SiPixelGainCalibrationForHLTGPU> produce(const SiPixelGainCalibrationForHLTGPURcd& iRecord);
19 
20  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
21 
22 private:
25 };
26 
28  auto cc = setWhatProduced(this);
29  gainsToken_ = cc.consumes();
30  geometryToken_ = cc.consumes();
31 }
32 
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 
48 
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