/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Geometry/ForwardGeometry/plugins/CastorHardcodeGeometryEP.cc
26 строк
862 B
Cms Build
Clang-Format
11 май 2019, 12:09
11 май 2019, 12:09
02cea70
Код
Авторство
О чём код?
#include "Geometry/ForwardGeometry/interface/CastorGeometry.h" #include "Geometry/ForwardGeometry/plugins/CastorHardcodeGeometryEP.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" CastorHardcodeGeometryEP::CastorHardcodeGeometryEP(const edm::ParameterSet& iConfig) { //the following line is needed to tell the framework what // data is being produced setWhatProduced(this, CastorGeometry::producerTag()); loader_ = nullptr; } CastorHardcodeGeometryEP::~CastorHardcodeGeometryEP() { if (loader_) delete loader_; } // // member functions // // ------------ method called to produce the data ------------ CastorHardcodeGeometryEP::ReturnType CastorHardcodeGeometryEP::produce(const CastorGeometryRecord& iRecord) { loader_ = new CastorHardcodeGeometryLoader(); return std::unique_ptr<CaloSubdetectorGeometry>(loader_->load()); }