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 {
27  //the following line is needed to tell the framework what
28  // data is being produced
29  setWhatProduced(this,
31  edm::es::Label("TOWER"));
32 
34 }
35 
37  delete loader_;
38 }
39 
40 // ------------ method called to produce the data ------------
44  iRecord.getRecord<HcalRecNumberingRecord>().get( cttopo );
46  iRecord.getRecord<HcalRecNumberingRecord>().get( hcaltopo );
48  iRecord.getRecord<HcalRecNumberingRecord>().get( pHRNDC );
49 
50  return std::unique_ptr<CaloSubdetectorGeometry>( loader_->load( &*cttopo, &*hcaltopo, &*pHRNDC ));
51 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
std::unique_ptr< CaloSubdetectorGeometry > load(const CaloTowerTopology *limits, const HcalTopology *hcaltopo, const HcalDDDRecConstants *hcons)
ReturnType produce(const CaloTowerGeometryRecord &)
CaloTowerHardcodeGeometryEP(const edm::ParameterSet &)
CaloTowerHardcodeGeometryLoader * loader_