CMS 3D CMS Logo

EcalTBHodoscopeGeometryEP Class Reference

Description: <one line="" class="" summary>="">. More...

#include <Geometry/EcalTestBeam/plugins/EcalTBHodoscopeGeometryEP.h>

Inheritance diagram for EcalTBHodoscopeGeometryEP:

edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Types

typedef std::auto_ptr
< CaloSubdetectorGeometry
ReturnType

Public Member Functions

 EcalTBHodoscopeGeometryEP (const edm::ParameterSet &)
ReturnType produce (const IdealGeometryRecord &)
 ~EcalTBHodoscopeGeometryEP ()

Private Attributes

EcalTBHodoscopeGeometryLoaderFromDDDloader_


Detailed Description

Description: <one line="" class="" summary>="">.

Implementation: <Notes on="" implementation>="">

Definition at line 25 of file EcalTBHodoscopeGeometryEP.h.


Member Typedef Documentation

typedef std::auto_ptr<CaloSubdetectorGeometry> EcalTBHodoscopeGeometryEP::ReturnType

Definition at line 30 of file EcalTBHodoscopeGeometryEP.h.


Constructor & Destructor Documentation

EcalTBHodoscopeGeometryEP::EcalTBHodoscopeGeometryEP ( const edm::ParameterSet iConfig  ) 

Definition at line 34 of file EcalTBHodoscopeGeometryEP.cc.

References loader_, and edm::ESProducer::setWhatProduced().

00035 {
00036    //the following line is needed to tell the framework what
00037    // data is being produced
00038   setWhatProduced(this,"EcalLaserPnDiode");
00039   //now do what ever other initialization is needed
00040   loader_=new EcalTBHodoscopeGeometryLoaderFromDDD(); 
00041 }

EcalTBHodoscopeGeometryEP::~EcalTBHodoscopeGeometryEP (  ) 

Definition at line 44 of file EcalTBHodoscopeGeometryEP.cc.

References loader_.

00045 { 
00046   delete loader_;
00047 }


Member Function Documentation

EcalTBHodoscopeGeometryEP::ReturnType EcalTBHodoscopeGeometryEP::produce ( const IdealGeometryRecord iRecord  ) 

Definition at line 56 of file EcalTBHodoscopeGeometryEP.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), edm::eventsetup::EventSetupRecordImplementation< T >::get(), EcalTBHodoscopeGeometryLoaderFromDDD::load(), and loader_.

00057 {
00058    using namespace edm::es;
00059 
00060    edm::ESHandle<DDCompactView> cpv;
00061    iRecord.get( cpv );
00062    
00063    std::cout << "[EcalTBHodoscopeGeometryEP]::Constructing EcalTBHodoscopeGeometry" <<  std::endl;
00064    std::auto_ptr<CaloSubdetectorGeometry> pCaloSubdetectorGeometry(loader_->load(&(*cpv))) ;
00065    return pCaloSubdetectorGeometry ;
00066 }


Member Data Documentation

EcalTBHodoscopeGeometryLoaderFromDDD* EcalTBHodoscopeGeometryEP::loader_ [private]

Definition at line 37 of file EcalTBHodoscopeGeometryEP.h.

Referenced by EcalTBHodoscopeGeometryEP(), produce(), and ~EcalTBHodoscopeGeometryEP().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:19:57 2009 for CMSSW by  doxygen 1.5.4