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  typedef std::shared_ptr<HGCalParameters> ReturnType;
21 
22  ReturnType produce( const IdealGeometryRecord&);
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 
53  HGCalParametersFromDD builder;
54  builder.build(&(*cpv), *ptp, name_, namew_, namec_, namet_);
55 
56  return ReturnType(ptp) ;
57 }
58 
59 //define this as a plug-in
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 &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
std::shared_ptr< HGCalParameters > ReturnType
void get(HolderT &iHolder) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
HGCalParametersESModule(const edm::ParameterSet &)