ATLAS Offline Software
Loading...
Searching...
No Matches
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
5import time
6from TileCoolDcs.TileDCSDataGrabber import TileDCSDataGrabber
7
8dg = TileDCSDataGrabber()
9
10
11partitions = ["LBA", "LBC","EBA", "EBC"]
12variables = ["FORDAQ_MBHV", "hvOut10"]
13
14#=== ask for one day in the future to be sure
15now = int(time.time()) + 60*60*24
16
17
18print ("\n\n ==== SUMMARY OF LAST FOLDER/CHANNEL UPDATES ======\n\n")
19
20
21for 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,")")