CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 
21  JobReport() {
22 
25 
26  // We don't handle PreProcessEvent, because we have to know *which
27  // input file* was the event read from. Only the InputSource that
28  // did the reading knows this.
29  }
30 
31  void
33  // This will be called at end-of-job (obviously).
34  // Dump information to the MessageLogger's JobSummary.
35 
36  // ... not yet implemented ...
37 
38  // Maybe we should have a member function called from both
39  // postEndJob() and frameworkShutdownOnFailure(), so that common
40  // elements are reported through common code.
41 
42  //
43  // Any files that are still open should be flushed to the report
44  //
45  impl()->flushFiles();
46  }
47 
48  void
50  // Dump information to the MessageLogger's JobSummary
51  // about the files that aren't already closed,
52  // and whatever summary information is wanted.
53 
54  // Maybe we should have a member function called from both
55  // postEndJob() and frameworkShutdownOnFailure(), so that common
56  // elements are reported through common code.
57  impl()->flushFiles();
58  }
59 
60  void
63  desc.setComment("Enables job reports.");
64  descriptions.addDefault(desc);
65  }
66  } // namespace service
67 } //namspace edm
void watchPostEndJob(PostEndJob::slot_type const &iSlot)
void watchJobFailure(JobFailure::slot_type const &iSlot)
convenience function for attaching to signal
void setComment(std::string const &value)
void addDefault(ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
JobReportService(ParameterSet const &ps, ActivityRegistry &reg)
boost::scoped_ptr< JobReportImpl > & impl()
Definition: JobReport.h:433