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 // $Id: CaloTowerHardcodeGeometryEP.cc,v 1.7 2012/10/10 15:35:07 yana Exp $
17 //
18 //
19 
21 
22 //
23 // constants, enums and typedefs
24 //
25 
26 //
27 // static data member definitions
28 //
29 
30 //
31 // constructors and destructor
32 //
34 {
35  //the following line is needed to tell the framework what
36  // data is being produced
37  setWhatProduced(this,"TOWER");
38 
39  //now do what ever other initialization is needed
41 }
42 
43 
45 {
46  delete loader_;
47 }
48 
49 
50 //
51 // member functions
52 //
53 
54 // ------------ method called to produce the data ------------
57 {
58  edm::ESHandle<HcalTopology> hcalTopology;
59  iRecord.getRecord<IdealGeometryRecord>().get( hcalTopology );
60 
61  std::auto_ptr<CaloSubdetectorGeometry> pCaloSubdetectorGeometry( loader_->load( &*hcalTopology ));
62 
63  return pCaloSubdetectorGeometry ;
64 }
65 
66 
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_