ATLAS Offline Software
fillHVMap_corr.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 
3 #special script to fill HV corrected map
4 from LArCalibProcessing.TimeStampToRunLumi import TimeStampToRunLumi
5 from LArTools.LArHVMapDbFiller import LArHVMapDbFiller
6 
7 #from time import strptime
8 #from calendar import timegm
9 #date="2010-03-03:14:01:00"
10 #ts=strptime(date+'/UTC','%Y-%m-%d:%H:%M:%S/%Z')
11 #TimeStamp=int(timegm(ts))*1000000000
12 TimeStamp =1264091460*1000000000
13 
14 TimeStamp2=1272477600*1000000000
15 
16 
17 rlb=TimeStampToRunLumi(TimeStamp,2)
18 rlb2=TimeStampToRunLumi(TimeStamp2,2)
19 
20 dbFiller = LArHVMapDbFiller()
21 dbFiller.setFileName("HVLineToElectrode_v7old.data")
22 dbFiller.setBegin(rlb[0],rlb[1])
23 dbFiller.setEnd(rlb2[0],rlb2[1])
24 dbFiller.setFolderTag("LARIdentifierOflHVLineToElectrodeMap-UPD3-00")
25 dbFiller.genDb()
LArHVMapDbFiller
Definition: LArHVMapDbFiller.py:1
python.TimeStampToRunLumi.TimeStampToRunLumi
def TimeStampToRunLumi(tmstmp, guard=1, dbInstance="CONDBR2")
Definition: TimeStampToRunLumi.py:3