![]() |
ATLAS Offline Software
|
Functions | |
| AthenaLiteFileInfo (filename, filetype, retrieveKeys=athFileInterestingKeys) | |
| New lightweight interface to getting a single file's metadata. | |
| HISTEntries (fileName) | |
| Determines number of events in a HIST file. | |
| NTUPEntries (fileName, treeNames) | |
| Determines number of entries in NTUP file with given tree names. | |
| PRWEntries (fileName, integral=False) | |
| Determines number of entries in PRW file. | |
| PHYSVALEntries (fileName, integral=False) | |
| Determines number of entries in NTUP_PHYSVAL file. | |
| ROOTGetSize (filename) | |
| Get the size of a file via ROOT's TFile. | |
| urlType (filename) | |
| Return the LAN access type for a file URL. | |
Variables | |
| msg = logging.getLogger(__name__) | |
| list | athFileInterestingKeys = ['file_size', 'file_guid', 'file_type', 'nentries'] |
| python.trfFileUtils.AthenaLiteFileInfo | ( | filename, | |
| filetype, | |||
| retrieveKeys = athFileInterestingKeys ) |
New lightweight interface to getting a single file's metadata.
Definition at line 23 of file trfFileUtils.py.
| python.trfFileUtils.HISTEntries | ( | fileName | ) |
Determines number of events in a HIST file.
Basically taken from PyJobTransformsCore.trfutil.MonitorHistFile
| fileName | Path to the HIST file. |
None if the determination failed. Definition at line 55 of file trfFileUtils.py.
| python.trfFileUtils.NTUPEntries | ( | fileName, | |
| treeNames ) |
Determines number of entries in NTUP file with given tree names.
Basically taken from PyJobTransformsCore.trfutil.ntup_entries.
| fileName | Path to the NTUP file. |
| treeNames | Tree name or list of tree names. In the latter case it is checked if all trees contain the same number of events |
None if the determination failed. Definition at line 153 of file trfFileUtils.py.
| python.trfFileUtils.PHYSVALEntries | ( | fileName, | |
| integral = False ) |
Determines number of entries in NTUP_PHYSVAL file.
| fileName | Path to the PHYSVAL file. |
| integral | Returns sum of weights if true |
None if the determination failed. Definition at line 249 of file trfFileUtils.py.
| python.trfFileUtils.PRWEntries | ( | fileName, | |
| integral = False ) |
Determines number of entries in PRW file.
| fileName | Path to the PRW file. |
| integral | Returns sum of weights if true |
None if the determination failed. Definition at line 206 of file trfFileUtils.py.
| python.trfFileUtils.ROOTGetSize | ( | filename | ) |
Get the size of a file via ROOT's TFile.
Use TFile.Open to retrieve a ROOT filehandle, which will deal with all non-posix filesystems. Return the GetSize() value. The option filetype=raw is added to ensure this works for non-ROOT files too (e.g. BS)
| filename | Filename to get size of |
Definition at line 282 of file trfFileUtils.py.
| python.trfFileUtils.urlType | ( | filename | ) |
Return the LAN access type for a file URL.
| filename | Name of file to examine |
Definition at line 313 of file trfFileUtils.py.
| list python.trfFileUtils.athFileInterestingKeys = ['file_size', 'file_guid', 'file_type', 'nentries'] |
Definition at line 20 of file trfFileUtils.py.
| python.trfFileUtils.msg = logging.getLogger(__name__) |
Definition at line 10 of file trfFileUtils.py.