LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "FileStatsCollector.h"
Public Member Functions | |
FileStatsCollector (std::string const &moduleLabel, std::string const &processName) | |
void | recordFileOpen () |
void | recordInputFile (std::string const &inputFileName) |
void | recordEvent (EventID const &id) |
void | recordRun (RunID const &id) |
void | recordSubRun (SubRunID const &id) |
void | recordFileClose () |
std::string const & | moduleLabel () const |
std::string const & | processName () const |
boost::posix_time::ptime | outputFileOpenTime () const |
boost::posix_time::ptime | outputFileCloseTime () const |
SubRunID const & | lowestSubRunID () const |
SubRunID const & | highestSubRunID () const |
EventID const & | lowestEventID () const |
EventID const & | highestEventID () const |
std::string const & | lastOpenedInputFile () const |
std::vector< std::string > | parents (bool want_basename=true) const |
bool | fileCloseRecorded () const |
std::size_t | eventsThisFile () const |
std::set< SubRunID > const & | seenSubRuns () const |
Private Member Functions | |
void | resetStatistics_ () |
Private Attributes | |
std::string const | moduleLabel_ |
std::string const | processName_ |
SubRunID | lowestSubRun_ {} |
SubRunID | highestSubRun_ {} |
EventID | lowestEventIDSeen_ {} |
EventID | highestEventIDSeen_ {} |
boost::posix_time::ptime | fo_ {} |
boost::posix_time::ptime | fc_ {} |
bool | fileCloseRecorded_ {false} |
std::string | lastOpenedInputFile_ {} |
std::vector< std::string > | inputFilesSeen_ {} |
std::size_t | nEvents_ {} |
std::set< SubRunID > | subRunsSeen_ {} |
Definition at line 22 of file FileStatsCollector.h.
art::FileStatsCollector::FileStatsCollector | ( | std::string const & | moduleLabel, |
std::string const & | processName | ||
) |
Definition at line 7 of file FileStatsCollector.cc.
References processName(), and processName_.
|
inline |
Definition at line 127 of file FileStatsCollector.h.
References nEvents_.
Referenced by art::RootOutputFile::writeFileCatalogMetadata().
|
inline |
Definition at line 121 of file FileStatsCollector.h.
References fileCloseRecorded_.
Referenced by art::PostCloseFileRenamer::applySubstitutions().
|
inline |
Definition at line 109 of file FileStatsCollector.h.
References highestEventIDSeen_.
Referenced by art::RootOutputFile::writeFileCatalogMetadata().
|
inline |
Definition at line 97 of file FileStatsCollector.h.
References highestSubRun_.
Referenced by art::PostCloseFileRenamer::subFilledNumericNoIndex_().
|
inline |
Definition at line 115 of file FileStatsCollector.h.
References lastOpenedInputFile_.
Referenced by art::PostCloseFileRenamer::subInputFileName_().
|
inline |
Definition at line 103 of file FileStatsCollector.h.
References lowestEventIDSeen_.
Referenced by art::RootOutputFile::writeFileCatalogMetadata().
|
inline |
Definition at line 91 of file FileStatsCollector.h.
References lowestSubRun_.
Referenced by art::PostCloseFileRenamer::subFilledNumericNoIndex_().
|
inline |
Definition at line 67 of file FileStatsCollector.h.
References moduleLabel_.
Referenced by art::PostCloseFileRenamer::applySubstitutionsNoIndex_().
|
inline |
Definition at line 85 of file FileStatsCollector.h.
References fc_.
Referenced by art::PostCloseFileRenamer::subTimestamp_().
|
inline |
Definition at line 79 of file FileStatsCollector.h.
References fo_.
Referenced by art::PostCloseFileRenamer::subTimestamp_(), and art::RootOutputFile::writeFileCatalogMetadata().
std::vector< std::string > art::FileStatsCollector::parents | ( | bool | want_basename = true | ) | const |
Definition at line 85 of file FileStatsCollector.cc.
References inputFilesSeen_.
Referenced by art::RootOutputFile::writeFileCatalogMetadata().
|
inline |
Definition at line 73 of file FileStatsCollector.h.
References processName_.
Referenced by art::PostCloseFileRenamer::applySubstitutionsNoIndex_(), and FileStatsCollector().
void art::FileStatsCollector::recordEvent | ( | EventID const & | id | ) |
Definition at line 33 of file FileStatsCollector.cc.
References highestEventIDSeen_, art::EventID::isValid(), lowestEventIDSeen_, nEvents_, and recordSubRun().
Referenced by art::TFileService::TFileService(), and art::RootOutput::write().
void art::FileStatsCollector::recordFileClose | ( | ) |
Definition at line 78 of file FileStatsCollector.cc.
References fc_, and fileCloseRecorded_.
Referenced by art::TFileService::closeFile_(), and art::RootOutput::finishEndFile().
void art::FileStatsCollector::recordFileOpen | ( | ) |
Definition at line 13 of file FileStatsCollector.cc.
References fileCloseRecorded_, fo_, inputFilesSeen_, lastOpenedInputFile_, and resetStatistics_().
Referenced by art::RootOutput::doOpenFile(), and art::TFileService::openFile_().
void art::FileStatsCollector::recordInputFile | ( | std::string const & | inputFileName | ) |
Definition at line 24 of file FileStatsCollector.cc.
References inputFilesSeen_, and lastOpenedInputFile_.
Referenced by art::RootOutput::respondToOpenInputFile(), and art::TFileService::TFileService().
void art::FileStatsCollector::recordRun | ( | RunID const & | id | ) |
Definition at line 50 of file FileStatsCollector.cc.
References highestSubRun_, art::SubRunID::invalidSubRun(), art::RunID::isValid(), lowestSubRun_, and art::SubRunID::runID().
Referenced by recordSubRun(), art::TFileService::TFileService(), and art::RootOutput::writeRun().
void art::FileStatsCollector::recordSubRun | ( | SubRunID const & | id | ) |
Definition at line 62 of file FileStatsCollector.cc.
References highestSubRun_, art::SubRunID::isValid(), lowestSubRun_, recordRun(), art::SubRunID::runID(), and subRunsSeen_.
Referenced by recordEvent(), art::TFileService::TFileService(), and art::RootOutput::writeSubRun().
|
private |
Definition at line 101 of file FileStatsCollector.cc.
References fc_, fo_, highestSubRun_, inputFilesSeen_, lowestSubRun_, nEvents_, and subRunsSeen_.
Referenced by recordFileOpen().
|
inline |
Definition at line 133 of file FileStatsCollector.h.
References subRunsSeen_.
Referenced by art::RootOutputFile::writeFileCatalogMetadata().
|
private |
Definition at line 58 of file FileStatsCollector.h.
Referenced by outputFileCloseTime(), recordFileClose(), and resetStatistics_().
|
private |
Definition at line 59 of file FileStatsCollector.h.
Referenced by fileCloseRecorded(), recordFileClose(), and recordFileOpen().
|
private |
Definition at line 57 of file FileStatsCollector.h.
Referenced by outputFileOpenTime(), recordFileOpen(), and resetStatistics_().
|
private |
Definition at line 56 of file FileStatsCollector.h.
Referenced by highestEventID(), and recordEvent().
|
private |
Definition at line 54 of file FileStatsCollector.h.
Referenced by highestSubRunID(), recordRun(), recordSubRun(), and resetStatistics_().
|
private |
Definition at line 61 of file FileStatsCollector.h.
Referenced by parents(), recordFileOpen(), recordInputFile(), and resetStatistics_().
|
private |
Definition at line 60 of file FileStatsCollector.h.
Referenced by lastOpenedInputFile(), recordFileOpen(), and recordInputFile().
|
private |
Definition at line 55 of file FileStatsCollector.h.
Referenced by lowestEventID(), and recordEvent().
|
private |
Definition at line 53 of file FileStatsCollector.h.
Referenced by lowestSubRunID(), recordRun(), recordSubRun(), and resetStatistics_().
|
private |
Definition at line 51 of file FileStatsCollector.h.
Referenced by moduleLabel().
|
private |
Definition at line 62 of file FileStatsCollector.h.
Referenced by eventsThisFile(), recordEvent(), and resetStatistics_().
|
private |
Definition at line 52 of file FileStatsCollector.h.
Referenced by FileStatsCollector(), and processName().
|
private |
Definition at line 63 of file FileStatsCollector.h.
Referenced by recordSubRun(), resetStatistics_(), and seenSubRuns().