CMS 3D CMS Logo

HGCalParametersESModule.cc
Go to the documentation of this file.
10 
11 #include <memory>
12 
13 //#define EDM_ML_DEBUG
14 
16 public:
18  ~HGCalParametersESModule( void ) override;
19 
20  using ReturnType = std::unique_ptr<HGCalParameters>;
21 
23 
24 private:
26 };
27 
29 
34  edm::LogInfo("HGCalGeom") << "HGCalParametersESModule for " << name_ << ":"
35  << namew_ << ":" << namec_ << ":" << namet_;
36 #ifdef EDM_ML_DEBUG
37  std::cout << "HGCalParametersESModule for " << name_ << ":" << namew_ << ":"
38  << namec_ << ":" << namet_ << std::endl;
39 #endif
40  setWhatProduced(this, name_);
41 }
42 
44 
47  edm::LogInfo("HGCalGeom")
48  << "HGCalParametersESModule::produce(const IdealGeometryRecord& iRecord)";
50  iRecord.get(cpv);
51 
52  auto ptp = std::make_unique<HGCalParameters>(name_);
53  HGCalParametersFromDD builder;
54  builder.build(&(*cpv), *ptp, name_, namew_, namec_, namet_);
55 
56  return ptp;
57 }
58 
59 //define this as a plug-in
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:116
T getUntrackedParameter(std::string const &, T const &) const
bool build(const DDCompactView *, HGCalParameters &, const std::string &, const std::string &, const std::string &, const std::string &)
ReturnType produce(const IdealGeometryRecord &)
std::unique_ptr< HGCalParameters > ReturnType
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
HGCalParametersESModule(const edm::ParameterSet &)
bool get(HolderT &iHolder) const