 |
ATLAS Offline Software
|
◆ compareTreeFiles()
| def python.compareTCTs.compareTreeFiles |
( |
|
rName, |
|
|
|
vName, |
|
|
|
details |
|
) |
| |
Definition at line 16 of file compareTCTs.py.
17 if rName.startswith(
"/castor"):
18 rFile=TFile.Open(
"root://castoratlas/"+rName)
19 elif rName.startswith(
"/eos"):
20 rFile=TFile.Open(
"root://eosatlas.cern.ch/"+rName)
22 rFile=TFile.Open(rName)
24 if vName.startswith(
"/castor"):
25 vFile=TFile.Open(
"root://castoratlas/"+vName)
26 elif vName.startswith(
"/eos"):
27 vFile=TFile.Open(
"root://eosatlas.cern.ch/"+vName)
29 vFile=TFile.Open(vName)
32 print (
"Failed to open reference file",rName)
36 print (
"Failed to open validation file",vName)
40 for k
in rFile.GetListOfKeys():
41 rKeys.add(k.GetName())
43 for k
in vFile.GetListOfKeys():
44 vKeys.add(k.GetName())
51 print (
"ERROR no common trees names found in files",rName,vName)
59 if not isinstance(rTree,TTree):
61 if not isinstance(vTree,TTree):
63 print (
"Comparing TTree",k)
◆ diffPickleFiles()
| def python.compareTCTs.diffPickleFiles |
( |
|
ref, |
|
|
|
chk, |
|
|
|
details |
|
) |
| |
Definition at line 84 of file compareTCTs.py.
86 ref_nlines =
open(ref).readlines()
87 chk_nlines =
open(chk).readlines()
88 if len(ref_nlines) == len(chk_nlines):
90 print (
"same number of lines!")
92 print (ref,
" has ",len(ref_nlines),
" lines." )
93 print (chk,
" has ",len(chk_nlines),
" lines.")
103 print (
"Exception caught while comparinging jobReport(_RecoTrf)?.gpickle files")
◆ diffPoolFiles()
| def python.compareTCTs.diffPoolFiles |
( |
|
ref, |
|
|
|
chk, |
|
|
|
details, |
|
|
|
toIgnore = ['RecoTimingObj_p1_RAWtoESD_timings', 'RecoTimingObj_p1_ESDtoAOD_timings'] |
|
) |
| |
Definition at line 69 of file compareTCTs.py.
69 def diffPoolFiles(ref,chk,details,toIgnore = ['RecoTimingObj_p1_RAWtoESD_timings', 'RecoTimingObj_p1_ESDtoAOD_timings']):
70 import PyUtils.PoolFile
as PF
72 df = PF.DiffFiles( refFileName = ref, chkFileName = chk, ignoreList = toIgnore)
76 df.printSummary(details)
80 print (
"Exception caught while diff'ing POOL files")
◆ allPatterns
| python.compareTCTs.allPatterns |
◆ args
◆ complain
| python.compareTCTs.complain |
◆ cpu_r
◆ cpu_v
◆ details
| python.compareTCTs.details |
◆ detailsFN
| python.compareTCTs.detailsFN |
◆ diffroot
| python.compareTCTs.diffroot |
◆ ff
◆ fileName
| python.compareTCTs.fileName |
◆ filePattern
| python.compareTCTs.filePattern |
◆ filesToCompare
| python.compareTCTs.filesToCompare |
◆ identical
| python.compareTCTs.identical |
◆ ignoreTrees
| python.compareTCTs.ignoreTrees |
◆ isok
◆ line
◆ ln
◆ mem_r
◆ mem_v
◆ msg
◆ nDifferentFiles
| python.compareTCTs.nDifferentFiles |
◆ nIdenticalFiles
| python.compareTCTs.nIdenticalFiles |
◆ nRef
◆ nVal
◆ opts
◆ ratio
◆ refPath
| python.compareTCTs.refPath |
◆ rRef
◆ rVal
◆ stat
◆ statPerChain
| python.compareTCTs.statPerChain |
◆ sumFile
| python.compareTCTs.sumFile |
◆ sumFileName
| python.compareTCTs.sumFileName |
◆ Summary
| python.compareTCTs.Summary |
◆ tctlist
| python.compareTCTs.tctlist |
◆ valPath
| python.compareTCTs.valPath |
def diffPickleFiles(ref, chk, details)
def compareTreeFiles(rName, vName, details)
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
def diffPoolFiles(ref, chk, details, toIgnore=['RecoTimingObj_p1_RAWtoESD_timings', 'RecoTimingObj_p1_ESDtoAOD_timings'])
def diffTTree(tOld, tNew, details=None)