CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
JobReportService.cc
Go to the documentation of this file.
1 
2 // -*- C++ -*-
3 //
4 // Package: Services
5 // Class : JobReport
6 //
7 //
8 // Original Author: Marc Paterno
9 //
10 
14 
15 namespace edm {
16  namespace service {
17 
19 
23 
24  // We don't handle PreProcessEvent, because we have to know *which
25  // input file* was the event read from. Only the InputSource that
26  // did the reading knows this.
27  }
28 
30  // This will be called at end-of-job (obviously).
31  // Dump information to the MessageLogger's JobSummary.
32 
33  // ... not yet implemented ...
34 
35  // Maybe we should have a member function called from both
36  // postEndJob() and frameworkShutdownOnFailure(), so that common
37  // elements are reported through common code.
38 
39  //
40  // Any files that are still open should be flushed to the report
41  //
42  impl()->flushFiles();
43  }
44 
46  // Dump information to the MessageLogger's JobSummary
47  // about the files that aren't already closed,
48  // and whatever summary information is wanted.
49 
50  // Maybe we should have a member function called from both
51  // postEndJob() and frameworkShutdownOnFailure(), so that common
52  // elements are reported through common code.
53  impl()->flushFiles();
54  }
55 
58  desc.setComment("Enables job reports.");
59  descriptions.addDefault(desc);
60  }
61  } // namespace service
62 } // namespace edm
void watchPostEndJob(PostEndJob::slot_type const &iSlot)
void watchJobFailure(JobFailure::slot_type const &iSlot)
convenience function for attaching to signal
edm::propagate_const< std::unique_ptr< JobReportImpl > > & impl()
Definition: JobReport.h:427
void setComment(std::string const &value)
void addDefault(ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
JobReportService(ParameterSet const &ps, ActivityRegistry &reg)