/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWStorage/TFileAdaptor/src/TFileAdaptor.h
71 строка
2 KB
Chris Jones
Moved IOPool/TFileAdaptor to FWStorage sub-system
10 дек 2025, 17:51
10 дек 2025, 17:51
560058c
Код
Авторство
О чём код?
#ifndef IOPool_TFileAdaptor_TFileAdaptor_h #define IOPool_TFileAdaptor_TFileAdaptor_h #include "FWCore/Utilities/interface/propagate_const.h" #include <map> #include <memory> #include <string> #include <vector> class TPluginManager; namespace edm { class ActivityRegistry; class ConfigurationDescriptions; class ParameterSet; } // namespace edm // Driver for configuring ROOT plug-in manager to use TStorageFactoryFile. class TFileAdaptor { public: TFileAdaptor(edm::ParameterSet const& pset, edm::ActivityRegistry& ar); static void fillDescriptions(edm::ConfigurationDescriptions& descriptions); friend class TFileAdaptorUI; private: // Write current Storage statistics on a ostream void termination(void) const; //Called by TFileAdaptorUI void stats(std::ostream& o) const; void statsXML(std::map<std::string, std::string>& data) const; static void addType(TPluginManager* mgr, char const* type, int altType = 0); bool native(char const* proto) const; bool enabled_; bool doStats_; bool enablePrefetching_; std::string cacheHint_; std::string readHint_; std::string tempDir_; double minFree_; std::vector<std::string> native_; unsigned int timeout_; unsigned int debugLevel_; }; /* * wrapper to bind TFileAdaptor to root, python etc * loading IOPoolTFileAdaptor library and instantiating * TFileAdaptorUI will make root to use StorageAdaptor for I/O instead * of its own plugins */ class TFileAdaptorUI { public: TFileAdaptorUI(); ~TFileAdaptorUI(); // print current Storage statistics on cout void stats() const; private: edm::propagate_const<std::shared_ptr<TFileAdaptor>> me; }; #endif