12#ifndef ROOT_TTreePerfStats
13#define ROOT_TTreePerfStats
27#include <unordered_map>
48 using BasketList_t = std::vector<std::pair<TBranch*, std::vector<size_t>>>;
110 virtual void PacketEvent(
const char *,
const char *,
const char *,
112 virtual void FileEvent(
const char *,
const char *,
const char *,
const char *,
Bool_t) {}
118 virtual void SaveAs(
const char *filename=
"",
Option_t *option=
"")
const;
#define ClassDef(name, id)
A TTree is a list of TBranches.
Using a TBrowser one can browse all ROOT objects.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
A TGraphErrors is a TGraph with error bars.
Mother of all ROOT objects.
A Pave (see TPave) with text, lines or/and boxes inside.
const char * Data() const
Base class for several text objects.
TTree I/O performance measurement.
virtual Long64_t GetNumEvents() const
virtual void SetMissed(size_t bi, size_t basketNumber)
TGraphErrors * fGraphIO
pointer to the Tree being monitored
virtual void SetGraphIO(TGraphErrors *gr)
virtual void Print(Option_t *option="") const
Print the TTree I/O perf stats.
virtual void SetLoadedMiss(TBranch *b, size_t basketNumber)
virtual void SetRealNorm(Double_t rnorm)
virtual void SetLoaded(size_t bi, size_t basketNumber)
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
virtual void SetName(const char *name)
virtual void SetLoadedMiss(size_t bi, size_t basketNumber)
virtual void Draw(Option_t *option="")
Draw the TTree I/O perf graph.
virtual void SetCompress(Double_t cx)
virtual void SetBytesReadExtra(Long64_t nbytes)
const char * GetName() const
Returns name of object.
virtual void SimpleEvent(EEventType)
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Return distance to one of the objects in the TTreePerfStats.
virtual void RateEvent(Double_t, Double_t, Long64_t, Long64_t)
BasketInfo & GetBasketInfo(TBranch *b, size_t basketNumber)
Return the BasketInfo corresponding to the given branch and basket.
std::vector< std::vector< BasketInfo > > fBasketsInfo
TTree * fTree
pointer to the file containing the Tree
virtual void SetReadaheadSize(Int_t nbytes)
virtual void UpdateBranchIndices(TObjArray *branchNames)
Update the fBranchIndexCache collection to match the current TTree given the ordered list of branch n...
virtual void SetBytesRead(Long64_t nbytes)
TStopwatch * GetStopwatch() const
virtual void FileEvent(const char *, const char *, const char *, const char *, Bool_t)
virtual void Paint(Option_t *chopt="")
Draw the TTree I/O perf graph.
TGraphErrors * GetGraphTime()
BasketList_t GetDuplicateBasketCache() const
Return the collection of baskets which have been read by the TTreeCache more than once.
virtual void SetMissed(TBranch *b, size_t basketNumber)
virtual Long64_t GetBytesRead() const
virtual Double_t GetCpuTime() const
virtual void SetNumEvents(Long64_t)
virtual void Finish()
When the run is finished this function must be called to save the current parameters in the file and ...
virtual Long64_t GetBytesReadExtra() const
virtual void SetTreeCacheSize(Int_t nbytes)
virtual Int_t GetReadCalls() const
virtual void SetUsed(TBranch *b, size_t basketNumber)
virtual void SetLoaded(TBranch *b, size_t basketNumber)
virtual Int_t GetReadaheadSize() const
const char * GetHostInfo() const
virtual void FileOpenEvent(TFile *, const char *, Double_t)
virtual Double_t GetUnzipTime() const
virtual void SaveAs(const char *filename="", Option_t *option="") const
Save this object to filename.
virtual Double_t GetRealTime() const
virtual void SetUsed(size_t bi, size_t basketNumber)
virtual void UnzipEvent(TObject *tree, Long64_t pos, Double_t start, Int_t complen, Int_t objlen)
Record TTree unzip event.
virtual void SetUnzipTime(Double_t uztime)
virtual void SetReadCalls(Int_t ncalls)
virtual Double_t GetDiskTime() const
std::unordered_map< TBranch *, size_t > fBranchIndexCache
virtual void Browse(TBrowser *b)
Browse.
virtual void SetGraphTime(TGraphErrors *gr)
virtual void PacketEvent(const char *, const char *, const char *, Long64_t, Double_t, Double_t, Double_t, Long64_t)
virtual void PrintBasketInfo(Option_t *option="") const
Print the TTree basket information.
virtual Int_t GetNleaves() const
std::vector< std::pair< TBranch *, std::vector< size_t > > > BasketList_t
virtual Int_t GetTreeCacheSize() const
virtual void SetRealTime(Double_t rtime)
TGraphErrors * fGraphTime
virtual void SetDiskTime(Double_t t)
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Return distance to one of the objects in the TTreePerfStats.
virtual void SetNleaves(Int_t nleaves)
TGraphErrors * GetGraphIO()
virtual ~TTreePerfStats()
Destructor.
virtual void SetCpuTime(Double_t cptime)
TTreePerfStats()
default constructor (used when reading an object only)
virtual void SetHostInfo(const char *info)
virtual void FileReadEvent(TFile *file, Int_t len, Double_t start)
Record TTree file read event.
A TTree represents a columnar dataset.
Provides the interface for the PROOF internal performance measurement and event tracing.