/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondTools/DT/interface/DTKeyedConfigHandler.h
86 строк
2 KB
Christopher Jones
Make cond::persistency::KeyList const thread-safe
15 ноя 2019, 20:32
15 ноя 2019, 20:32
40438d3
Код
Авторство
О чём код?
#ifndef DTKeyedConfigHandler_H #define DTKeyedConfigHandler_H /** \class DTKeyedConfigHandler * * Description: * * * $Date: 2010/05/14 11:43:08 $ * $Revision: 1.2 $ * \author Paolo Ronchese INFN Padova * */ //---------------------- // Base Class Headers -- //---------------------- #include "CondCore/PopCon/interface/PopConSourceHandler.h" //------------------------------------ // Collaborating Class Declarations -- //------------------------------------ #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "CondCore/CondDB/interface/ConnectionPool.h" #include "CondFormats/DTObjects/interface/DTCCBConfig.h" #include <memory> #include <string> namespace coral { class ISessionProxy; } namespace cond { namespace persistency { class KeyList; } } // namespace cond //--------------- // C++ Headers -- //--------------- // --------------------- // -- Class Interface -- // --------------------- class DTKeyedConfigHandler : public popcon::PopConSourceHandler<DTCCBConfig> { public: /** Constructor */ DTKeyedConfigHandler(const edm::ParameterSet& ps); /** Destructor */ ~DTKeyedConfigHandler() override; /** Operations */ /// void getNewObjects() override; std::string id() const override; void setList(const cond::persistency::KeyList* list); private: bool copyData; int minBrickId; int maxBrickId; int minRunId; int maxRunId; std::string dataTag; std::string onlineConnect; std::string onlineAuthentication; int onlineAuthSys; std::string brickContainer; DTCCBConfig* ccbConfig; cond::persistency::ConnectionPool connection; std::shared_ptr<coral::ISessionProxy> isession; void chkConfigList(); static bool sameConfigList(const std::vector<DTConfigKey>& cfgl, const std::vector<DTConfigKey>& cfgr); const cond::persistency::KeyList* keyList = nullptr; }; #endif // DTKeyedConfigHandler_H