CondTools
L1Trigger
scripts
validate-o2o-wbm.py
Go to the documentation of this file.
1
#
2
# File: validate-o2o-wbm.py (Zongru Wan)
3
#
4
5
f1 = open(
"o2o.log"
,
"r")
6
oTSC = ""
7
oGT =
""
8
oGTRUNSETTINGS =
""
9
while
True
:
10
a = f1.readline()
11
if
a[0] ==
'-'
:
12
break
13
if
a.find(
"Current TSC key = "
) != -1:
14
oTSC = a[18:].
strip
()
15
elif
a.find(
"GT "
) != -1:
16
oGT = a[3:].
strip
()
17
elif
a.find(
"L1GtPrescaleFactorsAlgoTrigRcd "
) != -1:
18
oGTRUNSETTINGS = a[31:].
strip
()
19
f1.close()
20
21
f2 = open(
"wbm.log"
,
"r")
22
wTSC = f2.readline().
strip
()
23
wGT = f2.readline().
strip
()
24
wGTRUNSETTINGS = f2.readline().
strip
()
25
f2.close()
26
27
f = open("val.log"
,
"w"
)
28
if
oTSC == wTSC
and
oGT == wGT
and
oGTRUNSETTINGS == wGTRUNSETTINGS:
29
f.write(
"successful"
)
30
else
:
31
f.write(
"failed"
)
32
f.close()
digitizers_cfi.strip
strip
Definition:
digitizers_cfi.py:19
Generated for CMSSW Reference Manual by
1.8.14