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 
33  edm::LogInfo("HGCalGeom") << "HGCalParametersESModule for " << name_ << ":"
34  << namew_ << ":" << namec_;
35 #ifdef EDM_ML_DEBUG
36  std::cout << "HGCalParametersESModule for " << name_ << ":" << namew_ << ":"
37  << namec_ << std::endl;
38 #endif
39  setWhatProduced(this, name_);
40 }
41 
43 
46  edm::LogInfo("HGCalGeom")
47  << "HGCalParametersESModule::produce(const IdealGeometryRecord& iRecord)";
49  iRecord.get(cpv);
50 
52  HGCalParametersFromDD builder;
53  builder.build(&(*cpv), *ptp, name_, namew_, namec_);
54 
55  return ReturnType(ptp) ;
56 }
57 
58 //define this as a plug-in
T getUntrackedParameter(std::string const &, T const &) const
ReturnType produce(const IdealGeometryRecord &)
bool build(const DDCompactView *, HGCalParameters &, const std::string &, const std::string &, const std::string &)
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 &)