ATLAS Offline Software
|
Classes | |
class | AccessError |
class | Backend |
class | EOS |
class | FileSet |
class | FilterError |
class | Local |
Functions | |
def | deprecated (message) |
def | _rationalise (path) |
def | storageManager (name) |
def | filelist (files, prefix=None) |
def | ls (path, longls=False) |
def | cp (src, dest='.') |
def | get_lumi_blocks (root_file) |
def | make_lumi_block_map_file (file_set, path) |
Variables | |
StorageManager = namedtuple('StorageManager', ['name', 'prefix', 'cp', 'ls', 'longls']) | |
CastorMgr = StorageManager(name='castor', prefix='root://castoratlas/', cp='xrdcp', ls='nsls %s', longls='nsls -l %s') | |
RFIOMgr = StorageManager(name='rfio', prefix='rfio:', cp='rfcp', ls='rfdir %s', longls='rfdir %s') | |
EOSMgr = StorageManager(name='eos', prefix='root://eosatlas.cern.ch/', cp='xrdcp', ls='/bin/sh -l -c "LD_LIBRARY_PATH=/usr/lib64/ eos ls %s"', longls='/bin/sh -l -c "LD_LIBRARY_PATH=/usr/lib64/ eos ls -l %s"') | |
UnixMgr = StorageManager(name='unix', prefix='', cp='cp', ls='ls %s', longls='ls -l %s') | |
|
private |
Rationalise a path, removing prefix and esuring single leading slash
Definition at line 35 of file DiskUtils.py.
def python.DiskUtils.cp | ( | src, | |
dest = '.' |
|||
) |
Definition at line 128 of file DiskUtils.py.
def python.DiskUtils.deprecated | ( | message | ) |
Definition at line 14 of file DiskUtils.py.
def python.DiskUtils.filelist | ( | files, | |
prefix = None |
|||
) |
lists CASTOR/EOS name server directory/file entries. If path is a directory, filelist lists the entries in the directory; they are sorted alphabetically. `files` specifies the CASTOR/EOS pathname. `prefix` specifies the prefix one wants to prepend to the path found. (e.g. prefix='root://castoratlas/' or 'root://eosatlas.cern.ch//') if prefix=True it will determin the prefix based on the pathname ex: filelist('/castor/cern.ch/atlas/*') filelist('/castor/cern.ch/atl*/foo?[bar]/*.pool.root.?') filelist('/eos/atlas/*', prefix='root://eosatlas.cern.ch/') filelist('/castor/cern.ch/atlas/*', prefix=True)
Definition at line 64 of file DiskUtils.py.
def python.DiskUtils.get_lumi_blocks | ( | root_file | ) |
Definition at line 143 of file DiskUtils.py.
def python.DiskUtils.ls | ( | path, | |
longls = False |
|||
) |
Simple list of files `longls` specifies long listing format
Definition at line 112 of file DiskUtils.py.
def python.DiskUtils.make_lumi_block_map_file | ( | file_set, | |
path | |||
) |
Definition at line 209 of file DiskUtils.py.
def python.DiskUtils.storageManager | ( | name | ) |
Return SotrageManager to deal with listing, copying and reading files from various storage systems
Definition at line 51 of file DiskUtils.py.
python.DiskUtils.CastorMgr = StorageManager(name='castor', prefix='root://castoratlas/', cp='xrdcp', ls='nsls %s', longls='nsls -l %s') |
Definition at line 30 of file DiskUtils.py.
python.DiskUtils.EOSMgr = StorageManager(name='eos', prefix='root://eosatlas.cern.ch/', cp='xrdcp', ls='/bin/sh -l -c "LD_LIBRARY_PATH=/usr/lib64/ eos ls %s"', longls='/bin/sh -l -c "LD_LIBRARY_PATH=/usr/lib64/ eos ls -l %s"') |
Definition at line 32 of file DiskUtils.py.
python.DiskUtils.RFIOMgr = StorageManager(name='rfio', prefix='rfio:', cp='rfcp', ls='rfdir %s', longls='rfdir %s') |
Definition at line 31 of file DiskUtils.py.
python.DiskUtils.StorageManager = namedtuple('StorageManager', ['name', 'prefix', 'cp', 'ls', 'longls']) |
Definition at line 29 of file DiskUtils.py.
python.DiskUtils.UnixMgr = StorageManager(name='unix', prefix='', cp='cp', ls='ls %s', longls='ls -l %s') |
Definition at line 33 of file DiskUtils.py.