LArSoft
v09_90_00
Liquid Argon Software toolkit - https://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 |
boost::posix_time::ptime | lowestRunStartTime () const |
boost::posix_time::ptime | highestRunStartTime () const |
boost::posix_time::ptime | lowestSubRunStartTime () const |
boost::posix_time::ptime | highestSubRunStartTime () const |
RunID | lowestRunID () const |
RunID | highestRunID () 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_ |
RunID | lowestRun_ {} |
RunID | highestRun_ {} |
SubRunID | lowestSubRun_ {} |
SubRunID | highestSubRun_ {} |
EventID | lowestEventIDSeen_ {} |
EventID | highestEventIDSeen_ {} |
boost::posix_time::ptime | fo_ {} |
boost::posix_time::ptime | fc_ {} |
boost::posix_time::ptime | lowestRunStartTime_ {} |
boost::posix_time::ptime | highestRunStartTime_ {} |
boost::posix_time::ptime | lowestSubRunStartTime_ {} |
boost::posix_time::ptime | highestSubRunStartTime_ {} |
bool | fileCloseRecorded_ {false} |
std::string | lastOpenedInputFile_ {} |
std::vector< std::string > | inputFilesSeen_ {} |
std::size_t | nEvents_ {} |
std::set< SubRunID > | subRunsSeen_ {} |
Definition at line 24 of file FileStatsCollector.h.
art::FileStatsCollector::FileStatsCollector | ( | std::string const & | moduleLabel, |
std::string const & | processName | ||
) |
Definition at line 12 of file FileStatsCollector.cc.
References processName(), and processName_.
|
inline |
|
inline |
Definition at line 171 of file FileStatsCollector.h.
References fileCloseRecorded_.
Referenced by art::PostCloseFileRenamer::applySubstitutions().
|
inline |
Definition at line 159 of file FileStatsCollector.h.
References highestEventIDSeen_.
|
inline |
Definition at line 135 of file FileStatsCollector.h.
References highestRun_.
Referenced by art::PostCloseFileRenamer::subFilledNumericNoIndex_().
|
inline |
Definition at line 111 of file FileStatsCollector.h.
References highestRunStartTime_.
Referenced by art::PostCloseFileRenamer::subTimestamp_().
|
inline |
Definition at line 147 of file FileStatsCollector.h.
References highestSubRun_.
Referenced by art::PostCloseFileRenamer::subFilledNumericNoIndex_().
|
inline |
Definition at line 123 of file FileStatsCollector.h.
References highestSubRunStartTime_.
Referenced by art::PostCloseFileRenamer::subTimestamp_().
|
inline |
Definition at line 165 of file FileStatsCollector.h.
References lastOpenedInputFile_.
Referenced by art::PostCloseFileRenamer::subInputFileName_().
|
inline |
Definition at line 153 of file FileStatsCollector.h.
References lowestEventIDSeen_.
|
inline |
Definition at line 129 of file FileStatsCollector.h.
References lowestRun_.
Referenced by art::PostCloseFileRenamer::subFilledNumericNoIndex_().
|
inline |
Definition at line 105 of file FileStatsCollector.h.
References lowestRunStartTime_.
Referenced by art::PostCloseFileRenamer::subTimestamp_().
|
inline |
Definition at line 141 of file FileStatsCollector.h.
References lowestSubRun_.
Referenced by art::PostCloseFileRenamer::subFilledNumericNoIndex_().
|
inline |
Definition at line 117 of file FileStatsCollector.h.
References lowestSubRunStartTime_.
Referenced by art::PostCloseFileRenamer::subTimestamp_().
|
inline |
Definition at line 81 of file FileStatsCollector.h.
References moduleLabel_.
Referenced by art::PostCloseFileRenamer::applySubstitutionsNoIndex_().
|
inline |
Definition at line 99 of file FileStatsCollector.h.
References fc_.
Referenced by art::PostCloseFileRenamer::subTimestamp_().
|
inline |
Definition at line 93 of file FileStatsCollector.h.
References fo_.
Referenced by art::PostCloseFileRenamer::subTimestamp_().
std::vector< std::string > art::FileStatsCollector::parents | ( | bool | want_basename = true | ) | const |
Definition at line 100 of file FileStatsCollector.cc.
References inputFilesSeen_.
|
inline |
Definition at line 87 of file FileStatsCollector.h.
References processName_.
Referenced by art::PostCloseFileRenamer::applySubstitutionsNoIndex_(), and FileStatsCollector().
void art::FileStatsCollector::recordEvent | ( | EventID const & | id | ) |
Definition at line 38 of file FileStatsCollector.cc.
References highestEventIDSeen_, art::EventID::isValid(), lowestEventIDSeen_, and nEvents_.
void art::FileStatsCollector::recordFileClose | ( | ) |
Definition at line 93 of file FileStatsCollector.cc.
References fc_, and fileCloseRecorded_.
void art::FileStatsCollector::recordFileOpen | ( | ) |
Definition at line 18 of file FileStatsCollector.cc.
References fileCloseRecorded_, fo_, inputFilesSeen_, lastOpenedInputFile_, and resetStatistics_().
void art::FileStatsCollector::recordInputFile | ( | std::string const & | inputFileName | ) |
Definition at line 29 of file FileStatsCollector.cc.
References inputFilesSeen_, and lastOpenedInputFile_.
void art::FileStatsCollector::recordRun | ( | RunID const & | id | ) |
Definition at line 51 of file FileStatsCollector.cc.
References highestRun_, highestRunStartTime_, highestSubRun_, highestSubRunStartTime_, art::RunID::isValid(), lowestRun_, lowestRunStartTime_, lowestSubRun_, lowestSubRunStartTime_, and art::SubRunID::runID().
void art::FileStatsCollector::recordSubRun | ( | SubRunID const & | id | ) |
Definition at line 77 of file FileStatsCollector.cc.
References highestSubRun_, highestSubRunStartTime_, art::SubRunID::isValid(), lowestSubRun_, lowestSubRunStartTime_, and subRunsSeen_.
|
private |
Definition at line 116 of file FileStatsCollector.cc.
References fc_, fo_, highestRun_, highestRunStartTime_, highestSubRun_, highestSubRunStartTime_, inputFilesSeen_, lowestRun_, lowestRunStartTime_, lowestSubRun_, lowestSubRunStartTime_, nEvents_, and subRunsSeen_.
Referenced by recordFileOpen().
|
inline |
Definition at line 183 of file FileStatsCollector.h.
References subRunsSeen_.
|
private |
Definition at line 68 of file FileStatsCollector.h.
Referenced by outputFileCloseTime(), recordFileClose(), and resetStatistics_().
|
private |
Definition at line 73 of file FileStatsCollector.h.
Referenced by fileCloseRecorded(), recordFileClose(), and recordFileOpen().
|
private |
Definition at line 67 of file FileStatsCollector.h.
Referenced by outputFileOpenTime(), recordFileOpen(), and resetStatistics_().
|
private |
Definition at line 66 of file FileStatsCollector.h.
Referenced by highestEventID(), and recordEvent().
|
private |
Definition at line 62 of file FileStatsCollector.h.
Referenced by highestRunID(), recordRun(), and resetStatistics_().
|
private |
Definition at line 70 of file FileStatsCollector.h.
Referenced by highestRunStartTime(), recordRun(), and resetStatistics_().
|
private |
Definition at line 64 of file FileStatsCollector.h.
Referenced by highestSubRunID(), recordRun(), recordSubRun(), and resetStatistics_().
|
private |
Definition at line 72 of file FileStatsCollector.h.
Referenced by highestSubRunStartTime(), recordRun(), recordSubRun(), and resetStatistics_().
|
private |
Definition at line 75 of file FileStatsCollector.h.
Referenced by parents(), recordFileOpen(), recordInputFile(), and resetStatistics_().
|
private |
Definition at line 74 of file FileStatsCollector.h.
Referenced by lastOpenedInputFile(), recordFileOpen(), and recordInputFile().
|
private |
Definition at line 65 of file FileStatsCollector.h.
Referenced by lowestEventID(), and recordEvent().
|
private |
Definition at line 61 of file FileStatsCollector.h.
Referenced by lowestRunID(), recordRun(), and resetStatistics_().
|
private |
Definition at line 69 of file FileStatsCollector.h.
Referenced by lowestRunStartTime(), recordRun(), and resetStatistics_().
|
private |
Definition at line 63 of file FileStatsCollector.h.
Referenced by lowestSubRunID(), recordRun(), recordSubRun(), and resetStatistics_().
|
private |
Definition at line 71 of file FileStatsCollector.h.
Referenced by lowestSubRunStartTime(), recordRun(), recordSubRun(), and resetStatistics_().
|
private |
Definition at line 59 of file FileStatsCollector.h.
Referenced by moduleLabel().
|
private |
Definition at line 76 of file FileStatsCollector.h.
Referenced by eventsThisFile(), recordEvent(), and resetStatistics_().
|
private |
Definition at line 60 of file FileStatsCollector.h.
Referenced by FileStatsCollector(), and processName().
|
private |
Definition at line 77 of file FileStatsCollector.h.
Referenced by recordSubRun(), resetStatistics_(), and seenSubRuns().