ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileCoolDcs
share
checkCoolLatestUpdate.py
Go to the documentation of this file.
1
#!/bin/env python
2
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
4
5
import
time
6
from
TileCoolDcs.TileDCSDataGrabber
import
TileDCSDataGrabber
7
8
dg = TileDCSDataGrabber()
9
10
11
partitions = [
"LBA"
,
"LBC"
,
"EBA"
,
"EBC"
]
12
variables = [
"FORDAQ_MBHV"
,
"hvOut10"
]
13
14
#=== ask for one day in the future to be sure
15
now = int(time.time()) + 60*60*24
16
17
18
print
(
"\n\n ==== SUMMARY OF LAST FOLDER/CHANNEL UPDATES ======\n\n"
)
19
20
21
for
var
in
variables:
22
for
part
in
partitions:
23
for
num
in
range(1,65):
24
strNum = (
"0"
+str(num))[-2:]
25
drawer = part+strNum
26
folder, chanNum = dg.info.get_folder_and_channel(var, drawer)
27
iovSince = dg.getEntry(drawer, var, now)[1]
28
print
(folder, drawer,
" ("
,chanNum,
")"
,
" ---> "
, time.ctime(iovSince/dg.unix2cool),
" ("
,iovSince,
")"
)
Generated on
for ATLAS Offline Software by
1.17.0