test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 #include <boost/shared_ptr.hpp>
23 
24 // user include files
28 
34 
35 //#define DebugLog
36 
38 
39 public:
42 
43  typedef std::auto_ptr<FastTimeDDDConstants> ReturnType;
44 
46 
47 private:
49 };
50 
52 #ifdef DebugLog
53  std::cout <<"constructing FastTimeNumberingInitialization" << std::endl;
54 #endif
55  setWhatProduced(this);
56 }
57 
58 
60 
61 
62 // ------------ method called to produce the data ------------
65 #ifdef DebugLog
66  std::cout << "in FastTimeNumberingInitialization::produce" << std::endl;
67 #endif
68  if (fastTimeDDDConst_ == 0) {
70  iRecord.get(pDD);
72  }
73  return std::auto_ptr<FastTimeDDDConstants> (fastTimeDDDConst_) ;
74 }
75 
76 //define this as a plug-in
78 
std::auto_ptr< FastTimeDDDConstants > ReturnType
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
ReturnType produce(const IdealGeometryRecord &)
void get(HolderT &iHolder) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
FastTimeNumberingInitialization(const edm::ParameterSet &)
tuple cout
Definition: gather_cfg.py:145