9msg = logging.getLogger(__name__)
11import PyJobTransforms.trfExceptions
as trfExceptions
15 from PyJobTransforms.trfValidateRootFile
import checkFile, msg
as logger
16 import multiprocessing
18 level = kwargs.get(
'level')
20 if level < msg.getEffectiveLevel():
22 msg.debug(f
"Set logging level of {msg.name!r} to {logging.getLevelName(level)!r}")
23 if level < logger.getEffectiveLevel():
24 logger.setLevel(level)
25 msg.debug(f
"Set logging level of {logger.name!r} to {logging.getLevelName(level)!r}")
27 msg.debug(f
"Current process: {multiprocessing.current_process().name}")
29 rc =
checkFile(fileName=fname, the_type=
'event', requireTree=
False)
31 return (
True,
"integrity of {fileName} good".format(fileName = str(fname)))
33 return (
False,
"integrity of {fileName} bad: return code: {integrityStatus}".format(fileName = str(fname), integrityStatus = rc))
37 from PyJobTransforms.trfValidateRootFile
import checkFile
38 rc =
checkFile(fileName = fname, the_type =
'basket', requireTree =
False)
40 return (
True,
"integrity of {fileName} good".format(fileName = str(fname)))
42 return (
False,
"integrity of {fileName} bad: return code: {integrityStatus}".format(fileName = str(fname), integrityStatus = rc))
48 rc = call([
"AtlListBSEvents",
"-c", fname],
50 message =
"Report by AtlListBSEvents: ",
56 return (
True,
"integrity of {fileName} good".format(fileName = str(fname)))
58 return (
False,
"integrity of {fileName} bad: return code: {integrityStatus}".format(fileName = str(fname), integrityStatus = rc))
64 return (
True,
"integrity of {fileName} good".format(fileName = str(fname)))
66 return (
False,
"integrity of {fileName} bad: return code: {integrityStatus}".format(fileName = str(fname), integrityStatus = rc))
returnIntegrityOfPOOLFile(fname, **kwargs)
Integrity function for file class argPOOLFile, argHITSFile, argRDOFile and argEVNTFile.
returnIntegrityOfBSFile(fname)
Integrity function for file class argBSFile.
returnIntegrityOfHISTFile(fname)
Integrity function for file class argHISTFile.
returnIntegrityOfNTUPFile(fname)
Integrity function for file class argNTUPFile.