/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/Framework/src/SynchronousEventSetupsController.h
64 строки
2 KB
Chris Jones
EventSetupsController now handles Finders
11 июл 2026, 00:04
11 июл 2026, 00:04
0001a60
Код
Авторство
О чём код?
#ifndef FWCore_Framework_SynchronousEventSetupsController_h #define FWCore_Framework_SynchronousEventSetupsController_h // -*- C++ -*- // // Package: Framework // Class : SynchronousEventSetupsController // /** \class edm::eventsetup::SynchronousEventSetupsController Description: Manages a group of EventSetups which can share components. Usage: Useful for unit testing parts of the EventSetup system */ // // Original Authors: Chris Jones, David Dagenhart // Created: Wed Jan 12 14:30:42 CST 2011 // #include "FWCore/Framework/interface/EventSetupsController.h" #include "oneapi/tbb/task_group.h" #include "oneapi/tbb/global_control.h" namespace edm { namespace eventsetup { class SynchronousEventSetupsController { public: SynchronousEventSetupsController(); ~SynchronousEventSetupsController(); SynchronousEventSetupsController(SynchronousEventSetupsController const&) = delete; SynchronousEventSetupsController const& operator=(SynchronousEventSetupsController const&) = delete; SynchronousEventSetupsController(SynchronousEventSetupsController&&) = delete; SynchronousEventSetupsController const& operator=(SynchronousEventSetupsController&&) = delete; std::shared_ptr<EventSetupProvider> makeProvider(ParameterSet&, ActivityRegistry*, ParameterSet const* eventSetupPset = nullptr); void addExtra(std::shared_ptr<EventSetupRecordIntervalFinder> iFinder) { controller_.addExtra(iFinder); } void addExtra(std::shared_ptr<eventsetup::ESProductResolverProvider> iProvider) { controller_.addExtra(iProvider); } // Version to use when IOVs are not allowed to run concurrently void eventSetupForInstance(IOVSyncValue const&); void finishConfiguration() { controller_.finishConfiguration(); } void resetRecordPlusDependentRecords(EventSetupRecordKey const& recordKey) { controller_.resetRecordPlusDependentRecords(recordKey); } private: oneapi::tbb::global_control globalControl_; oneapi::tbb::task_group taskGroup_; EventSetupsController controller_; }; } // namespace eventsetup } // namespace edm #endif