CMS 3D CMS Logo

FastTimeGeometryESProducer.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: HGCalGeometry
4 // Class: FastTimeGeometryESProducer
5 //
13 //
14 // Original Author: Sunanda Banerjee
15 //
16 //
17 
18 
19 // system include files
20 #include <memory>
21 
22 // user include files
30 
31 //#define EDM_ML_DEBUG
32 
33 //
34 // class decleration
35 //
36 
38 
39 public:
41  ~FastTimeGeometryESProducer() override ;
42 
43  using ReturnType = std::unique_ptr<FastTimeGeometry>;
44 
46 
47 private:
48  // ----------member data ---------------------------
50 };
51 
52 
54 
55  auto name = iConfig.getUntrackedParameter<std::string>("Name");
56 #ifdef EDM_ML_DEBUG
57  auto type = iConfig.getUntrackedParameter<int>("Type");
58  std::cout <<"constructing FastTimeGeometry for " << name << " Type "
59  << type << std::endl;
60 #endif
61  auto cc = setWhatProduced(this, name);
63 }
64 
65 
67 
68 
69 //
70 // member functions
71 //
72 
73 // ------------ method called to produce the data ------------
76 
77  const auto& topo = iRecord.get(topologyToken_);
78 
79  FastTimeGeometryLoader builder;
80 #ifdef EDM_ML_DEBUG
81  std::cout << "Create FastTimeGeometry (topo)" << std::endl;
82 #endif
83  return ReturnType(builder.build(topo));
84 }
85 
type
Definition: HCALResponse.h:21
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
T getUntrackedParameter(std::string const &, T const &) const
ReturnType produce(const IdealGeometryRecord &)
edm::ESGetToken< FastTimeTopology, IdealGeometryRecord > topologyToken_
std::unique_ptr< FastTimeGeometry > ReturnType
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
FastTimeGeometry * build(const FastTimeTopology &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
FastTimeGeometryESProducer(const edm::ParameterSet &iP)