CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HGCalGeometryESProducer.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: HGCalGeometry
4 // Class: HGCalGeometryESProducer
5 //
13 //
14 // Original Author: Sunanda Banerjee
15 //
16 //
17 
18 
19 // system include files
20 #include <memory>
21 #include "boost/shared_ptr.hpp"
22 
23 // user include files
32 
33 //#define DebugLog
34 
35 //
36 // class decleration
37 //
38 
40 
41 public:
43  virtual ~HGCalGeometryESProducer() ;
44 
45  typedef boost::shared_ptr<HGCalGeometry> ReturnType;
46 
48 
49 private:
50  // ----------member data ---------------------------
52 };
53 
54 
56 
57  name_ = iConfig.getUntrackedParameter<std::string>("Name");
58 #ifdef DebugLog
59  std::cout <<"constructing HGCalGeometry for " << name_ << std::endl;
60 #endif
61  setWhatProduced(this, name_);
62 }
63 
64 
66 
67 
68 //
69 // member functions
70 //
71 
72 // ------------ method called to produce the data ------------
75 
77  iRecord.get(name_,topo);
78 
79  HGCalGeometryLoader builder;
80  ReturnType ct(builder.build(*topo));
81 #ifdef DebugLog
82  std::cout << "Create HGCalGeometry (*topo)" << std::endl;
83 #endif
84  return ct ;
85 }
86 
T getUntrackedParameter(std::string const &, T const &) const
HGCalGeometry * build(const HGCalTopology &)
HGCalGeometryESProducer(const edm::ParameterSet &iP)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
boost::shared_ptr< HGCalGeometry > ReturnType
void get(HolderT &iHolder) const
ReturnType produce(const IdealGeometryRecord &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
tuple cout
Definition: gather_cfg.py:121