CMS 3D CMS Logo

TrackerAdditionalParametersPerDetESModule.cc
Go to the documentation of this file.
13 
14 #include <memory>
15 
16 namespace edm {
18 }
21 
23 public:
25 
26  using ReturnType = std::unique_ptr<PTrackerAdditionalParametersPerDet>;
27 
29 
31 
32 private:
34 };
35 
37  auto cc = setWhatProduced(this);
39 }
40 
43  descriptions.add("TrackerAdditionalParametersPerDet", desc);
44 }
45 
48  edm::LogInfo("TrackerAdditionalParametersPerDet")
49  << "TrackerAdditionalParametersPerDetESModule::produce(const PTrackerAdditionalParametersPerDetRcd& iRecord)";
50 
51  auto ptitp = std::make_unique<PTrackerAdditionalParametersPerDet>();
52 
54 
55  std::vector<const GeometricDet*> comp;
56  gd->deepComponents(comp);
57 
58  for (auto& i : comp) {
59  ptitp->setGeographicalId(i->geographicalId());
60  ptitp->setBricked(i->isBricked());
61  }
62 
63  return ptitp;
64 }
65 
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
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 &)