CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HGCalNumberingInitialization.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: HGCalNumberingInitialization
4 // Class: HGCalNumberingInitialization
5 //
13 //
14 // Original Author: Sunanda Banerjee
15 // Created: Tue Mar 21 16:40:29 PDT 2013
16 //
17 
18 
19 // system include files
20 #include <memory>
21 #include <boost/shared_ptr.hpp>
22 
23 // user include files
29 
33 
34 //#define DebugLog
35 
37 
38 public:
41 
42  typedef std::auto_ptr<HGCalDDDConstants> ReturnType;
43 
45 
46 private:
49 };
50 
52 
53  name_ = iConfig.getUntrackedParameter<std::string>("Name");
54  edm::LogInfo("HGCalGeom") << "HGCalNumberingInitialization for " << name_;
55 #ifdef DebugLog
56  std::cout << "HGCalNumberingInitialization for " << name_ << std::endl;
57 #endif
58  setWhatProduced(this, name_);
59 }
60 
62 
63 
64 // ------------ method called to produce the data ------------
67 
68  edm::LogInfo("HGCalGeom") << "in HGCalNumberingInitialization::produce";
69  if (hgcalDDDConst_ == 0) {
71  iRecord.get(name_, pHGpar);
72  hgcalDDDConst_ = new HGCalDDDConstants(&(*pHGpar), name_);
73  }
74  return ReturnType(hgcalDDDConst_) ;
75 }
76 
77 //define this as a plug-in
79 
T getUntrackedParameter(std::string const &, T const &) const
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
std::auto_ptr< HGCalDDDConstants > ReturnType
void get(HolderT &iHolder) const
ReturnType produce(const IdealGeometryRecord &)
HGCalNumberingInitialization(const edm::ParameterSet &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
tuple cout
Definition: gather_cfg.py:145