ATLAS Offline Software
|
Classes | |
class | Counter |
class | DiffFiles |
class | PoolFile |
class | PoolFileCatalog |
class | PoolOpts |
class | PoolRecord |
class | Units |
— data ---------------------------------------------------------------— More... | |
Functions | |
def | isRNTuple (obj) |
def | _get_total_size (branch) |
def | file_name (fname) |
def | _setup_ssl (root) |
def | _root_open (fname) |
def | retrieveBranchInfos (branch, poolRecord, ident="") |
def | make_pool_record (branch, dirType) |
def | extract_items (pool_file, verbose=True, items_type='eventdata') |
def | poolRecord (self, name) |
def | saveReport (self, fileName) |
def | _save_shelve_report (self, fileName) |
def | _save_csv_report (self, fileName) |
def | __del__ (self) |
Variables | |
__author__ | |
__all__ | |
— data ---------------------------------------------------------------— More... | |
stdout | |
out.write( "#### Map ####" + os.linesep ) out.flush() self.poolFile.Map() out.write( "#" * 80 + os.linesep ) More... | |
poolFile | |
def python.PoolFile.__del__ | ( | self | ) |
Definition at line 967 of file PoolFile.py.
|
private |
Definition at line 309 of file PoolFile.py.
|
private |
Definition at line 395 of file PoolFile.py.
|
private |
|
private |
Save all the gathered informations into a python shelve Data can then be read like so: >>> import shelve >>> db = shelve.open( 'myfile.dat', 'r' ) >>> report = db['report'] >>> print ('fileSize:',report['fileSize']) >>> print ('dataHeader/memSize:',report['dataHeader'].memSize) >>> for d in report['data']: ... print ('data:',d.name,d.nEntries,d.memSize)
Definition at line 920 of file PoolFile.py.
|
private |
Definition at line 381 of file PoolFile.py.
def python.PoolFile.extract_items | ( | pool_file, | |
verbose = True , |
|||
items_type = 'eventdata' |
|||
) |
Helper function to read a POOL file and extract the item-list from the DataHeader content. @params `pool_file` the name of the pool file to inspect `verbose` self-explanatory `items_type` what kind of items one is interested in allowed values: 'eventdata' 'metadata' Note: this function is actually executed in a forked sub-process if `fork` is True
Definition at line 454 of file PoolFile.py.
def python.PoolFile.file_name | ( | fname | ) |
take a file name, return the pair (protocol, 'real' file name)
Definition at line 321 of file PoolFile.py.
def python.PoolFile.isRNTuple | ( | obj | ) |
Definition at line 36 of file PoolFile.py.
def python.PoolFile.make_pool_record | ( | branch, | |
dirType | |||
) |
Definition at line 441 of file PoolFile.py.
def python.PoolFile.poolRecord | ( | self, | |
name | |||
) |
Return a PoolRecord according to its (branch) name Raise KeyError if no match is found
Definition at line 900 of file PoolFile.py.
def python.PoolFile.retrieveBranchInfos | ( | branch, | |
poolRecord, | |||
ident = "" |
|||
) |
Definition at line 420 of file PoolFile.py.
def python.PoolFile.saveReport | ( | self, | |
fileName | |||
) |
Save all the gathered informations into a python shelve or a CSV file (depending on the @param `fileName` extension)
Definition at line 910 of file PoolFile.py.
|
private |
— data ---------------------------------------------------------------—
Definition at line 11 of file PoolFile.py.
|
private |
Definition at line 8 of file PoolFile.py.
python.PoolFile.poolFile |
Definition at line 971 of file PoolFile.py.
python.PoolFile.stdout |
out.write( "#### Map ####" + os.linesep ) out.flush() self.poolFile.Map() out.write( "#" * 80 + os.linesep )
Definition at line 897 of file PoolFile.py.