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 // system include files
19 #include <memory>
20 
21 // user include files
30 
31 //#define EDM_ML_DEBUG
32 
33 //
34 // class decleration
35 //
36 
38 public:
40  ~FastTimeGeometryESProducer() override;
41 
42  using ReturnType = std::unique_ptr<FastTimeGeometry>;
43 
45 
46 private:
47  // ----------member data ---------------------------
49 };
50 
52  auto name = iConfig.getUntrackedParameter<std::string>("Name");
53 #ifdef EDM_ML_DEBUG
54  auto type = iConfig.getUntrackedParameter<int>("Type");
55  std::cout << "constructing FastTimeGeometry for " << name << " Type " << type << std::endl;
56 #endif
57  auto cc = setWhatProduced(this, name);
59 }
60 
62 
63 //
64 // member functions
65 //
66 
67 // ------------ method called to produce the data ------------
69  const auto& topo = iRecord.get(topologyToken_);
70 
71  FastTimeGeometryLoader builder;
72 #ifdef EDM_ML_DEBUG
73  std::cout << "Create FastTimeGeometry (topo)" << std::endl;
74 #endif
75  return ReturnType(builder.build(topo));
76 }
77 
FastTimeTopology.h
edm::ESInputTag
Definition: ESInputTag.h:87
gather_cfg.cout
cout
Definition: gather_cfg.py:144
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
FastTimeGeometryLoader::build
FastTimeGeometry * build(const FastTimeTopology &)
Definition: FastTimeGeometryLoader.cc:16
ESProducer.h
FastTimeGeometryESProducer::ReturnType
std::unique_ptr< FastTimeGeometry > ReturnType
Definition: FastTimeGeometryESProducer.cc:42
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
FastTimeGeometryESProducer::produce
ReturnType produce(const IdealGeometryRecord &)
Definition: FastTimeGeometryESProducer.cc:68
FastTimeGeometryESProducer::~FastTimeGeometryESProducer
~FastTimeGeometryESProducer() override
Definition: FastTimeGeometryESProducer.cc:61
FastTimeGeometryESProducer::topologyToken_
edm::ESGetToken< FastTimeTopology, IdealGeometryRecord > topologyToken_
Definition: FastTimeGeometryESProducer.cc:48
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:109
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FastTimeGeometryLoader
Definition: FastTimeGeometryLoader.h:8
CaloSubdetectorGeometry.h
edm::ParameterSet
Definition: ParameterSet.h:47
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
FastTimeGeometryESProducer::FastTimeGeometryESProducer
FastTimeGeometryESProducer(const edm::ParameterSet &iP)
Definition: FastTimeGeometryESProducer.cc:51
IdealGeometryRecord.h
FastTimeGeometryLoader.h
cc
edm::ESGetToken< FastTimeTopology, IdealGeometryRecord >
ModuleFactory.h
FastTimeGeometryESProducer
Definition: FastTimeGeometryESProducer.cc:37
FastTimeTopology
Definition: FastTimeTopology.h:11
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
FastTimeGeometry.h
edm::ESProducer
Definition: ESProducer.h:104
ParameterSet.h
IdealGeometryRecord
Definition: IdealGeometryRecord.h:25