Loading [MathJax]/extensions/tex2jax.js
 |
ATLAS Offline Software
|
◆ compareTreeFiles()
def python.compareTCTs.compareTreeFiles |
( |
|
rName, |
|
|
|
vName, |
|
|
|
details |
|
) |
| |
Definition at line 17 of file compareTCTs.py.
18 if rName.startswith(
"/castor"):
19 rFile=TFile.Open(
"root://castoratlas/"+rName)
20 elif rName.startswith(
"/eos"):
21 rFile=TFile.Open(
"root://eosatlas.cern.ch/"+rName)
23 rFile=TFile.Open(rName)
25 if vName.startswith(
"/castor"):
26 vFile=TFile.Open(
"root://castoratlas/"+vName)
27 elif vName.startswith(
"/eos"):
28 vFile=TFile.Open(
"root://eosatlas.cern.ch/"+vName)
30 vFile=TFile.Open(vName)
33 print (
"Failed to open reference file",rName)
37 print (
"Failed to open validation file",vName)
41 for k
in rFile.GetListOfKeys():
42 rKeys.add(k.GetName())
44 for k
in vFile.GetListOfKeys():
45 vKeys.add(k.GetName())
52 print (
"ERROR no common trees names found in files",rName,vName)
60 if not isinstance(rTree,TTree):
62 if not isinstance(vTree,TTree):
64 print (
"Comparing TTree",k)
◆ diffPickleFiles()
def python.compareTCTs.diffPickleFiles |
( |
|
ref, |
|
|
|
chk, |
|
|
|
details |
|
) |
| |
Definition at line 85 of file compareTCTs.py.
87 ref_nlines =
open(ref).readlines()
88 chk_nlines =
open(chk).readlines()
89 if len(ref_nlines) == len(chk_nlines):
91 print (
"same number of lines!")
93 print (ref,
" has ",len(ref_nlines),
" lines." )
94 print (chk,
" has ",len(chk_nlines),
" lines.")
104 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 70 of file compareTCTs.py.
70 def diffPoolFiles(ref,chk,details,toIgnore = ['RecoTimingObj_p1_RAWtoESD_timings', 'RecoTimingObj_p1_ESDtoAOD_timings']):
71 import PyUtils.PoolFile
as PF
73 df = PF.DiffFiles( refFileName = ref, chkFileName = chk, ignoreList = toIgnore)
77 df.printSummary(details)
81 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)