ATLAS Offline Software
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 from __future__ import print_function
5 
6 import time
7 from TileCoolDcs.TileDCSDataGrabber import TileDCSDataGrabber
8 
9 dg = TileDCSDataGrabber()
10 
11 
12 partitions = ["LBA", "LBC","EBA", "EBC"]
13 variables = ["FORDAQ_MBHV", "hvOut10"]
14 
15 #=== ask for one day in the future to be sure
16 now = int(time.time()) + 60*60*24
17 
18 
19 print ("\n\n ==== SUMMARY OF LAST FOLDER/CHANNEL UPDATES ======\n\n")
20 
21 
22 for var in variables:
23  for part in partitions:
24  for num in range(1,65):
25  strNum = ("0"+str(num))[-2:]
26  drawer = part+strNum
27  folder, chanNum = dg.info.get_folder_and_channel(var, drawer)
28  iovSince = dg.getEntry(drawer, var, now)[1]
29  print (folder, drawer," (",chanNum,")", " ---> ", time.ctime(iovSince/dg.unix2cool)," (",iovSince,")")
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
str
Definition: BTagTrackIpAccessor.cxx:11