ATLAS Offline Software
Functions | Variables
python.trfFileValidationFunctions Namespace Reference

Functions

def returnIntegrityOfPOOLFile (fname)
 Integrity function for file class argPOOLFile, argHITSFile, argRDOFile and argEVNTFile. More...
 
def returnIntegrityOfNTUPFile (fname)
 Integrity function for file class argNTUPFile. More...
 
def returnIntegrityOfBSFile (fname)
 Integrity function for file class argBSFile. More...
 
def returnIntegrityOfHISTFile (fname)
 Integrity function for file class argHISTFile. More...
 

Variables

 msg
 

Function Documentation

◆ returnIntegrityOfBSFile()

def python.trfFileValidationFunctions.returnIntegrityOfBSFile (   fname)

Integrity function for file class argBSFile.

Definition at line 33 of file trfFileValidationFunctions.py.

33 def returnIntegrityOfBSFile(fname):
34  try:
35  from PyJobTransforms.trfUtils import call
36  rc = call(["AtlListBSEvents", "-c", fname],
37  logger = msg,
38  message = "Report by AtlListBSEvents: ",
39  timeout = None
40  )
41  except trfExceptions.TransformTimeoutException:
42  return False
43  if rc == 0:
44  return (True, "integrity of {fileName} good".format(fileName = str(fname)))
45  else:
46  return (False, "integrity of {fileName} bad: return code: {integrityStatus}".format(fileName = str(fname), integrityStatus = rc))
47 

◆ returnIntegrityOfHISTFile()

def python.trfFileValidationFunctions.returnIntegrityOfHISTFile (   fname)

Integrity function for file class argHISTFile.

Definition at line 49 of file trfFileValidationFunctions.py.

49 def returnIntegrityOfHISTFile(fname):
50  rc = 0 # (default behaviour)
51  if rc == 0:
52  return (True, "integrity of {fileName} good".format(fileName = str(fname)))
53  else:
54  return (False, "integrity of {fileName} bad: return code: {integrityStatus}".format(fileName = str(fname), integrityStatus = rc))

◆ returnIntegrityOfNTUPFile()

def python.trfFileValidationFunctions.returnIntegrityOfNTUPFile (   fname)

Integrity function for file class argNTUPFile.

Definition at line 24 of file trfFileValidationFunctions.py.

24 def returnIntegrityOfNTUPFile(fname):
25  from PyJobTransforms.trfValidateRootFile import checkFile
26  rc = checkFile(fileName = fname, type = 'basket', requireTree = False)
27  if rc == 0:
28  return (True, "integrity of {fileName} good".format(fileName = str(fname)))
29  else:
30  return (False, "integrity of {fileName} bad: return code: {integrityStatus}".format(fileName = str(fname), integrityStatus = rc))
31 

◆ returnIntegrityOfPOOLFile()

def python.trfFileValidationFunctions.returnIntegrityOfPOOLFile (   fname)

Integrity function for file class argPOOLFile, argHITSFile, argRDOFile and argEVNTFile.

Definition at line 15 of file trfFileValidationFunctions.py.

15 def returnIntegrityOfPOOLFile(fname):
16  from PyJobTransforms.trfValidateRootFile import checkFile
17  rc = checkFile(fileName = fname, type = 'event', requireTree = True)
18  if rc == 0:
19  return (True, "integrity of {fileName} good".format(fileName = str(fname)))
20  else:
21  return (False, "integrity of {fileName} bad: return code: {integrityStatus}".format(fileName = str(fname), integrityStatus = rc))
22 

Variable Documentation

◆ msg

python.trfFileValidationFunctions.msg

Definition at line 10 of file trfFileValidationFunctions.py.

python.trfFileValidationFunctions.returnIntegrityOfNTUPFile
def returnIntegrityOfNTUPFile(fname)
Integrity function for file class argNTUPFile.
Definition: trfFileValidationFunctions.py:24
vtune_athena.format
format
Definition: vtune_athena.py:14
python.trfFileValidationFunctions.returnIntegrityOfPOOLFile
def returnIntegrityOfPOOLFile(fname)
Integrity function for file class argPOOLFile, argHITSFile, argRDOFile and argEVNTFile.
Definition: trfFileValidationFunctions.py:15
python.trfUtils.call
def call(args, bufsize=0, executable=None, stdin=None, preexec_fn=None, close_fds=False, shell=False, cwd=None, env=None, universal_newlines=False, startupinfo=None, creationflags=0, message="", logger=msg, loglevel=None, timeout=None, retry=2, timefactor=1.5, sleeptime=10)
Definition: trfUtils.py:155
checkFile
Definition: checkFile.py:1
python.trfFileValidationFunctions.returnIntegrityOfHISTFile
def returnIntegrityOfHISTFile(fname)
Integrity function for file class argHISTFile.
Definition: trfFileValidationFunctions.py:49
python.trfFileValidationFunctions.returnIntegrityOfBSFile
def returnIntegrityOfBSFile(fname)
Integrity function for file class argBSFile.
Definition: trfFileValidationFunctions.py:33
PyJobTransforms.trfUtils
Transform utility functions.
str
Definition: BTagTrackIpAccessor.cxx:11