/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FWCore/Services/src/JobReportService.cc
61 строка
2 KB
W. David Dagenhart
Changes from scram build code-format-all
03 май 2019, 18:48
03 май 2019, 18:48
22c28dc
Код
Авторство
О чём код?
// -*- C++ -*- // // Package: Services // Class : JobReport // // // Original Author: Marc Paterno // #include "FWCore/Services/src/JobReportService.h" #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h" #include "FWCore/ParameterSet/interface/ParameterSetDescription.h" namespace edm { namespace service { JobReportService::~JobReportService() {} JobReportService::JobReportService(ParameterSet const&, ActivityRegistry& reg) : JobReport() { reg.watchPostEndJob(this, &JobReportService::postEndJob); reg.watchJobFailure(this, &JobReportService::frameworkShutdownOnFailure); // We don't handle PreProcessEvent, because we have to know *which // input file* was the event read from. Only the InputSource that // did the reading knows this. } void JobReportService::postEndJob() { // This will be called at end-of-job (obviously). // Dump information to the MessageLogger's JobSummary. // ... not yet implemented ... // Maybe we should have a member function called from both // postEndJob() and frameworkShutdownOnFailure(), so that common // elements are reported through common code. // // Any files that are still open should be flushed to the report // impl()->flushFiles(); } void JobReportService::frameworkShutdownOnFailure() { // Dump information to the MessageLogger's JobSummary // about the files that aren't already closed, // and whatever summary information is wanted. // Maybe we should have a member function called from both // postEndJob() and frameworkShutdownOnFailure(), so that common // elements are reported through common code. impl()->flushFiles(); } void JobReportService::fillDescriptions(ConfigurationDescriptions& descriptions) { ParameterSetDescription desc; desc.setComment("Enables job reports."); descriptions.addDefault(desc); } } // namespace service } // namespace edm