CMS 3D CMS Logo

TrackerAdditionalParametersPerDetESModule.cc
Go to the documentation of this file.
12 
13 #include <memory>
14 
15 namespace edm {
17 }
20 
22 public:
24 
25  using ReturnType = std::unique_ptr<PTrackerAdditionalParametersPerDet>;
26 
28 
30 
31 private:
33 };
34 
36  auto cc = setWhatProduced(this);
38 }
39 
42  descriptions.add("TrackerAdditionalParametersPerDet", desc);
43 }
44 
47  edm::LogInfo("TrackerAdditionalParametersPerDet")
48  << "TrackerAdditionalParametersPerDetESModule::produce(const PTrackerAdditionalParametersPerDetRcd& iRecord)";
49 
50  auto ptitp = std::make_unique<PTrackerAdditionalParametersPerDet>();
51 
53 
54  std::vector<const GeometricDet*> comp;
55  gd->deepComponents(comp);
56 
57  for (auto& i : comp) {
58  ptitp->setGeographicalId(i->geographicalId());
59  ptitp->setBigPixelsX(i->bigPixelsx());
60  ptitp->setBigPixelsY(i->bigPixelsy());
61  ptitp->setBigPixelsPitchX(i->bigPixelsPitchx());
62  ptitp->setBigPixelsPitchY(i->bigPixelsPitchy());
63  }
64 
65  return ptitp;
66 }
67 
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:166
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
edm::ESGetToken< GeometricDet, IdealGeometryRecord > geometricDetToken_
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:61
std::unique_ptr< PTrackerAdditionalParametersPerDet > ReturnType
Log< level::Info, false > LogInfo
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HLT enums.
ReturnType produce(const PTrackerAdditionalParametersPerDetRcd &)
static void fillDescriptions(edm::ConfigurationDescriptions &)