CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions
edm::service::JobReportService Class Reference

#include <JobReportService.h>

Inheritance diagram for edm::service::JobReportService:
edm::JobReport

Public Member Functions

void frameworkShutdownOnFailure ()
 
 JobReportService (ParameterSet const &ps, ActivityRegistry &reg)
 
void postEndJob ()
 
 ~JobReportService ()
 
- Public Member Functions inherited from edm::JobReport
std::string dumpFiles (void)
 debug/test util More...
 
void eventReadFromFile (InputType inputType, Token fileToken)
 
void eventWrittenToFile (Token fileToken, RunNumber_t run, EventNumber_t event)
 
void inputFileClosed (InputType inputType, Token fileToken)
 
Token inputFileOpened (std::string const &physicalFileName, std::string const &logicalFileName, std::string const &catalog, std::string const &inputType, std::string const &inputSourceClassName, std::string const &moduleLabel, std::string const &guid, std::vector< std::string > const &branchNames)
 
 JobReport ()
 
 JobReport (std::ostream *outputStream)
 
 JobReport (JobReport const &)=delete
 
JobReportoperator= (JobReport const &)=delete
 
void outputFileClosed (Token fileToken)
 
Token outputFileOpened (std::string const &physicalFileName, std::string const &logicalFileName, std::string const &catalog, std::string const &outputModuleClassName, std::string const &moduleLabel, std::string const &guid, std::string const &dataType, std::string const &branchHash, std::vector< std::string > const &branchNames)
 
void reportAnalysisFile (std::string const &fileName, std::map< std::string, std::string > const &fileData)
 
void reportDataType (Token fileToken, std::string const &dataType)
 
void reportError (std::string const &shortDesc, std::string const &longDesc, int const &exitCode)
 
void reportFallbackAttempt (std::string const &pfn, std::string const &lfn, std::string const &err)
 
void reportFastClonedBranches (std::set< std::string > const &fastClonedBranches, long long nEvents)
 Inform the job report that branches have been fast Cloned. More...
 
void reportFastCopyingStatus (Token t, std::string const &inputFileName, bool fastCopying)
 
void reportInputLumiSection (unsigned int run, unsigned int lumiSectId)
 
void reportInputRunNumber (unsigned int run)
 
void reportLumiSection (JobReport::Token token, unsigned int run, unsigned int lumiSectId, unsigned long nEvents=0)
 
void reportMemoryInfo (std::vector< std::string > const &memoryData)
 
void reportMessageInfo (std::map< std::string, double > const &messageData)
 
void reportPerformanceForModule (std::string const &metricClass, std::string const &moduleName, std::map< std::string, std::string > const &metrics)
 
void reportPerformanceSummary (std::string const &metricClass, std::map< std::string, std::string > const &metrics)
 
void reportRandomStateFile (std::string const &name)
 
void reportReadBranch (InputType inputType, std::string const &branchName)
 Inform the job report that a branch has been read. More...
 
void reportReadBranches ()
 
void reportRunNumber (JobReport::Token token, unsigned int run)
 
void reportSkippedEvent (RunNumber_t run, EventNumber_t event)
 
void reportSkippedFile (std::string const &pfn, std::string const &lfn)
 
 ~JobReport ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 

Additional Inherited Members

- Public Types inherited from edm::JobReport
typedef unsigned int RunNumber
 
typedef std::size_t Token
 
- Protected Member Functions inherited from edm::JobReport
edm::propagate_const< std::unique_ptr< JobReportImpl > > & impl ()
 

Detailed Description

Definition at line 34 of file JobReportService.h.

Constructor & Destructor Documentation

JobReportService::JobReportService ( ParameterSet const &  ps,
ActivityRegistry reg 
)

Definition at line 20 of file JobReportService.cc.

References frameworkShutdownOnFailure(), postEndJob(), edm::ActivityRegistry::watchJobFailure(), and edm::ActivityRegistry::watchPostEndJob().

20  : JobReport() {
21  reg.watchPostEndJob(this, &JobReportService::postEndJob);
22  reg.watchJobFailure(this, &JobReportService::frameworkShutdownOnFailure);
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  }
JobReportService::~JobReportService ( )

Definition at line 18 of file JobReportService.cc.

18 {}

Member Function Documentation

void JobReportService::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 56 of file JobReportService.cc.

References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::setComment().

56  {
58  desc.setComment("Enables job reports.");
59  descriptions.addDefault(desc);
60  }
void addDefault(ParameterSetDescription const &psetDescription)
void JobReportService::frameworkShutdownOnFailure ( )

Definition at line 45 of file JobReportService.cc.

References edm::JobReport::impl().

Referenced by JobReportService().

45  {
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  }
edm::propagate_const< std::unique_ptr< JobReportImpl > > & impl()
Definition: JobReport.h:427
void JobReportService::postEndJob ( )

Definition at line 29 of file JobReportService.cc.

References edm::JobReport::impl().

Referenced by JobReportService().

29  {
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  }
edm::propagate_const< std::unique_ptr< JobReportImpl > > & impl()
Definition: JobReport.h:427