CMS 3D CMS Logo

FastTimeNumberingInitialization.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: FastTimeNumberingInitialization
4 // Class: FastTimeNumberingInitialization
5 //
13 //
14 // Original Author: Sunanda Banerjee
15 // Created: Tue Mar 21 16:40:29 PDT 2013
16 // $Id: FastTimeNumberingInitialization.cc,v 1.0 2014/04/24 12:47:41 sunanda Exp $
17 //
18 //
19 
20 // system include files
21 #include <memory>
22 
23 // user include files
29 
36 
37 //#define EDM_ML_DEBUG
38 
40 
41 public:
44 
45  typedef std::shared_ptr<FastTimeDDDConstants> ReturnType;
46 
47  ReturnType produce(const IdealGeometryRecord&);
48 
49 private:
51 };
52 
54 #ifdef EDM_ML_DEBUG
55  std::cout <<"constructing FastTimeNumberingInitialization" << std::endl;
56 #endif
57  setWhatProduced(this);
58 }
59 
61 
62 
63 // ------------ method called to produce the data ------------
66 #ifdef EDM_ML_DEBUG
67  std::cout << "in FastTimeNumberingInitialization::produce" << std::endl;
68 #endif
69  if (fastTimeDDDConst_ == 0) {
71  iRecord.get(pFTpar);
72  fastTimeDDDConst_ = new FastTimeDDDConstants(&(*pFTpar));
73  }
74  return std::shared_ptr<FastTimeDDDConstants> (fastTimeDDDConst_) ;
75 }
76 
77 //define this as a plug-in
79 
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
ReturnType produce(const IdealGeometryRecord &)
void get(HolderT &iHolder) const
std::shared_ptr< FastTimeDDDConstants > ReturnType
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
FastTimeNumberingInitialization(const edm::ParameterSet &)