ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
xAOD::BranchStats Class Reference

Class describing the access statistics of one (sub-)branch. More...

#include <ReadStats.h>

Inheritance diagram for xAOD::BranchStats:
Collaboration diagram for xAOD::BranchStats:

Public Member Functions

 BranchStats (const char *name="xAODBranch", const char *type="Int_t", ::Int_t nTreesAccessed=0, ::Long64_t nReadEntries=0, ::Long64_t nUnzippedBytes=0, ::Long64_t nZippedBytes=0)
 Constructor specifying all parameters. More...
 
 BranchStats (const BranchStats &parent)
 Copy constructor. More...
 
BranchStatsoperator= (const BranchStats &parent)
 Assignment operator. More...
 
BranchStatsadd (const BranchStats &rh)
 Function merging two objects. More...
 
BranchStatsoperator+= (const BranchStats &rh)
 Operator merging two objects. More...
 
Accessor/setter functions for the kept information
::Int_t treesAccessed () const
 Get how many trees/files were accessed to read this branch. More...
 
void setTreesAccessed (::Int_t nTreesAccessed)
 Set how many trees were accessed to read this branch. More...
 
::Long64_t readEntries () const
 Get how many entries were read from this branch. More...
 
void setReadEntries (::Long64_t nReadEntries)
 Set how many entries were read from this branch. More...
 
::Long64_t unzippedBytesRead () const
 Get how many unzipped bytes were read from this branch in total. More...
 
void setUnzippedBytesRead (::Long64_t nUnzippedBytes)
 Set how many unzipped bytes were read from this branch in total. More...
 
::Long64_t zippedBytesRead () const
 Get how many zipped bytes were read from this branch in total. More...
 
void setZippedBytesRead (::Long64_t nZippedBytes)
 Set how many zipped bytes were read from this branch in total. More...
 
"ROOT-specific" functions
::Int_t Merge (::TCollection *coll)
 Function merging the information from multiple objects. More...
 
void Print (::Option_t *option="") const
 Print information about the collected statistics. More...
 

Private Attributes

::Int_t m_treesAccessed
 Number of trees/files accessed for this branch. More...
 
::Long64_t m_readEntries
 Number of entries read from this branch. More...
 
::Long64_t m_unzippedBytes
 Number of unzipped bytes read from this branch. More...
 
::Long64_t m_zippedBytes
 Number of zipped bytes read from this branch. More...
 

Detailed Description

Class describing the access statistics of one (sub-)branch.

Objects of this class are used to describe a single xAOD branch's access pattern.

Author
Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h
Revision
642099
Date
2015-01-27 17:43:18 +0100 (Tue, 27 Jan 2015)

Definition at line 43 of file ReadStats.h.

Constructor & Destructor Documentation

◆ BranchStats() [1/2]

xAOD::BranchStats::BranchStats ( const char name = "xAODBranch",
const char type = "Int_t",
::Int_t  nTreesAccessed = 0,
::Long64_t  nReadEntries = 0,
::Long64_t  nUnzippedBytes = 0,
::Long64_t  nZippedBytes = 0 
)

Constructor specifying all parameters.

◆ BranchStats() [2/2]

xAOD::BranchStats::BranchStats ( const BranchStats parent)

Copy constructor.

Member Function Documentation

◆ add()

BranchStats& xAOD::BranchStats::add ( const BranchStats rh)

Function merging two objects.

◆ Merge()

::Int_t xAOD::BranchStats::Merge ( ::TCollection *  coll)

Function merging the information from multiple objects.

◆ operator+=()

BranchStats& xAOD::BranchStats::operator+= ( const BranchStats rh)

Operator merging two objects.

◆ operator=()

BranchStats& xAOD::BranchStats::operator= ( const BranchStats parent)

Assignment operator.

◆ Print()

void xAOD::BranchStats::Print ( ::Option_t *  option = "") const

Print information about the collected statistics.

◆ readEntries()

::Long64_t xAOD::BranchStats::readEntries ( ) const

Get how many entries were read from this branch.

◆ setReadEntries()

void xAOD::BranchStats::setReadEntries ( ::Long64_t  nReadEntries)

Set how many entries were read from this branch.

◆ setTreesAccessed()

void xAOD::BranchStats::setTreesAccessed ( ::Int_t  nTreesAccessed)

Set how many trees were accessed to read this branch.

◆ setUnzippedBytesRead()

void xAOD::BranchStats::setUnzippedBytesRead ( ::Long64_t  nUnzippedBytes)

Set how many unzipped bytes were read from this branch in total.

◆ setZippedBytesRead()

void xAOD::BranchStats::setZippedBytesRead ( ::Long64_t  nZippedBytes)

Set how many zipped bytes were read from this branch in total.

◆ treesAccessed()

::Int_t xAOD::BranchStats::treesAccessed ( ) const

Get how many trees/files were accessed to read this branch.

◆ unzippedBytesRead()

::Long64_t xAOD::BranchStats::unzippedBytesRead ( ) const

Get how many unzipped bytes were read from this branch in total.

◆ zippedBytesRead()

::Long64_t xAOD::BranchStats::zippedBytesRead ( ) const

Get how many zipped bytes were read from this branch in total.

Member Data Documentation

◆ m_readEntries

::Long64_t xAOD::BranchStats::m_readEntries
private

Number of entries read from this branch.

Definition at line 102 of file ReadStats.h.

◆ m_treesAccessed

::Int_t xAOD::BranchStats::m_treesAccessed
private

Number of trees/files accessed for this branch.

Definition at line 100 of file ReadStats.h.

◆ m_unzippedBytes

::Long64_t xAOD::BranchStats::m_unzippedBytes
private

Number of unzipped bytes read from this branch.

Definition at line 104 of file ReadStats.h.

◆ m_zippedBytes

::Long64_t xAOD::BranchStats::m_zippedBytes
private

Number of zipped bytes read from this branch.

Definition at line 106 of file ReadStats.h.


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