CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/Geometry/ForwardGeometry/plugins/ZdcHardcodeGeometryEP.cc

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // Package:    ZdcHardcodeGeometryEP
00004 // Class:      ZdcHardcodeGeometryEP
00005 // 
00013 //
00014 // Original Author:  Edmundo Garcia
00015 //         Created:  Mon Aug  6 12:33:33 CDT 2007
00016 // $Id: ZdcHardcodeGeometryEP.cc,v 1.4 2009/01/23 18:43:40 heltsley Exp $
00017 //
00018 #include "Geometry/Records/interface/ZDCGeometryRecord.h"
00019 #include "Geometry/ForwardGeometry/plugins/ZdcHardcodeGeometryEP.h"
00020 #include "Geometry/ForwardGeometry/interface/ZdcGeometry.h"
00021 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00022 
00023 
00024 ZdcHardcodeGeometryEP::ZdcHardcodeGeometryEP( const edm::ParameterSet& ps ) :
00025    m_loader   (0),
00026    m_topology () ,
00027    m_applyAlignment ( ps.getUntrackedParameter<bool>("applyAlignment", false) )
00028 {
00029    //the following line is needed to tell the framework what
00030    // data is being produced
00031    setWhatProduced( this,
00032                     ZdcGeometry::producerTag() );
00033 
00034 // disable
00035 //   setWhatProduced( this,
00036 //                  &ZdcHardcodeGeometryEP::produceIdeal,
00037 //                  edm::es::Label( "ZDC" ) );
00038 }
00039 
00040 
00041 ZdcHardcodeGeometryEP::~ZdcHardcodeGeometryEP()
00042 { 
00043    delete m_loader ;
00044 }
00045 
00046 
00047 //
00048 // member functions
00049 //
00050 
00051 // ------------ method called to produce the data  ------------
00052 
00053 ZdcHardcodeGeometryEP::ReturnType
00054 ZdcHardcodeGeometryEP::produce( const ZDCGeometryRecord& iRecord )
00055 {
00056 //   ZdcHardcodeGeometryLoader loader ( m_topology ) ;
00057    m_loader = new ZdcHardcodeGeometryLoader( m_topology ) ;
00058 
00059    ReturnType ptr ( m_loader->load() ) ;
00060 
00061    return ptr ;
00062 }
00063 
00064