CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalTBHodoscopeGeometryEP.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: EcalTBHodoscopeGeometryEP
4 // Class: EcalTBHodoscopeGeometryEP
5 //
13 //
14 
15 // $Id: EcalTBHodoscopeGeometryEP.cc,v 1.4 2010/03/26 19:51:48 sunanda Exp $
16 //
17 //
18 
21 
22 #include <iostream>
23 //
24 // constants, enums and typedefs
25 //
26 
27 //
28 // static data member definitions
29 //
30 
31 //
32 // constructors and destructor
33 //
35 {
36  //the following line is needed to tell the framework what
37  // data is being produced
38  setWhatProduced(this,"EcalLaserPnDiode");
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 
60  iRecord.get( cpv );
61 
62  std::cout << "[EcalTBHodoscopeGeometryEP]::Constructing EcalTBHodoscopeGeometry" << std::endl;
63  std::auto_ptr<CaloSubdetectorGeometry> pCaloSubdetectorGeometry(loader_->load(&(*cpv))) ;
64  return pCaloSubdetectorGeometry ;
65 }
66 
67 
std::auto_ptr< CaloSubdetectorGeometry > load(const DDCompactView *cpv)
ReturnType produce(const IdealGeometryRecord &)
EcalTBHodoscopeGeometryLoaderFromDDD * loader_
EcalTBHodoscopeGeometryEP(const edm::ParameterSet &)
std::auto_ptr< CaloSubdetectorGeometry > ReturnType
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
void get(HolderT &iHolder) const
tuple cout
Definition: gather_cfg.py:121