9msg = logging.getLogger(__name__)
11import PyJobTransforms.trfExceptions
as trfExceptions
15 from PyJobTransforms.trfValidateRootFile
import checkFile, msg
as logger
16 import multiprocessing
18 if (level := msg.getEffectiveLevel()) < logger.getEffectiveLevel():
19 logger.setLevel(level)
20 msg.debug(f
"Set logging level of {logger.name!r} to {logging.getLevelName(level)!r}")
22 msg.debug(f
"Current process: {multiprocessing.current_process().name}")
24 rc =
checkFile(fileName=fname, the_type=
'event', requireTree=
False)
26 return (
True,
"integrity of {fileName} good".format(fileName = str(fname)))
28 return (
False,
"integrity of {fileName} bad: return code: {integrityStatus}".format(fileName = str(fname), integrityStatus = rc))
32 from PyJobTransforms.trfValidateRootFile
import checkFile
33 rc =
checkFile(fileName = fname, the_type =
'basket', requireTree =
False)
35 return (
True,
"integrity of {fileName} good".format(fileName = str(fname)))
37 return (
False,
"integrity of {fileName} bad: return code: {integrityStatus}".format(fileName = str(fname), integrityStatus = rc))
43 rc = call([
"AtlListBSEvents",
"-c", fname],
45 message =
"Report by AtlListBSEvents: ",
51 return (
True,
"integrity of {fileName} good".format(fileName = str(fname)))
53 return (
False,
"integrity of {fileName} bad: return code: {integrityStatus}".format(fileName = str(fname), integrityStatus = rc))
59 return (
True,
"integrity of {fileName} good".format(fileName = str(fname)))
61 return (
False,
"integrity of {fileName} bad: return code: {integrityStatus}".format(fileName = str(fname), integrityStatus = rc))
returnIntegrityOfBSFile(fname)
Integrity function for file class argBSFile.
returnIntegrityOfHISTFile(fname)
Integrity function for file class argHISTFile.
returnIntegrityOfNTUPFile(fname)
Integrity function for file class argNTUPFile.
returnIntegrityOfPOOLFile(fname)
Integrity function for file class argPOOLFile, argHITSFile, argRDOFile and argEVNTFile.