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  : topoToken_{setWhatProduced(this).consumes<HcalTopology>(edm::ESInputTag{})} {
33  edm::LogInfo("HCAL") << "CaloTowerTopologyEP::CaloTowerTopologyEP";
34 }
35 
37 
40  descriptions.add("CaloTowerTopology", desc);
41 }
42 
43 //
44 // member functions
45 //
46 
47 // ------------ method called to produce the data ------------
49  const auto& hcaltopo = iRecord.get(topoToken_);
50 
51  edm::LogInfo("HCAL") << "CaloTowerTopologyEP::produce(const HcalRecNumberingRecord& iRecord)";
52 
53  return std::make_unique<CaloTowerTopology>(&hcaltopo);
54 }
ConfigurationDescriptions.h
edm::ESInputTag
Definition: ESInputTag.h:87
CaloTowerTopologyEP::CaloTowerTopologyEP
CaloTowerTopologyEP(const edm::ParameterSet &)
Definition: CaloTowerTopologyEP.cc:31
MessageLogger.h
HcalTopology
Definition: HcalTopology.h:26
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
CaloTowerTopologyEP::ReturnType
std::unique_ptr< CaloTowerTopology > ReturnType
Definition: CaloTowerTopologyEP.h:29
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
CaloTowerTopologyEP.h
ParameterSetDescription.h
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:109
HcalRecNumberingRecord
Definition: HcalRecNumberingRecord.h:23
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
edm::ParameterSet
Definition: ParameterSet.h:47
CaloTowerTopologyEP::topoToken_
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > topoToken_
Definition: CaloTowerTopologyEP.h:37
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
CaloTowerTopologyEP::produce
ReturnType produce(const HcalRecNumberingRecord &)
Definition: CaloTowerTopologyEP.cc:48
CaloTowerTopologyEP::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: CaloTowerTopologyEP.cc:38
Exception.h
CaloTowerTopologyEP::~CaloTowerTopologyEP
~CaloTowerTopologyEP() override
Definition: CaloTowerTopologyEP.cc:36