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 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:165
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
std::unique_ptr< CaloSubdetectorGeometry > load(const CaloTowerTopology *limits, const HcalTopology *hcaltopo, const HcalDDDRecConstants *hcons)
ReturnType produce(const CaloTowerGeometryRecord &)
edm::ESGetToken< CaloTowerTopology, HcalRecNumberingRecord > cttopoToken_
CaloTowerHardcodeGeometryLoader loader_
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > consToken_
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > hcaltopoToken_
CaloTowerHardcodeGeometryEP(const edm::ParameterSet &)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const