CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HGCalParametersESModule.cc
Go to the documentation of this file.
10 
11 #include <boost/shared_ptr.hpp>
12 
13 //#define DeugLog
14 
16 public:
19 
20  typedef boost::shared_ptr<HGCalParameters> ReturnType;
21 
23 
24 private:
26 };
27 
29 
33  edm::LogInfo("HGCalGeom") << "HGCalParametersESModule for " << name_ << ":"
34  << namew_ << ":" << namec_;
35 #ifdef DebugLog
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
void get(HolderT &iHolder) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
HGCalParametersESModule(const edm::ParameterSet &)
boost::shared_ptr< HGCalParameters > ReturnType
tuple cout
Definition: gather_cfg.py:145