CMS 3D CMS Logo

CaloTowerHardcodeGeometryEP.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: CaloTowerHardcodeGeometryEP
4 // Class: CaloTowerHardcodeGeometryEP
5 //
13 //
14 // Original Author: Jeremiah Mans
15 // Created: Mon Oct 3 11:35:27 CDT 2005
16 //
17 //
18 
24 
26  //the following line is needed to tell the framework what
27  // data is being produced
32 }
33 
34 // ------------ method called to produce the data ------------
36  const auto& cttopo = iRecord.get(cttopoToken_);
37  const auto& hcaltopo = iRecord.get(hcaltopoToken_);
38  const auto& cons = iRecord.get(consToken_);
39 
40  return std::unique_ptr<CaloSubdetectorGeometry>(loader_.load(&cttopo, &hcaltopo, &cons));
41 }
CaloTowerHardcodeGeometryEP.h
CaloTowerHardcodeGeometryEP::ReturnType
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
Definition: CaloTowerHardcodeGeometryEP.h:20
edm::ESInputTag
Definition: ESInputTag.h:87
HcalTopology
Definition: HcalTopology.h:26
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
CaloTowerTopology
Definition: CaloTowerTopology.h:13
HcalRecNumberingRecord.h
CaloTowerHardcodeGeometryEP::hcaltopoToken_
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > hcaltopoToken_
Definition: CaloTowerHardcodeGeometryEP.h:28
CaloTowerHardcodeGeometryEP::CaloTowerHardcodeGeometryEP
CaloTowerHardcodeGeometryEP(const edm::ParameterSet &)
Definition: CaloTowerHardcodeGeometryEP.cc:25
CaloTowerHardcodeGeometryEP::produce
ReturnType produce(const CaloTowerGeometryRecord &)
Definition: CaloTowerHardcodeGeometryEP.cc:35
edm::es::Label
Definition: es_Label.h:56
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:109
CaloTowerTopology.h
CaloTowerHardcodeGeometryEP::consToken_
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > consToken_
Definition: CaloTowerHardcodeGeometryEP.h:29
HcalRecNumberingRecord
Definition: HcalRecNumberingRecord.h:23
CaloTowerHardcodeGeometryLoader::load
std::unique_ptr< CaloSubdetectorGeometry > load(const CaloTowerTopology *limits, const HcalTopology *hcaltopo, const HcalDDDRecConstants *hcons)
Definition: CaloTowerHardcodeGeometryLoader.cc:14
edm::ParameterSet
Definition: ParameterSet.h:47
CaloTowerHardcodeGeometryEP::loader_
CaloTowerHardcodeGeometryLoader loader_
Definition: CaloTowerHardcodeGeometryEP.h:26
CaloTowerHardcodeGeometryEP::cttopoToken_
edm::ESGetToken< CaloTowerTopology, HcalRecNumberingRecord > cttopoToken_
Definition: CaloTowerHardcodeGeometryEP.h:27
CaloTowerGeometryRecord
Definition: CaloTowerGeometryRecord.h:24
cc
HcalTopology.h
HcalDDDRecConstants.h
HcalDDDRecConstants
Definition: HcalDDDRecConstants.h:23