CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

CastorHardcodeGeometryEP Class Reference

#include <CastorHardcodeGeometryEP.h>

Inheritance diagram for CastorHardcodeGeometryEP:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Types

typedef std::auto_ptr
< CaloSubdetectorGeometry
ReturnType

Public Member Functions

 CastorHardcodeGeometryEP (const edm::ParameterSet &)
ReturnType produce (const CastorGeometryRecord &)
 ~CastorHardcodeGeometryEP ()

Private Attributes

CastorHardcodeGeometryLoaderloader_

Detailed Description

Definition at line 20 of file CastorHardcodeGeometryEP.h.


Member Typedef Documentation

Definition at line 25 of file CastorHardcodeGeometryEP.h.


Constructor & Destructor Documentation

CastorHardcodeGeometryEP::CastorHardcodeGeometryEP ( const edm::ParameterSet iConfig)

Definition at line 6 of file CastorHardcodeGeometryEP.cc.

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

{
   //the following line is needed to tell the framework what
   // data is being produced
   setWhatProduced( this, CastorGeometry::producerTag() );

   loader_=0;
}
CastorHardcodeGeometryEP::~CastorHardcodeGeometryEP ( )

Definition at line 16 of file CastorHardcodeGeometryEP.cc.

References loader_.

{ 
  if (loader_) delete loader_;
}

Member Function Documentation

CastorHardcodeGeometryEP::ReturnType CastorHardcodeGeometryEP::produce ( const CastorGeometryRecord iRecord)

Definition at line 28 of file CastorHardcodeGeometryEP.cc.

References CastorHardcodeGeometryLoader::load(), and loader_.

{
   loader_=new CastorHardcodeGeometryLoader();
   std::auto_ptr<CaloSubdetectorGeometry> pCaloSubdetectorGeometry(loader_->load()) ;

   return pCaloSubdetectorGeometry ;
}

Member Data Documentation