CMS 3D CMS Logo

Classes | Public Types | Public Member Functions | Protected Member Functions | Private Attributes

edm::JobReport Class Reference

#include <JobReport.h>

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

List of all members.

Classes

struct  InputFile
struct  JobReportImpl
struct  LumiSectionReport
struct  OutputFile
struct  RunReport

Public Types

typedef unsigned int RunNumber
typedef std::size_t Token

Public Member Functions

void childAfterFork (std::string const &jobReportFile, unsigned int childIndex, unsigned int numberOfChildren)
 New output file for child.
std::string dumpFiles (void)
 debug/test util
void eventReadFromFile (Token fileToken, unsigned int run, unsigned int event)
void eventWrittenToFile (Token fileToken, unsigned int run, unsigned int event)
void inputFileClosed (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)
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 overrideContributingInputs (Token outputToken, std::vector< Token > const &inputTokens)
void overrideEventsRead (Token fileToken, int const eventsRead)
void overrideEventsWritten (Token fileToken, int const eventsWritten)
void parentAfterFork (std::string const &jobReportFile)
void parentBeforeFork (std::string const &jobReportFile, unsigned int numberOfChildren)
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)
void reportError (std::string const &shortDesc, std::string const &longDesc, int const &exitCode)
void reportFastCopyingStatus (Token t, std::string const &inputFileName, bool fastCopying)
void reportGeneratorInfo (std::string const &name, std::string const &value)
void reportInputLumiSection (unsigned int run, unsigned int lumiSectId)
void reportInputRunNumber (unsigned int run)
void reportLumiSection (unsigned int run, unsigned int lumiSectId)
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 reportPSetHash (std::string const &hashValue)
void reportRandomStateFile (std::string const &name)
void reportRunNumber (unsigned int run)
void reportSkippedEvent (unsigned int run, unsigned int event)
void reportSkippedFile (std::string const &pfn, std::string const &lfn)
 ~JobReport ()

Protected Member Functions

boost::scoped_ptr
< JobReportImpl > & 
impl ()

Private Attributes

boost::scoped_ptr< JobReportImplimpl_

Detailed Description

Definition at line 41 of file JobReport.h.


Member Typedef Documentation

typedef unsigned int edm::JobReport::RunNumber

Definition at line 43 of file JobReport.h.

typedef std::size_t edm::JobReport::Token

Definition at line 44 of file JobReport.h.


Constructor & Destructor Documentation

JobReport::JobReport ( )

Definition at line 404 of file JobReport.cc.

                         :
      impl_(new JobReportImpl(0)) {
    }
JobReport::JobReport ( std::ostream *  outputStream)

Definition at line 408 of file JobReport.cc.

References impl_.

                                             : impl_(new JobReportImpl(iOstream)) {
      if(impl_->ost_) {
        *(impl_->ost_) << "<FrameworkJobReport>\n";
      }
    }
JobReport::~JobReport ( )

Definition at line 396 of file JobReport.cc.

References impl_.

                        {
    impl_->writeGeneratorInfo();
    impl_->flushFiles();
    if(impl_->ost_) {
      *(impl_->ost_) << "</FrameworkJobReport>\n" << std::flush;
    }
  }

Member Function Documentation

void JobReport::childAfterFork ( std::string const &  jobReportFile,
unsigned int  childIndex,
unsigned int  numberOfChildren 
)

New output file for child.

Definition at line 460 of file JobReport.cc.

References impl_, and L1TEmulatorMonitor_cff::p.

                                                                                                                    {
      std::ofstream* p = dynamic_cast<std::ofstream *>(impl_->ost_);
      if (!p) return;
      std::ostringstream ofilename;
      toFileName(jobReportFile, childIndex, numberOfChildren, ofilename);
      p->open(ofilename.str().c_str());
      *p << "<FrameworkJobReport>\n";
    }
std::string JobReport::dumpFiles ( void  )

debug/test util

Definition at line 805 of file JobReport.cc.

References f, edm::findOrDefault(), impl_, edm::JobReport::InputFile::logicalFileName, runTheMatrix::msg, and edm::JobReport::InputFile::physicalFileName.

                           {
    std::ostringstream msg;

    typedef std::vector<JobReport::OutputFile>::iterator iterator;

    for (iterator f = impl_->outputFiles_.begin(), fEnd = impl_->outputFiles_.end(); f != fEnd; ++f) {

      msg << "\n<File>";
      msg << *f;

      msg << "\n<LumiSections>";
      //typedef std::vector<JobReport::LumiSectionReport>::iterator Iter;
      //for (Iter iLumi = f->lumiSections.begin(),
      //     iLumiEnd = f->lumiSections.end();
      //     iLumi != iLumiEnd;  ++iLumi) {
      //  msg << *iLumi;
      //}
      //msg << "\n</LumiSections>\n";
      msg << "\n<Inputs>";
      typedef std::vector<JobReport::Token>::iterator iterator;
      for (iterator iInput = f->contributingInputs.begin(),
           iInputEnd = f->contributingInputs.end();
           iInput != iInputEnd; ++iInput) {
        JobReport::InputFile inpFile = impl_->inputFiles_[*iInput];
        msg << "\n<Input>";
        msg << "\n  <LFN>" << TiXmlText(inpFile.logicalFileName) << "</LFN>";
        msg << "\n  <PFN>" << TiXmlText(inpFile.physicalFileName) << "</PFN>";
        msg << "\n  <FastCopying>" << findOrDefault(f->fastCopyingInputs, inpFile.physicalFileName) << "</FastCopying>";
        msg << "\n</Input>";
      }
      msg << "\n</Inputs>";
      msg << "\n</File>";

    }
    return msg.str();
  }
void JobReport::eventReadFromFile ( JobReport::Token  fileToken,
unsigned int  run,
unsigned int  event 
)

Report that the event with the given id has been read from the file identified by the given Token.

Definition at line 504 of file JobReport.cc.

References f, impl_, and edm::JobReport::InputFile::numEventsRead.

                                                                                         {
      JobReport::InputFile& f = impl_->getInputFileForToken(fileToken);
      ++f.numEventsRead;
      //f.runsSeen.insert(run);
    }
void JobReport::eventWrittenToFile ( JobReport::Token  fileToken,
unsigned int  run,
unsigned int  event 
)

Report that the event with the given id has been written to the file identified by the given Token.

Definition at line 560 of file JobReport.cc.

References f, impl_, and edm::JobReport::OutputFile::numEventsWritten.

                                                                                          {
      JobReport::OutputFile& f = impl_->getOutputFileForToken(fileToken);
      ++f.numEventsWritten;
      //f.runsSeen.insert(run);
    }
boost::scoped_ptr<JobReportImpl>& edm::JobReport::impl ( ) [inline, protected]
void JobReport::inputFileClosed ( JobReport::Token  fileToken)

Report that the input file identified by the given Token has been closed. An exception will be thrown if the given Token was not obtained from inputFileOpened.

Definition at line 517 of file JobReport.cc.

References f, edm::JobReport::InputFile::fileHasBeenClosed, and impl_.

                                                       {
      JobReport::InputFile& f = impl_->getInputFileForToken(fileToken);
      // Dump information to the MessageLogger's JobSummary
      // about this file.
      // After setting the file to 'closed', we will no longer be able
      // to reference it by ID.
      f.fileHasBeenClosed = true;
      impl_->writeInputFile(f);
    }
JobReport::Token JobReport::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 
)

Report that an input file has been opened. The returned Token should be used for later identification of this file.

Definition at line 470 of file JobReport.cc.

References edm::JobReport::InputFile::branchNames, edm::JobReport::InputFile::catalog, validate_alignment_devdb10_cfg::catalog, edm::JobReport::InputFile::fileHasBeenClosed, edm::JobReport::InputFile::guid, impl_, edm::JobReport::InputFile::inputSourceClassName, edm::JobReport::InputFile::inputType, edm::JobReport::InputFile::logicalFileName, moduleLabel(), edm::JobReport::InputFile::moduleLabel, edm::JobReport::InputFile::numEventsRead, edm::JobReport::InputFile::physicalFileName, and csvReporter::r.

                                                                        {
      // Do we have to worry about thread safety here? Or is this
      // service used in a way to make this safe?
      impl_->inputFiles_.push_back(JobReport::InputFile());
      JobReport::InputFile& r = impl_->inputFiles_.back();

      r.logicalFileName      = logicalFileName;
      r.physicalFileName     = physicalFileName;
      r.catalog              = catalog;
      r.inputType            = inputType;
      r.inputSourceClassName = inputSourceClassName;
      r.moduleLabel          = moduleLabel;
      r.guid                 = guid;
      // r.runsSeen is not modified
      r.numEventsRead        = 0;
      r.branchNames          = branchNames;
      r.fileHasBeenClosed    = false;

      JobReport::Token newToken = impl_->inputFiles_.size()-1;
        //
       // Add the new input file token to all output files
      //  currently open.
      impl_->insertInputForOutputs(newToken);
      return newToken;
    }
void JobReport::outputFileClosed ( JobReport::Token  fileToken)

Report that the output file identified by the given Token has been closed. An exception will be thrown if the given Token was not obtained from outputFileOpened.

Definition at line 567 of file JobReport.cc.

References f, edm::JobReport::OutputFile::fileHasBeenClosed, and impl_.

                                                        {
      JobReport::OutputFile& f = impl_->getOutputFileForToken(fileToken);
      // Dump information to the MessageLogger's JobSummary
      // about this file.
      // After setting the file to 'closed', we will no longer be able
      // to reference it by ID.
      f.fileHasBeenClosed = true;
      impl_->writeOutputFile(f);
    }
JobReport::Token JobReport::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 
)

Report that an output file has been opened. The returned Token should be used for later identification of this file.

Definition at line 528 of file JobReport.cc.

References edm::JobReport::OutputFile::branchHash, edm::JobReport::OutputFile::branchNames, edm::JobReport::OutputFile::catalog, validate_alignment_devdb10_cfg::catalog, edm::JobReport::OutputFile::contributingInputs, edm::JobReport::OutputFile::dataType, dtT0WireCalibration_cfg::dataType, edm::JobReport::OutputFile::fileHasBeenClosed, edm::JobReport::OutputFile::guid, impl_, edm::JobReport::OutputFile::logicalFileName, moduleLabel(), edm::JobReport::OutputFile::moduleLabel, edm::JobReport::OutputFile::numEventsWritten, edm::JobReport::OutputFile::outputModuleClassName, edm::JobReport::OutputFile::physicalFileName, and csvReporter::r.

                                                                         {
      impl_->outputFiles_.push_back(JobReport::OutputFile());
      JobReport::OutputFile& r = impl_->outputFiles_.back();

      r.logicalFileName       = logicalFileName;
      r.physicalFileName      = physicalFileName;
      r.catalog               = catalog;
      r.outputModuleClassName = outputModuleClassName;
      r.moduleLabel           = moduleLabel;
      r.guid           = guid;
      r.dataType = dataType;
      r.branchHash = branchHash;
      // r.runsSeen is not modified
      r.numEventsWritten      = 0;
      r.branchNames           = branchNames;
      r.fileHasBeenClosed     = false;
        //
       // Init list of contributors to list of open input file Tokens
      //
      impl_->openInputFiles(r.contributingInputs);
      return impl_->outputFiles_.size()-1;
    }
void JobReport::overrideContributingInputs ( Token  outputToken,
std::vector< Token > const &  inputTokens 
)

Override the list of input files seen by an output file for use with EdmFastMerge

Definition at line 600 of file JobReport.cc.

References edm::JobReport::OutputFile::contributingInputs, f, and impl_.

                                                                               {
       // Get the required output file instance using the token
      JobReport::OutputFile& f = impl_->getOutputFileForToken(outputToken);
      // override its contributing inputs data
      f.contributingInputs = inputTokens;
    }
void JobReport::overrideEventsRead ( Token  fileToken,
int const  eventsRead 
)

For use by fast merge: Since the event by event counter cant be used for fast merges, use this method to forcibly set the events read count for an input file before reporting it closed

Definition at line 592 of file JobReport.cc.

References f, impl_, and edm::JobReport::InputFile::numEventsRead.

                                                                       {
      // Get the required input file instance using the token
      JobReport::InputFile& f = impl_->getInputFileForToken(fileToken);
      // set the events read parameter to the provided value
      f.numEventsRead = eventsRead;
    }
void JobReport::overrideEventsWritten ( Token  fileToken,
int const  eventsWritten 
)

For use by fast merge: Since the event by event counter cant be used for fast merges, use this method to forcibly set the events written count for an output file before reporting it closed

Definition at line 584 of file JobReport.cc.

References f, impl_, and edm::JobReport::OutputFile::numEventsWritten.

                                                                             {
      // Get the required output file instance using the token
      JobReport::OutputFile& f = impl_->getOutputFileForToken(fileToken);
      // set the eventsWritten parameter to the provided value
      f.numEventsWritten = eventsWritten;
    }
void JobReport::parentAfterFork ( std::string const &  jobReportFile)

Definition at line 456 of file JobReport.cc.

                                                             {
    }
void JobReport::parentBeforeFork ( std::string const &  jobReportFile,
unsigned int  numberOfChildren 
)

Definition at line 438 of file JobReport.cc.

References i, impl_, and L1TEmulatorMonitor_cff::p.

                                                                                             {
      if(impl_->ost_) {
        *(impl_->ost_) << "<ChildProcessFiles>\n";
        for (unsigned int i = 0; i < numberOfChildren; ++i) {
          std::ostringstream ofilename;
          toFileName(jobReportFile, i, numberOfChildren, ofilename);
          *(impl_->ost_) << "  <ChildProcessFile>" << ofilename.str() << "</ChildProcessFile>\n";
        }
        *(impl_->ost_) << "</ChildProcessFiles>\n";
        *(impl_->ost_) << "</FrameworkJobReport>\n";
        std::ofstream* p = dynamic_cast<std::ofstream *>(impl_->ost_);
        if (p) {
          p->close();
        }
      }
    }
void JobReport::reportAnalysisFile ( std::string const &  fileName,
std::map< std::string, std::string > const &  fileData 
)

Definition at line 652 of file JobReport.cc.

References impl_, runTheMatrix::msg, and pos.

                                                                                                       {
    if(impl_->ost_) {
      std::ostream& msg = *(impl_->ost_);
      //std::ostringstream msg;
      msg << "<AnalysisFile>\n"
          << "  <FileName>" << TiXmlText(fileName) << "</FileName>\n";

      typedef std::map<std::string, std::string>::const_iterator const_iterator;
      for (const_iterator pos = fileData.begin(), posEnd = fileData.end(); pos != posEnd; ++pos) {
        msg <<  "  <" << pos->first
            <<  "  Value=\"" << pos->second  << "\" />"
            <<  "\n";
      }
      msg << "</AnalysisFile>\n";
      //LogError("FwkJob") << msg.str();
      msg << std::flush;
    }
  }
void JobReport::reportDataType ( Token  fileToken,
std::string const &  dataType 
)

Report the data type of a file after it has been opened Needed since the data type isnt known until an event has been read

Definition at line 511 of file JobReport.cc.

References edm::JobReport::OutputFile::dataType, dtT0WireCalibration_cfg::dataType, f, and impl_.

                                                                        {
      JobReport::OutputFile& f = impl_->getOutputFileForToken(fileToken);
      f.dataType = dataType;
    }
void JobReport::reportError ( std::string const &  shortDesc,
std::string const &  longDesc 
)

Report an exception, providing details of the problem as a short description (Eg "XXXError") and a long description (Eg "XXX crashed because...") Also overload this method to accept an optional standard exit code

Definition at line 639 of file JobReport.cc.

References impl_, and runTheMatrix::msg.

Referenced by edm::printBadAllocException(), edm::printCmsException(), edm::printStdException(), and edm::printUnknownException().

                                                      {
    if(impl_->ost_) {
      std::ostream& msg = *(impl_->ost_);
      msg << "<FrameworkError ExitStatus=\"1\" Type=\"" << shortDesc << "\" >\n";
      msg << "<![CDATA[\n" << longDesc << "\n]]>\n";
      msg << "</FrameworkError>\n";
   //LogError("FwkJob") << msg.str();
      msg << std::flush;
    }
  }
void JobReport::reportError ( std::string const &  shortDesc,
std::string const &  longDesc,
int const &  exitCode 
)

Definition at line 672 of file JobReport.cc.

References impl_, and runTheMatrix::msg.

                                              {
    if(impl_->ost_) {
      std::ostream& msg = *(impl_->ost_);
      //std::ostringstream msg;
      msg << "<FrameworkError ExitStatus=\""<< exitCode
            << "\" Type=\"" << shortDesc << "\" >\n";
      msg << "<![CDATA[\n" << longDesc << "\n]]>\n";
      msg << "</FrameworkError>\n";
      //LogError("FwkJob") << msg.str();
      msg << std::flush;
    }
  }
void JobReport::reportFastCopyingStatus ( JobReport::Token  fileToken,
std::string const &  inputFileName,
bool  fastCopying 
)

Definition at line 578 of file JobReport.cc.

References f, edm::JobReport::OutputFile::fastCopyingInputs, and impl_.

                                                                                                                  {
      JobReport::OutputFile& f = impl_->getOutputFileForToken(fileToken);
      f.fastCopyingInputs.insert(std::make_pair(inputFileName, fastCopying));
    }
void JobReport::reportGeneratorInfo ( std::string const &  name,
std::string const &  value 
)

Report key/value style generator/lumi information Eg: reportGeneratorInfo("CrossSection" , "ValueHere") No special chars in the value string.

Definition at line 733 of file JobReport.cc.

References impl_.

                                                                              {
    impl_->addGeneratorInfo(name, value);
  }
void JobReport::reportInputLumiSection ( unsigned int  run,
unsigned int  lumiSectId 
)

API for reporting a Lumi Section to the job report. for input files, call only if lumi section is physically read from the input file

Definition at line 625 of file JobReport.cc.

References impl_.

                                                                             {
    impl_->associateInputLumiSection(run, lumiSectId);
  }
void JobReport::reportInputRunNumber ( unsigned int  run)

API to report a run read from input

Definition at line 634 of file JobReport.cc.

References impl_.

                                                  {
    impl_->associateInputRun(run);
  }
void JobReport::reportLumiSection ( unsigned int  run,
unsigned int  lumiSectId 
)

API for reporting a Lumi Section to the job report. for output files, call only if lumi section is written to the output file

Definition at line 620 of file JobReport.cc.

References impl_.

                                                                        {
    impl_->associateLumiSection(run, lumiSectId);
  }
void JobReport::reportMemoryInfo ( std::vector< std::string > const &  memoryData)

Report Memory statistics ALTERNATE FORM - USING THIS MAY NECESSITATE CHANGES IN PARSING XML! Invoked by the Memory service to send an end of job summary about memory usage for inclusion in the job report

Definition at line 702 of file JobReport.cc.

References impl_, runTheMatrix::msg, and pos.

                                                                    {
    if(impl_->ost_) {
      std::ostream& msg = *(impl_->ost_);
      msg << "<MemoryService>\n";

      typedef std::vector<std::string>::const_iterator const_iterator;
      for (const_iterator pos = memoryData.begin(), posEnd = memoryData.end(); pos != posEnd; ++pos) {
        msg << *pos << "\n";
      }
      msg << "</MemoryService>\n";
      msg << std::flush;
    }
  }
void JobReport::reportMessageInfo ( std::map< std::string, double > const &  messageData)

Report Message statistics Invoked by the MessageLogger service to send an end of job summary about numbers of various categories messages issued for inclusion in the job report

Definition at line 717 of file JobReport.cc.

References impl_, runTheMatrix::msg, and pos.

                                                                           {
    if(impl_->ost_) {
      std::ostream& msg = *(impl_->ost_);
      msg << "<MessageSummary>\n";
      typedef std::map<std::string, double>::const_iterator const_iterator;
      for (const_iterator pos = messageData.begin(), posEnd = messageData.end(); pos != posEnd; ++pos) {
        msg <<  "  <" << pos->first
        <<  "  Value=\"" << pos->second  << "\" />"
        <<  "\n";
      }
      msg << "</MessageSummary>\n";
      msg << std::flush;
    }
  }
void JobReport::reportPerformanceForModule ( std::string const &  metricClass,
std::string const &  moduleName,
std::map< std::string, std::string > const &  metrics 
)

Definition at line 782 of file JobReport.cc.

References impl_, and runTheMatrix::msg.

                                                                                     {
    if(impl_->ost_) {
      std::ostream& msg = *(impl_->ost_);
      msg << "<PerformanceReport>\n"
        << "  <PerformanceModule Metric=\"" << metricClass << "\" "
        << " Module=\"" << moduleName << "\" >\n";

      typedef std::map<std::string, std::string>::const_iterator const_iterator;
      for(const_iterator iter = metrics.begin(), iterEnd = metrics.end(); iter != iterEnd; ++iter) {
        msg << "    <Metric Name=\"" << iter->first << "\" "
        << "Value=\"" << iter->second << "\"/>\n";
      }

      msg << "  </PerformanceModule>\n"
        << "</PerformanceReport>\n";
      msg << std::flush;
      //LogInfo("FwkJob") << msg.str();
    }
  }
void JobReport::reportPerformanceSummary ( std::string const &  metricClass,
std::map< std::string, std::string > const &  metrics 
)

Performance Reports

Two categories: Summary for entire job and module for a specific module Each one requires a performance metric class such as Timing, Memory, CPU, Trigger etc.

Definition at line 761 of file JobReport.cc.

References impl_, and runTheMatrix::msg.

                                                                                   {
    if(impl_->ost_) {
      std::ostream& msg = *(impl_->ost_);
      msg << "<PerformanceReport>\n"
        << "  <PerformanceSummary Metric=\"" << metricClass << "\">\n";

      typedef std::map<std::string, std::string>::const_iterator const_iterator;
      for(const_iterator iter = metrics.begin(), iterEnd = metrics.end(); iter != iterEnd; ++iter) {
        msg << "    <Metric Name=\"" << iter->first << "\" "
        << "Value=\"" << iter->second << "\"/>\n";
      }

      msg << "  </PerformanceSummary>\n"
        << "</PerformanceReport>\n";
      msg << std::flush;
      //LogInfo("FwkJob") << msg.str();
    }
  }
void JobReport::reportPSetHash ( std::string const &  hashValue)

Report PSetHash

Definition at line 749 of file JobReport.cc.

References impl_, and runTheMatrix::msg.

                                                      {
    if(impl_->ost_) {
      std::ostream& msg = *(impl_->ost_);
      msg << "<PSetHash>"
        <<  hashValue
        <<  "</PSetHash>\n";
      //LogInfo("FwkJob") << msg.str();
      msg << std::flush;
    }
  }
void JobReport::reportRandomStateFile ( std::string const &  name)

Report the name of the random engine persistency file

Definition at line 737 of file JobReport.cc.

References impl_, and runTheMatrix::msg.

                                                             {
    if(impl_->ost_) {
      std::ostream& msg = *(impl_->ost_);
      msg << "<RandomServiceStateFile>\n"
        << TiXmlText(name) << "\n"
        <<  "</RandomServiceStateFile>\n";
      //LogInfo("FwkJob") << msg.str();
      msg << std::flush;
    }
  }
void JobReport::reportRunNumber ( unsigned int  run)

API to report the a run written to output

Definition at line 630 of file JobReport.cc.

References impl_.

                                             {
    impl_->associateRun(run);
  }
void JobReport::reportSkippedEvent ( unsigned int  run,
unsigned int  event 
)

Definition at line 609 of file JobReport.cc.

References impl_, and runTheMatrix::msg.

                                                                      {
      if(impl_->ost_) {
        std::ostream& msg = *(impl_->ost_);
        msg << "<SkippedEvent Run=\"" << run << "\"";
        msg << " Event=\"" << event << "\" />\n";
        msg << std::flush;
        //LogInfo("FwkJob") << msg.str();
      }
    }
void JobReport::reportSkippedFile ( std::string const &  pfn,
std::string const &  lfn 
)

Report Skipped File

Report that a file has been skipped due to it not being found.

Definition at line 688 of file JobReport.cc.

References impl_, runTheMatrix::msg, and TiXmlElement::SetAttribute().

                                                     {
    if(impl_->ost_) {
      std::ostream& msg = *(impl_->ost_);
      TiXmlElement skipped("SkippedFile");
      skipped.SetAttribute("Pfn", pfn);
      skipped.SetAttribute("Lfn", lfn);
      msg << skipped << "\n";
      msg << std::flush;
      //LogInfo("FwkJob") << msg.str();
    }
  }

Member Data Documentation

boost::scoped_ptr<JobReportImpl> edm::JobReport::impl_ [private]