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.2 2009/01/29 22:29:34 heltsley 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  std::auto_ptr<CaloSubdetectorGeometry> pCaloSubdetectorGeometry(loader_->load()) ;
59 
60  return pCaloSubdetectorGeometry ;
61 }
62 
63 
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()
CaloTowerHardcodeGeometryEP(const edm::ParameterSet &)
CaloTowerHardcodeGeometryLoader * loader_