ATLAS Offline Software
|
#include <TTree.h>
#include <TFile.h>
#include <TTimeStamp.h>
#include "xAODCore/tools/PerfStats.h"
#include "xAODCore/tools/Utils.h"
#include "xAODCore/tools/IOStats.h"
#include "xAODCore/tools/ReadStats.h"
Go to the source code of this file.
Macros | |
#define | FWD_CALL(CALL) |
Functions | |
ClassImp (xAOD::PerfStats) namespace xAOD | |
#define FWD_CALL | ( | CALL | ) |
ClassImp | ( | xAOD::PerfStats | ) |
The destructor is a quite important function in this class. it makes sure that the static s_instance variable gets reset, and that all TVirtualPerfStats objects really get deleted.
Everywhere in the code this function should be used to access the one and only PerfStats object in memory.
The user is supposed to call this function after the initialization of his/her analysis code finished, but before the event processing starts.
clear | Clear the statistics gathered so far |
The user is supposed to call this function once his/her analysis code finished with the event processing.
This function does most of the work of the class. It is called every time ROOT does a file I/O operation. The function takes care of registering this operation in its statistics, and checks if a new file was opened since the last I/O operation.
file | The file object that was read from |
len | The number of bytes that were read from the file |
start | The time when the read operation started |
This function is called by ROOT when it needs to unzip some data from a given inpout file.
file | The file the information was read from |
pos | Position inside the input file? (Not used.) |
start | The time when the unzipping operation started |
complen | Not sure. (Not used.) |
objlen | Not sure. (Not used.) |
In single process running this function is basically never called. It's only active when running on PROOF, in which case we should not care about the values given to it, but just forward it to TPerfStats. The actual amount of data read for xAOD monitoring is coming in through the FileReadEvent(...) function...
num | Number of bytes read in "some operation" |
This function is not called with anything meaningful in standalone ROOT analyses, so it just forwards the call to a possible other TVirtualPerfStats object.
num | Number of processed events |
The function just gets the number of events from the other TVirtualPerfStats object if it exists, otherwise it just returns zero.
The constructor needs to do a few things. If there is already another TVirtualPerfStats object defined under gPerfStats, then it stores that pointer in order to be able to forward monitoring information to that object later on. It then overwrites gPerfStats to point to this object.
Note that this is a private function in TVirtualPerfStats
, so it is not forwarded to m_otherPerfStats
.
Definition at line 16 of file PerfStats.cxx.