CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/Geometry/ForwardGeometry/plugins/CastorHardcodeGeometryEP.cc

Go to the documentation of this file.
00001 #include "Geometry/ForwardGeometry/interface/CastorGeometry.h"
00002 #include "Geometry/ForwardGeometry/plugins/CastorHardcodeGeometryEP.h"
00003 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00004 
00005 
00006 CastorHardcodeGeometryEP::CastorHardcodeGeometryEP(const edm::ParameterSet& iConfig)
00007 {
00008    //the following line is needed to tell the framework what
00009    // data is being produced
00010    setWhatProduced( this, CastorGeometry::producerTag() );
00011 
00012    loader_=0;
00013 }
00014 
00015 
00016 CastorHardcodeGeometryEP::~CastorHardcodeGeometryEP()
00017 { 
00018   if (loader_) delete loader_;
00019 }
00020 
00021 
00022 //
00023 // member functions
00024 //
00025 
00026 // ------------ method called to produce the data  ------------
00027 CastorHardcodeGeometryEP::ReturnType
00028 CastorHardcodeGeometryEP::produce(const CastorGeometryRecord& iRecord)
00029 {
00030    loader_=new CastorHardcodeGeometryLoader();
00031    std::auto_ptr<CaloSubdetectorGeometry> pCaloSubdetectorGeometry(loader_->load()) ;
00032 
00033    return pCaloSubdetectorGeometry ;
00034 }
00035 
00036