/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimCalorimetry/CastorSim/interface/CastorCoderFactory.h
24 строки
610 B
Sunanda
Reaarange the files to remove .h files from SimCalorimetry/CastorSim/src
18 авг 2021, 22:24
18 авг 2021, 22:24
5dd73cf
Код
Авторство
О чём код?
#ifndef CastorSim_CastorCoderFactory_h #define CastorSim_CastorCoderFactory_h #include "CalibFormats/CastorObjects/interface/CastorCoder.h" #include "CalibFormats/CastorObjects/interface/CastorDbService.h" #include <memory> class CastorCoderFactory { public: enum CoderType { DB, NOMINAL }; CastorCoderFactory(CoderType coderType); void setDbService(const CastorDbService *service) { theDbService = service; } /// user gets control of the pointer std::unique_ptr<CastorCoder> coder(const DetId &detId) const; private: CoderType theCoderType; const CastorDbService *theDbService; }; #endif