/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimGeneral/HepPDTESSource/interface/HepPDTESSource.h
46 строк
1 KB
Christopher Jones
Move to EventSetupRecordInfiniteIntervalFinder
16 июн 2026, 21:21
16 июн 2026, 21:21
419a1ec
Код
Авторство
О чём код?
#ifndef HepPDTESSource_h #define HepPDTESSource_h // -*- C++ -*- // // Package: HepPDTESSource // Class: HepPDTESSource // /**\class HepPDTESSource HepPDTESSource.h PhysicsTools/HepPDTESSource/interface/HepPDTESSource.h Description: HepPDT particle data table ESSource Implementation: <Notes on implementation> */ // // Original Author: Luca Lista // Created: Fri Mar 10 15:58:18 CET 2006 // #include "FWCore/Framework/interface/ESProducer.h" #include "FWCore/Framework/interface/EventSetupRecordInfiniteIntervalFinder.h" #include "FWCore/Framework/interface/SourceFactory.h" #include "HepPDT/ParticleDataTable.hh" #include "HepPDT/TableBuilder.hh" #include "SimGeneral/HepPDTRecord/interface/PDTRecord.h" #include <climits> #include <fstream> #include <memory> class HepPDTESSource : public edm::ESProducer, public edm::EventSetupRecordInfiniteIntervalFinder { public: /// constructor from parameter set HepPDTESSource(const edm::ParameterSet &); /// destructor ~HepPDTESSource() override; /// define the particle data table type typedef HepPDT::ParticleDataTable PDT; /// define the return type typedef std::unique_ptr<PDT> ReturnType; /// return the particle table ReturnType produce(const PDTRecord &); private: edm::FileInPath pdtFileName; }; #endif