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 // $Id: HGCalNumberingInitialization.cc,v 1.0 2013/12/24 12:47:41 sunanda Exp $
17 //
18 //
19 
20 
21 // system include files
22 #include <memory>
23 #include <boost/shared_ptr.hpp>
24 
25 // user include files
29 
35 
36 //#define DebugLog
37 
39 
40 public:
43 
44  typedef std::auto_ptr<HGCalDDDConstants> ReturnType;
45 
47 
48 private:
51 };
52 
54  name_ = iConfig.getUntrackedParameter<std::string>("Name");
55 #ifdef DebugLog
56  std::cout <<"constructing HGCalNumberingInitialization for " << name_ << std::endl;
57 #endif
58  setWhatProduced(this, name_);
59 }
60 
61 
63 
64 
65 // ------------ method called to produce the data ------------
68 #ifdef DebugLog
69  std::cout << "in HGCalNumberingInitialization::produce" << std::endl;
70 #endif
71  if (hgcalDDDConst_ == 0) {
73  iRecord.get(pDD);
75  }
76  return std::auto_ptr<HGCalDDDConstants> (hgcalDDDConst_) ;
77 }
78 
79 //define this as a plug-in
81 
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:121