2 import xml.etree.ElementTree
as ET
12 print (
"############# reading combine performance ")
13 tree = ET.parse(
"/afs/cern.ch/user/y/yunju/working/yunju/public/Rtt_ohpxml/CombPerf.xml")
16 for neighbor
in root.getiterator(
'histos'):
19 listpaths=neighbor.text
20 print (
"info: %s %s" % (neighbor,listpaths))
21 n1 = neighbor.text.split(
',')
24 print (stringth.find(
"Global_ISSERVER"))
25 if stringth.find(
"Global_ISSERVER")!=-1:
26 finalpath=string.replace(stringth,
"${Global_ISSERVER}/${Global_PROVIDER}",
"run_302347")
27 print (stringth.find(
"MET"))
28 if stringth.find(
"MET")!=-1:
29 finalpath=string.replace(finalpath,
"run_302347",
"run_302347/lb_432")
30 finalpath2=string.replace(finalpath,
" ",
"")
31 finalpath2=string.replace(finalpath2,
"\t",
"")
32 finalpath3=string.replace(finalpath2,
"\n",
"")
33 listhis.append(finalpath3)
35 print (
"############# reading indetglobal ")
36 treeindetglobal = ET.parse(
"/afs/cern.ch/user/y/yunju/working/yunju/public/Rtt_ohpxml/globaldq-indet_20_11_0_25_1.xml")
38 rootindetglobal = treeindetglobal.getroot()
39 for neighbor
in rootindetglobal.getiterator(
'histos'):
40 listpaths=neighbor.text
41 print (
"info: %s %s" % (neighbor,listpaths))
42 n1 = neighbor.text.split(
',')
45 print (stringth.find(
"Global_ISSERVER"))
46 if stringth.find(
"Histogramming-Global-iss/GM-Gatherer-MIG:GlobalMonitoringSegment")!=-1:
47 finalpath=string.replace(stringth,
"Histogramming-Global-iss/GM-Gatherer-MIG:GlobalMonitoringSegment",
"run_302347")
48 print (stringth.find(
"${ID_AL_BASE_PATH}"))
49 if stringth.find(
"${ID_AL_BASE_PATH}")!=-1:
50 finalpath=string.replace(finalpath,
"${ID_AL_BASE_PATH}",
"ExtendedTracks_NoTriggerSelection")
51 print (
"info with empty: %s" % ([finalpath]))
52 finalpath2=string.replace(finalpath,
"\t",
"")
53 finalpath2=string.replace(finalpath2,
" ",
"")
54 print (
"info with out empty: %s" % (finalpath2))
55 finalpath3=string.replace(finalpath2,
"\n",
"")
56 listhisIndetG.append(finalpath3)
57 print (listhisIndetG )
58 f = ROOT.TFile(
"Monitor.root")
59 print (
"############# checking combine perf ")
61 print (
"get his %s" %ith)
62 histCount = f.Get(ith)
66 print (
"missing combined perf %s " %ith )
69 print (
"############# checking indetglobal ")
70 for ith
in listhisIndetG:
71 print (
"get his %s" %ith)
72 histCount = f.Get(ith)
76 print (
"missing indet global %s " %ith )