CMS 3D CMS Logo

CaloTowerTopologyEP.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: CaloTowerTopologyEP
4 // Class: CaloTowerTopologyEP
5 //
19 
20 //
21 // constants, enums and typedefs
22 //
23 
24 //
25 // static data member definitions
26 //
27 
28 //
29 // constructors and destructor
30 //
32 {
33  edm::LogInfo("HCAL") << "CaloTowerTopologyEP::CaloTowerTopologyEP";
34  setWhatProduced(this);
35 }
36 
37 
39 }
40 
43  descriptions.add( "CaloTowerTopology", desc );
44 }
45 
46 //
47 // member functions
48 //
49 
50 // ------------ method called to produce the data ------------
54  iRecord.get(hcaltopo);
55 
56  edm::LogInfo("HCAL") << "CaloTowerTopologyEP::produce(const HcalRecNumberingRecord& iRecord)";
57 
58  return std::make_unique<CaloTowerTopology>(&*hcaltopo);
59 }
60 
61 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
ReturnType produce(const HcalRecNumberingRecord &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::unique_ptr< CaloTowerTopology > ReturnType
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
CaloTowerTopologyEP(const edm::ParameterSet &)