ATLAS Offline Software
Loading...
Searching...
No Matches
fillHVMap_fromASCII.py
Go to the documentation of this file.
1# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2
3from LArCalibProcessing.TimeStampToRunLumi import TimeStampToRunLumi
4from LArTools.LArHVMapDbFiller import LArHVMapDbFiller
5from time import strptime
6from calendar import timegm
7
8date="2011-11-10:16:00:00"
9ts=strptime(date+'/UTC','%Y-%m-%d:%H:%M:%S/%Z')
10TimeStamp=int(timegm(ts))*1000000000
11#TimeStamp=1272477600*1000000000
12
13rlb=TimeStampToRunLumi(TimeStamp,2)
14
15dbFiller = LArHVMapDbFiller()
16dbFiller.setFileName("HVLineToElectrode_v14.data")
17dbFiller.setBegin(rlb[0],0)
18dbFiller.setFolderTag("LARIdentifierOflHVLineToElectrodeMap-UPD3-00")
19dbFiller.genDb()