CMS 3D CMS Logo

CaloTopologyBuilder.cc
Go to the documentation of this file.
7 
10  .consumesFrom<CaloGeometry, CaloGeometryRecord>(edm::ESInputTag{})} {}
11 
13 
14 //
15 // member functions
16 //
17 
18 // ------------ method called to produce the data ------------
20  const auto& geometry = iRecord.get(geometryToken_);
21 
22  ReturnType ct = std::make_unique<CaloTopology>();
23  //ECAL parts
24  ct->setSubdetTopology(DetId::Ecal, EcalBarrel, std::make_unique<EcalBarrelTopology>(geometry));
25  ct->setSubdetTopology(DetId::Ecal, EcalEndcap, std::make_unique<EcalEndcapTopology>(geometry));
26  ct->setSubdetTopology(DetId::Ecal, EcalPreshower, std::make_unique<EcalPreshowerTopology>());
27  return ct;
28 }
EcalPreshowerTopology.h
edm::ESInputTag
Definition: ESInputTag.h:87
CaloTopologyBuilder::CaloTopologyBuilder
CaloTopologyBuilder(const edm::ParameterSet &iP)
Definition: CaloTopologyBuilder.cc:8
CaloTopologyBuilder::geometryToken_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geometryToken_
Definition: CaloTopologyBuilder.h:45
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
geometry
Definition: geometry.py:1
CaloTopologyBuilder::~CaloTopologyBuilder
~CaloTopologyBuilder() override
Definition: CaloTopologyBuilder.cc:12
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
EcalBarrelTopology.h
CaloTopologyRecord
Definition: CaloTopologyRecord.h:10
EcalBarrel
Definition: EcalSubdetector.h:10
CaloGeometry
Definition: CaloGeometry.h:21
CaloTopologyBuilder::produceCalo
ReturnType produceCalo(const CaloTopologyRecord &)
Definition: CaloTopologyBuilder.cc:19
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:112
EcalSubdetector.h
EcalEndcap
Definition: EcalSubdetector.h:10
edm::ParameterSet
Definition: ParameterSet.h:36
EcalEndcapTopology.h
CaloTopologyBuilder.h
CaloTopologyBuilder::ReturnType
std::unique_ptr< CaloTopology > ReturnType
Definition: CaloTopologyBuilder.h:39
DetId::Ecal
Definition: DetId.h:27
EcalPreshower
Definition: EcalSubdetector.h:10
CaloSubdetectorTopology.h