Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 13:02:58

0001 // -*- C++ -*-
0002 //
0003 // Package:    ZdcHardcodeGeometryEP
0004 // Class:      ZdcHardcodeGeometryEP
0005 //
0006 /**\class ZdcHardcodeGeometryEP ZdcHardcodeGeometryEP.h
0007    
0008     Description: <one line class summary>
0009 
0010     Implementation:
0011     <Notes on implementation>
0012 */
0013 //
0014 // Original Author:  Edmundo Garcia
0015 //         Created:  Mon Aug  6 12:33:33 CDT 2007
0016 //
0017 #include "Geometry/Records/interface/ZDCGeometryRecord.h"
0018 #include "Geometry/ForwardGeometry/plugins/ZdcHardcodeGeometryEP.h"
0019 #include "Geometry/ForwardGeometry/interface/ZdcGeometry.h"
0020 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0021 
0022 ZdcHardcodeGeometryEP::ZdcHardcodeGeometryEP(const edm::ParameterSet& ps)
0023     : m_loader(nullptr), m_topology(), m_applyAlignment(ps.getUntrackedParameter<bool>("applyAlignment", false)) {
0024   //the following line is needed to tell the framework what
0025   // data is being produced
0026   setWhatProduced(this, ZdcGeometry::producerTag());
0027 
0028   // disable
0029   //   setWhatProduced( this,
0030   //            &ZdcHardcodeGeometryEP::produceIdeal,
0031   //            edm::es::Label( "ZDC" ) );
0032 }
0033 
0034 ZdcHardcodeGeometryEP::~ZdcHardcodeGeometryEP() { delete m_loader; }
0035 
0036 //
0037 // member functions
0038 //
0039 
0040 // ------------ method called to produce the data  ------------
0041 
0042 ZdcHardcodeGeometryEP::ReturnType ZdcHardcodeGeometryEP::produce(const ZDCGeometryRecord& iRecord) {
0043   //   ZdcHardcodeGeometryLoader loader ( m_topology ) ;
0044   m_loader = new ZdcHardcodeGeometryLoader(m_topology);
0045 
0046   return ReturnType(m_loader->load());
0047 }