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 
25 //
26 // constants, enums and typedefs
27 //
28 
29 //
30 // static data member definitions
31 //
32 
33 //
34 // constructors and destructor
35 //
37 {
38  //the following line is needed to tell the framework what
39  // data is being produced
40  setWhatProduced(this,
43  "TOWER");
44 
45  //now do what ever other initialization is needed
47 }
48 
49 
51  delete loader_;
52 }
53 
54 
55 //
56 // member functions
57 //
58 
59 // ------------ method called to produce the data ------------
63  iRecord.getRecord<HcalRecNumberingRecord>().get( cttopo );
65  iRecord.getRecord<HcalRecNumberingRecord>().get( hcaltopo );
67  iRecord.getRecord<HcalRecNumberingRecord>().get( pHRNDC );
68 
69  return std::unique_ptr<CaloSubdetectorGeometry>( loader_->load( &*cttopo, &*hcaltopo, &*pHRNDC ));
70 
71 }
72 
73 
depends_on::OneHolder< T, TDependsOnRecord > dependsOn(void(T::*iT)(const TDependsOnRecord &))
void idealRecordCallBack(const HcalRecNumberingRecord &)
std::unique_ptr< CaloSubdetectorGeometry > load(const CaloTowerTopology *limits, const HcalTopology *hcaltopo, const HcalDDDRecConstants *hcons)
ReturnType produce(const CaloTowerGeometryRecord &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
CaloTowerHardcodeGeometryEP(const edm::ParameterSet &)
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
CaloTowerHardcodeGeometryLoader * loader_