Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:08:08

0001 #include "Geometry/ForwardGeometry/interface/CastorGeometry.h"
0002 #include "Geometry/ForwardGeometry/plugins/CastorHardcodeGeometryEP.h"
0003 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0004 
0005 CastorHardcodeGeometryEP::CastorHardcodeGeometryEP(const edm::ParameterSet& iConfig) {
0006   //the following line is needed to tell the framework what
0007   // data is being produced
0008   setWhatProduced(this, CastorGeometry::producerTag());
0009 
0010   loader_ = nullptr;
0011 }
0012 
0013 CastorHardcodeGeometryEP::~CastorHardcodeGeometryEP() {
0014   if (loader_)
0015     delete loader_;
0016 }
0017 
0018 //
0019 // member functions
0020 //
0021 
0022 // ------------ method called to produce the data  ------------
0023 CastorHardcodeGeometryEP::ReturnType CastorHardcodeGeometryEP::produce(const CastorGeometryRecord& iRecord) {
0024   loader_ = new CastorHardcodeGeometryLoader();
0025   return std::unique_ptr<CaloSubdetectorGeometry>(loader_->load());
0026 }