CMS 3D CMS Logo

HGCalTBNumberingInitialization.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: HGCalNumberingInitialization
4 // Class: HGCalNumberingInitialization
5 //
14 //
15 // Original Author: Sunanda Banerjee
16 // Created: Fri Dec 30 16:40:29 PDT 2022
17 //
18 
19 // user include files
24 
28 
29 //#define EDM_ML_DEBUG
30 
32 public:
34  ~HGCalTBNumberingInitialization() override = default;
35 
36  typedef std::unique_ptr<HGCalTBDDDConstants> ReturnType;
37 
39 
40 private:
43 };
44 
46  name_ = iConfig.getUntrackedParameter<std::string>("name");
47  edm::LogVerbatim("HGCalGeom") << "HGCalTBNumberingInitialization for " << name_;
48  auto cc = setWhatProduced(this, name_);
50 }
51 
52 // ------------ method called to produce the data ------------
54  edm::LogVerbatim("HGCalGeom") << "in HGCalTBNumberingInitialization::produce for " << name_;
55  const auto& pHGpar = iRecord.get(hgParToken_);
56  return std::make_unique<HGCalTBDDDConstants>(&pHGpar, name_);
57 }
58 
59 // define this as a plug-in
Log< level::Info, true > LogVerbatim
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:165
HGCalTBNumberingInitialization(const edm::ParameterSet &)
ReturnType produce(const IdealGeometryRecord &)
edm::ESGetToken< HGCalTBParameters, IdealGeometryRecord > hgParToken_
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
T getUntrackedParameter(std::string const &, T const &) const
std::unique_ptr< HGCalTBDDDConstants > ReturnType
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:61
~HGCalTBNumberingInitialization() override=default
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const