/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/Framework/src/ComponentConstructionSentry.cc
27 строк
1 KB
Chris Jones
simple code cleanup
11 июл 2026, 00:02
11 июл 2026, 00:02
eca9917
Код
Авторство
О чём код?
#include "FWCore/Framework/interface/ComponentConstructionSentry.h" #include "FWCore/Framework/interface/ComponentInterfaceHolder.h" #include "FWCore/ServiceRegistry/interface/ActivityRegistry.h" namespace edm { namespace eventsetup { ComponentConstructionSentry::ComponentConstructionSentry(ComponentInterfaceHolder const& iInterfaceHolder, ComponentDescription const& iDescription) : interfaceHolder_(iInterfaceHolder), description_(iDescription) { interfaceHolder_.preConstructionSignal().emit(description_); // Here would be where the construction signal would go } ComponentConstructionSentry::~ComponentConstructionSentry() noexcept(false) { try { interfaceHolder_.postConstructionSignal().emit(description_); } catch (...) { if (succeeded_) { // no exception happened during construction so can rethrow the exception from the post construction signal throw; } } } } // namespace eventsetup } // namespace edm