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