test
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 //
16 //
17 
20 
21 #include <iostream>
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,"EcalLaserPnDiode");
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 
59  iRecord.get( cpv );
60 
61  std::cout << "[EcalTBHodoscopeGeometryEP]::Constructing EcalTBHodoscopeGeometry" << std::endl;
62  std::auto_ptr<CaloSubdetectorGeometry> pCaloSubdetectorGeometry(loader_->load(&(*cpv))) ;
63  return pCaloSubdetectorGeometry ;
64 }
65 
66 
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