CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:163
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
std::unique_ptr< CaloSubdetectorGeometry > load(const CaloTowerTopology *limits, const HcalTopology *hcaltopo, const HcalDDDRecConstants *hcons)
ReturnType produce(const CaloTowerGeometryRecord &)
edm::ESGetToken< CaloTowerTopology, HcalRecNumberingRecord > cttopoToken_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
CaloTowerHardcodeGeometryLoader loader_
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > consToken_
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > hcaltopoToken_
CaloTowerHardcodeGeometryEP(const edm::ParameterSet &)