ATLAS Offline Software
Namespaces | Functions | Variables
lumiFormat.py File Reference

Go to the source code of this file.

Namespaces

 lumiFormat
 

Functions

def lumiFormat.perdelta (start, end, delta)
 
def lumiFormat.checkDates (datesFileName)
 

Variables

string lumiFormat.outPath = "/eos/atlas/user/j/jdickins/Pixel/LeakageCurrent/IBLData/processedData/Lumi/"
 
string lumiFormat.outputName = outPath + "/runData.txt"
 
string lumiFormat.outputSummary = outPath + "/runs.txt"
 
string lumiFormat.inPath = "/eos/atlas/user/j/jdickins/Pixel/LeakageCurrent/IBLData/rawData/Lumi/"
 
 lumiFormat.currentDay = datetime.date(2018,11,7)
 
 lumiFormat.firstDay = startDates[0].date()
 
 lumiFormat.days
 
 lumiFormat.s_str = str(s).replace('-','_')
 
 lumiFormat.e_str = str(e).replace('-','_')
 
string lumiFormat.filename = inPath + s_str + "-" + e_str + ".txt"
 
int lumiFormat.i = -1
 
 lumiFormat.array = line.rstrip().split()
 
 lumiFormat.startDateTime = array[0].split('/UTC')[0].split('[')[1]
 
 lumiFormat.startDate = startDateTime.split('-')
 
 lumiFormat.startTime = startDateTime.split(':')
 
 lumiFormat.start = datetime.datetime(int(startDate[0]),int(startDate[1]),int(startDate[2].split(':')[0]),int(startTime[1]),int(startTime[2]),int(startTime[3]))
 
 lumiFormat.endDateTime = array[1].split('/UTC')[0]
 
 lumiFormat.endDate = startDateTime.split('-')
 
 lumiFormat.endTime = startDateTime.split(':')
 
 lumiFormat.end = datetime.datetime(int(endDate[0]),int(endDate[1]),int(endDate[2].split(':')[0]),int(endTime[1]),int(endTime[2]),int(endTime[3]))
 
 lumiFormat.fill = int(array[3])
 
 lumiFormat.length = float(array[6])
 
 lumiFormat.lumi = float(array[10])
 
 lumiFormat.intlumi = length*lumi