CMS 3D CMS Logo

HcalTrigTowerGeometryESProducer.cc
Go to the documentation of this file.
4 #include <memory>
5 
7  : topologyToken_{setWhatProduced(this).consumesFrom<HcalTopology, HcalRecNumberingRecord>(edm::ESInputTag{})} {}
8 
10 
11 std::unique_ptr<HcalTrigTowerGeometry> HcalTrigTowerGeometryESProducer::produce(const CaloGeometryRecord& iRecord) {
12  const auto& hcalTopology = iRecord.get(topologyToken_);
13  return std::make_unique<HcalTrigTowerGeometry>(&hcalTopology);
14 }
15 
18  descriptions.add("HcalTrigTowerGeometryESProducer", desc);
19 }
20 
HcalTrigTowerGeometryESProducer::topologyToken_
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > topologyToken_
Definition: HcalTrigTowerGeometryESProducer.h:25
HcalTrigTowerGeometryESProducer
Definition: HcalTrigTowerGeometryESProducer.h:15
edm::ESInputTag
Definition: ESInputTag.h:87
HcalTrigTowerGeometryESProducer::HcalTrigTowerGeometryESProducer
HcalTrigTowerGeometryESProducer(const edm::ParameterSet &conf)
Definition: HcalTrigTowerGeometryESProducer.cc:6
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
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
HcalRecNumberingRecord.h
HcalTrigTowerGeometryESProducer::produce
std::unique_ptr< HcalTrigTowerGeometry > produce(const CaloGeometryRecord &)
Definition: HcalTrigTowerGeometryESProducer.cc:11
config
Definition: config.py:1
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:103
HcalRecNumberingRecord
Definition: HcalRecNumberingRecord.h:23
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
edm::ParameterSet
Definition: ParameterSet.h:47
HcalTrigTowerGeometryESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: HcalTrigTowerGeometryESProducer.cc:16
ModuleFactory.h
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
HcalTrigTowerGeometryESProducer.h
HcalTrigTowerGeometryESProducer::~HcalTrigTowerGeometryESProducer
~HcalTrigTowerGeometryESProducer(void) override
Definition: HcalTrigTowerGeometryESProducer.cc:9