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 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
std::unique_ptr< SiPixelGainCalibrationForHLTGPU > produce(const SiPixelGainCalibrationForHLTGPURcd &iRecord)
edm::ESGetToken< SiPixelGainCalibrationForHLT, SiPixelGainCalibrationForHLTRcd > gainsToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geometryToken_
ESHandle< ProductT > getHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:61
constexpr float gains[NGAINS]
Definition: EcalConstants.h:11
void add(std::string const &label, ParameterSetDescription const &psetDescription)