Public Member Functions | Private Member Functions | Private Attributes | List of all members
art::FileStatsCollector Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v3_05_01/source/art/Framework/IO/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::stringparents (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::stringinputFilesSeen_ {}
 
std::size_t nEvents_ {}
 
std::set< SubRunIDsubRunsSeen_ {}
 

Detailed Description

Definition at line 23 of file FileStatsCollector.h.

Constructor & Destructor Documentation

art::FileStatsCollector::FileStatsCollector ( std::string const &  moduleLabel,
std::string const &  processName 
)

Member Function Documentation

std::size_t art::FileStatsCollector::eventsThisFile ( ) const
inline

Definition at line 176 of file FileStatsCollector.h.

References nEvents_.

177 {
178  return nEvents_;
179 }
bool art::FileStatsCollector::fileCloseRecorded ( ) const
inline

Definition at line 170 of file FileStatsCollector.h.

References fileCloseRecorded_.

171 {
172  return fileCloseRecorded_;
173 }
art::EventID const & art::FileStatsCollector::highestEventID ( ) const
inline

Definition at line 158 of file FileStatsCollector.h.

References highestEventIDSeen_, and string.

159 {
160  return highestEventIDSeen_;
161 }
art::RunID art::FileStatsCollector::highestRunID ( ) const
inline

Definition at line 134 of file FileStatsCollector.h.

References highestRun_.

135 {
136  return highestRun_;
137 }
boost::posix_time::ptime art::FileStatsCollector::highestRunStartTime ( ) const
inline

Definition at line 110 of file FileStatsCollector.h.

References highestRunStartTime_.

111 {
112  return highestRunStartTime_;
113 }
boost::posix_time::ptime highestRunStartTime_
art::SubRunID const & art::FileStatsCollector::highestSubRunID ( ) const
inline

Definition at line 146 of file FileStatsCollector.h.

References highestSubRun_.

147 {
148  return highestSubRun_;
149 }
boost::posix_time::ptime art::FileStatsCollector::highestSubRunStartTime ( ) const
inline

Definition at line 122 of file FileStatsCollector.h.

References highestSubRunStartTime_.

123 {
125 }
boost::posix_time::ptime highestSubRunStartTime_
std::string const & art::FileStatsCollector::lastOpenedInputFile ( ) const
inline

Definition at line 164 of file FileStatsCollector.h.

References lastOpenedInputFile_.

165 {
166  return lastOpenedInputFile_;
167 }
art::EventID const & art::FileStatsCollector::lowestEventID ( ) const
inline

Definition at line 152 of file FileStatsCollector.h.

References lowestEventIDSeen_.

153 {
154  return lowestEventIDSeen_;
155 }
art::RunID art::FileStatsCollector::lowestRunID ( ) const
inline

Definition at line 128 of file FileStatsCollector.h.

References lowestRun_.

129 {
130  return lowestRun_;
131 }
boost::posix_time::ptime art::FileStatsCollector::lowestRunStartTime ( ) const
inline

Definition at line 104 of file FileStatsCollector.h.

References lowestRunStartTime_.

105 {
106  return lowestRunStartTime_;
107 }
boost::posix_time::ptime lowestRunStartTime_
art::SubRunID const & art::FileStatsCollector::lowestSubRunID ( ) const
inline

Definition at line 140 of file FileStatsCollector.h.

References lowestSubRun_.

141 {
142  return lowestSubRun_;
143 }
boost::posix_time::ptime art::FileStatsCollector::lowestSubRunStartTime ( ) const
inline

Definition at line 116 of file FileStatsCollector.h.

References lowestSubRunStartTime_.

117 {
118  return lowestSubRunStartTime_;
119 }
boost::posix_time::ptime lowestSubRunStartTime_
std::string const & art::FileStatsCollector::moduleLabel ( ) const
inline

Definition at line 80 of file FileStatsCollector.h.

References moduleLabel_, and string.

81 {
82  return moduleLabel_;
83 }
std::string const moduleLabel_
boost::posix_time::ptime art::FileStatsCollector::outputFileCloseTime ( ) const
inline

Definition at line 98 of file FileStatsCollector.h.

References fc_.

99 {
100  return fc_;
101 }
boost::posix_time::ptime fc_
boost::posix_time::ptime art::FileStatsCollector::outputFileOpenTime ( ) const
inline

Definition at line 92 of file FileStatsCollector.h.

References fo_.

93 {
94  return fo_;
95 }
boost::posix_time::ptime fo_
std::vector<std::string> art::FileStatsCollector::parents ( bool  want_basename = true) const
std::string const & art::FileStatsCollector::processName ( ) const
inline

Definition at line 86 of file FileStatsCollector.h.

References processName_.

87 {
88  return processName_;
89 }
std::string const processName_
void art::FileStatsCollector::recordEvent ( EventID const &  id)
void art::FileStatsCollector::recordFileClose ( )
void art::FileStatsCollector::recordFileOpen ( )
void art::FileStatsCollector::recordInputFile ( std::string const &  inputFileName)
void art::FileStatsCollector::recordRun ( RunID const &  id)
void art::FileStatsCollector::recordSubRun ( SubRunID const &  id)
void art::FileStatsCollector::resetStatistics_ ( )
private
std::set< art::SubRunID > const & art::FileStatsCollector::seenSubRuns ( ) const
inline

Definition at line 182 of file FileStatsCollector.h.

References subRunsSeen_.

183 {
184  return subRunsSeen_;
185 }
std::set< SubRunID > subRunsSeen_

Member Data Documentation

boost::posix_time::ptime art::FileStatsCollector::fc_ {}
private

Definition at line 67 of file FileStatsCollector.h.

Referenced by outputFileCloseTime().

bool art::FileStatsCollector::fileCloseRecorded_ {false}
private

Definition at line 72 of file FileStatsCollector.h.

Referenced by fileCloseRecorded().

boost::posix_time::ptime art::FileStatsCollector::fo_ {}
private

Definition at line 66 of file FileStatsCollector.h.

Referenced by outputFileOpenTime().

EventID art::FileStatsCollector::highestEventIDSeen_ {}
private

Definition at line 65 of file FileStatsCollector.h.

Referenced by highestEventID().

RunID art::FileStatsCollector::highestRun_ {}
private

Definition at line 61 of file FileStatsCollector.h.

Referenced by highestRunID().

boost::posix_time::ptime art::FileStatsCollector::highestRunStartTime_ {}
private

Definition at line 69 of file FileStatsCollector.h.

Referenced by highestRunStartTime().

SubRunID art::FileStatsCollector::highestSubRun_ {}
private

Definition at line 63 of file FileStatsCollector.h.

Referenced by highestSubRunID().

boost::posix_time::ptime art::FileStatsCollector::highestSubRunStartTime_ {}
private

Definition at line 71 of file FileStatsCollector.h.

Referenced by highestSubRunStartTime().

std::vector<std::string> art::FileStatsCollector::inputFilesSeen_ {}
private

Definition at line 74 of file FileStatsCollector.h.

std::string art::FileStatsCollector::lastOpenedInputFile_ {}
private

Definition at line 73 of file FileStatsCollector.h.

Referenced by lastOpenedInputFile().

EventID art::FileStatsCollector::lowestEventIDSeen_ {}
private

Definition at line 64 of file FileStatsCollector.h.

Referenced by lowestEventID().

RunID art::FileStatsCollector::lowestRun_ {}
private

Definition at line 60 of file FileStatsCollector.h.

Referenced by lowestRunID().

boost::posix_time::ptime art::FileStatsCollector::lowestRunStartTime_ {}
private

Definition at line 68 of file FileStatsCollector.h.

Referenced by lowestRunStartTime().

SubRunID art::FileStatsCollector::lowestSubRun_ {}
private

Definition at line 62 of file FileStatsCollector.h.

Referenced by lowestSubRunID().

boost::posix_time::ptime art::FileStatsCollector::lowestSubRunStartTime_ {}
private

Definition at line 70 of file FileStatsCollector.h.

Referenced by lowestSubRunStartTime().

std::string const art::FileStatsCollector::moduleLabel_
private

Definition at line 58 of file FileStatsCollector.h.

Referenced by moduleLabel().

std::size_t art::FileStatsCollector::nEvents_ {}
private

Definition at line 75 of file FileStatsCollector.h.

Referenced by eventsThisFile().

std::string const art::FileStatsCollector::processName_
private

Definition at line 59 of file FileStatsCollector.h.

Referenced by processName().

std::set<SubRunID> art::FileStatsCollector::subRunsSeen_ {}
private

Definition at line 76 of file FileStatsCollector.h.

Referenced by seenSubRuns().


The documentation for this class was generated from the following file: