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  using ReturnType = std::unique_ptr<FastTimeDDDConstants>;
46 
48 };
49 
51 #ifdef EDM_ML_DEBUG
52  std::cout <<"constructing FastTimeNumberingInitialization" << std::endl;
53 #endif
54  setWhatProduced(this);
55 }
56 
58 
59 
60 // ------------ method called to produce the data ------------
63 #ifdef EDM_ML_DEBUG
64  std::cout << "in FastTimeNumberingInitialization::produce" << std::endl;
65 #endif
67  iRecord.get(pFTpar);
68  return std::make_unique<FastTimeDDDConstants>(&(*pFTpar));
69 }
70 
71 //define this as a plug-in
73 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:116
std::unique_ptr< FastTimeDDDConstants > ReturnType
ReturnType produce(const IdealGeometryRecord &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
FastTimeNumberingInitialization(const edm::ParameterSet &)
bool get(HolderT &iHolder) const