test
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 
20 
21 //
22 // constants, enums and typedefs
23 //
24 
25 //
26 // static data member definitions
27 //
28 
29 //
30 // constructors and destructor
31 //
33 {
34  //the following line is needed to tell the framework what
35  // data is being produced
36  setWhatProduced(this,"TOWER");
37 
38  //now do what ever other initialization is needed
40 }
41 
42 
44 {
45  delete loader_;
46 }
47 
48 
49 //
50 // member functions
51 //
52 
53 // ------------ method called to produce the data ------------
56 {
57  edm::ESHandle<HcalTopology> hcalTopology;
58  iRecord.getRecord<IdealGeometryRecord>().get( hcalTopology );
59 
60  std::auto_ptr<CaloSubdetectorGeometry> pCaloSubdetectorGeometry( loader_->load( &*hcalTopology ));
61 
62  return pCaloSubdetectorGeometry ;
63 }
64 
65 
ReturnType produce(const CaloTowerGeometryRecord &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
std::auto_ptr< CaloSubdetectorGeometry > ReturnType
std::auto_ptr< CaloSubdetectorGeometry > load(const HcalTopology *limits)
CaloTowerHardcodeGeometryEP(const edm::ParameterSet &)
CaloTowerHardcodeGeometryLoader * loader_