ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
checkxAOD.ContainerInfo Class Reference

Class for holding information about a single container. More...

Inheritance diagram for checkxAOD.ContainerInfo:
Collaboration diagram for checkxAOD.ContainerInfo:

Public Member Functions

def __init__ (self, name, memSize, diskSize, nEntries)
 Constructor. More...
 
def name (self)
 The name of the container. More...
 
def memSize (self)
 Size of the container in memory in kilobytes. More...
 
def diskSize (self)
 Size of the container on disk in kilobytes. More...
 
def diskSizePerEntry (self)
 Average size of the container per event in kilobytes. More...
 
def compression (self)
 Compression factor for the container. More...
 
def nEntries (self)
 The number of entries saved for this container. More...
 

Private Attributes

 _name
 
 _memSize
 
 _diskSize
 
 _nEntries
 

Detailed Description

Class for holding information about a single container.

Modeled on PoolRecord from the offline code...

Definition at line 77 of file Control/xAODRootAccess/scripts/checkxAOD.py.

Constructor & Destructor Documentation

◆ __init__()

def checkxAOD.ContainerInfo.__init__ (   self,
  name,
  memSize,
  diskSize,
  nEntries 
)

Constructor.

Definition at line 79 of file Control/xAODRootAccess/scripts/checkxAOD.py.

79  def __init__( self, name, memSize, diskSize, nEntries ):
80  # Call the base class's constructor:
81  object.__init__( self )
82  # Remember the properties:
83  self._name = name
84  self._memSize = memSize
85  self._diskSize = diskSize
86  self._nEntries = nEntries
87  return

Member Function Documentation

◆ compression()

def checkxAOD.ContainerInfo.compression (   self)

Compression factor for the container.

Definition at line 101 of file Control/xAODRootAccess/scripts/checkxAOD.py.

101  def compression( self ):
102  return self.memSize() / self.diskSize()

◆ diskSize()

def checkxAOD.ContainerInfo.diskSize (   self)

Size of the container on disk in kilobytes.

Definition at line 95 of file Control/xAODRootAccess/scripts/checkxAOD.py.

95  def diskSize( self ):
96  return float( self._diskSize ) / 1024.

◆ diskSizePerEntry()

def checkxAOD.ContainerInfo.diskSizePerEntry (   self)

Average size of the container per event in kilobytes.

Definition at line 98 of file Control/xAODRootAccess/scripts/checkxAOD.py.

98  def diskSizePerEntry( self ):
99  return self.diskSize() / self._nEntries

◆ memSize()

def checkxAOD.ContainerInfo.memSize (   self)

Size of the container in memory in kilobytes.

Definition at line 92 of file Control/xAODRootAccess/scripts/checkxAOD.py.

92  def memSize( self ):
93  return float( self._memSize ) / 1024.

◆ name()

def checkxAOD.ContainerInfo.name (   self)

The name of the container.

Definition at line 89 of file Control/xAODRootAccess/scripts/checkxAOD.py.

89  def name( self ):
90  return self._name

◆ nEntries()

def checkxAOD.ContainerInfo.nEntries (   self)

The number of entries saved for this container.

Definition at line 104 of file Control/xAODRootAccess/scripts/checkxAOD.py.

104  def nEntries( self ):
105  return self._nEntries
106 

Member Data Documentation

◆ _diskSize

checkxAOD.ContainerInfo._diskSize
private

Definition at line 85 of file Control/xAODRootAccess/scripts/checkxAOD.py.

◆ _memSize

checkxAOD.ContainerInfo._memSize
private

Definition at line 84 of file Control/xAODRootAccess/scripts/checkxAOD.py.

◆ _name

checkxAOD.ContainerInfo._name
private

Definition at line 83 of file Control/xAODRootAccess/scripts/checkxAOD.py.

◆ _nEntries

checkxAOD.ContainerInfo._nEntries
private

Definition at line 86 of file Control/xAODRootAccess/scripts/checkxAOD.py.


The documentation for this class was generated from the following file:
checkxAOD.memSize
memSize
Definition: Tools/PyUtils/bin/checkxAOD.py:167
checkxAOD.diskSize
diskSize
Definition: Tools/PyUtils/bin/checkxAOD.py:168
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
dqBeamSpot.nEntries
int nEntries
Definition: dqBeamSpot.py:73
readCCLHist.float
float
Definition: readCCLHist.py:83
python.BeamSpotUpdate.compression
compression
Definition: BeamSpotUpdate.py:188