CMS 3D CMS Logo

ZdcTopologyEP.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: ZdcTopologyEP
4 // Class: ZdcTopologyEP
5 //
20 
21 //#define EDM_ML_DEBUG
22 
25 #ifdef EDM_ML_DEBUG
26  edm::LogVerbatim("HCalGeom") << "ZdcTopologyEP::ZdcTopologyEP";
27 #endif
28 }
29 
32  descriptions.add("zdcTopologyEP", desc);
33 }
34 
35 // ------------ method called to produce the data ------------
37 #ifdef EDM_ML_DEBUG
38  edm::LogVerbatim("HCalGeom") << "ZdcTopologyEP::produce(const HcalRecNumberingRecord& iRecord)";
39 #endif
40  const HcalDDDRecConstants& hdc = iRecord.get(m_hdcToken);
41 
42 #ifdef EDM_ML_DEBUG
43  edm::LogVerbatim("HCalGeom") << "mode = " << hdc.getTopoMode();
44 #endif
45  ReturnType myTopo(new ZdcTopology(&hdc));
46  return myTopo;
47 }
Log< level::Info, true > LogVerbatim
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:166
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ReturnType produce(const HcalRecNumberingRecord &)
std::unique_ptr< ZdcTopology > ReturnType
Definition: ZdcTopologyEP.h:21
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > m_hdcToken
Definition: ZdcTopologyEP.h:29
ZdcTopologyEP(const edm::ParameterSet &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const