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

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/source/art/Framework/IO/FileStatsCollector.h"

Public Member Functions

 ~FileStatsCollector ()
 
 FileStatsCollector (std::string const &moduleLabel, std::string const &processName, bool const enableLargeFileCatalogMetadata=true)
 
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::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_
 
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::stringinputFilesSeen_ {}
 
std::size_t nEvents_ {}
 
std::set< SubRunIDsubRunsSeen_ {}
 
bool enableLargeFileCatalogMetadata_ {true}
 

Detailed Description

Definition at line 20 of file FileStatsCollector.h.

Constructor & Destructor Documentation

art::FileStatsCollector::~FileStatsCollector ( )
art::FileStatsCollector::FileStatsCollector ( std::string const &  moduleLabel,
std::string const &  processName,
bool const  enableLargeFileCatalogMetadata = true 
)

Member Function Documentation

std::size_t art::FileStatsCollector::eventsThisFile ( ) const
bool art::FileStatsCollector::fileCloseRecorded ( ) const
EventID const& art::FileStatsCollector::highestEventID ( ) const
SubRunID const& art::FileStatsCollector::highestSubRunID ( ) const
std::string const& art::FileStatsCollector::lastOpenedInputFile ( ) const
EventID const& art::FileStatsCollector::lowestEventID ( ) const
SubRunID const& art::FileStatsCollector::lowestSubRunID ( ) const
std::string const& art::FileStatsCollector::moduleLabel ( ) const
boost::posix_time::ptime art::FileStatsCollector::outputFileCloseTime ( ) const
boost::posix_time::ptime art::FileStatsCollector::outputFileOpenTime ( ) const
std::vector<std::string> art::FileStatsCollector::parents ( bool  want_basename = true) const
std::string const& art::FileStatsCollector::processName ( ) const
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<SubRunID> const& art::FileStatsCollector::seenSubRuns ( ) const

Member Data Documentation

bool art::FileStatsCollector::enableLargeFileCatalogMetadata_ {true}
private

Definition at line 69 of file FileStatsCollector.h.

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

Definition at line 63 of file FileStatsCollector.h.

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

Definition at line 64 of file FileStatsCollector.h.

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

Definition at line 62 of file FileStatsCollector.h.

EventID art::FileStatsCollector::highestEventIDSeen_ {}
private

Definition at line 61 of file FileStatsCollector.h.

SubRunID art::FileStatsCollector::highestSubRun_ {}
private

Definition at line 59 of file FileStatsCollector.h.

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

Definition at line 66 of file FileStatsCollector.h.

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

Definition at line 65 of file FileStatsCollector.h.

EventID art::FileStatsCollector::lowestEventIDSeen_ {}
private

Definition at line 60 of file FileStatsCollector.h.

SubRunID art::FileStatsCollector::lowestSubRun_ {}
private

Definition at line 58 of file FileStatsCollector.h.

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

Definition at line 56 of file FileStatsCollector.h.

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

Definition at line 67 of file FileStatsCollector.h.

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

Definition at line 57 of file FileStatsCollector.h.

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

Definition at line 68 of file FileStatsCollector.h.


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