CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

EcalTBHodoscopeGeometryEP Class Reference

#include <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 26 of file EcalTBHodoscopeGeometryEP.h.


Member Typedef Documentation

Definition at line 31 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().

{
   //the following line is needed to tell the framework what
   // data is being produced
  setWhatProduced(this,"EcalLaserPnDiode");
  //now do what ever other initialization is needed
  loader_=new EcalTBHodoscopeGeometryLoaderFromDDD(); 
}
EcalTBHodoscopeGeometryEP::~EcalTBHodoscopeGeometryEP ( )

Definition at line 44 of file EcalTBHodoscopeGeometryEP.cc.

References loader_.

{ 
  delete loader_;
}

Member Function Documentation

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

Definition at line 56 of file EcalTBHodoscopeGeometryEP.cc.

References gather_cfg::cout, edm::eventsetup::EventSetupRecord::get(), EcalTBHodoscopeGeometryLoaderFromDDD::load(), and loader_.

{

   edm::ESTransientHandle<DDCompactView> cpv;
   iRecord.get( cpv );
   
   std::cout << "[EcalTBHodoscopeGeometryEP]::Constructing EcalTBHodoscopeGeometry" <<  std::endl;
   std::auto_ptr<CaloSubdetectorGeometry> pCaloSubdetectorGeometry(loader_->load(&(*cpv))) ;
   return pCaloSubdetectorGeometry ;
}

Member Data Documentation