CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
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  std::auto_ptr<CaloSubdetectorGeometry> pCaloSubdetectorGeometry( loader_->load( &*cttopo, &*hcaltopo, &*pHRNDC ));
70 
71  return pCaloSubdetectorGeometry ;
72 }
73 
74 
depends_on::OneHolder< T, TDependsOnRecord > dependsOn(void(T::*iT)(const TDependsOnRecord &))
void idealRecordCallBack(const HcalRecNumberingRecord &)
ReturnType produce(const CaloTowerGeometryRecord &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
std::auto_ptr< CaloSubdetectorGeometry > load(const CaloTowerTopology *limits, const HcalTopology *hcaltopo, const HcalDDDRecConstants *hcons)
std::auto_ptr< CaloSubdetectorGeometry > ReturnType
CaloTowerHardcodeGeometryEP(const edm::ParameterSet &)
CaloTowerHardcodeGeometryLoader * loader_