ATLAS Offline Software
Namespaces | Variables
DeMoScan.py File Reference

Go to the source code of this file.

Namespaces

 DeMoScan
 

Variables

bool DeMoScan.debug = False
 
 DeMoScan.parser = ArgumentParser(description='',formatter_class=RawTextHelpFormatter)
 
 DeMoScan.dest
 
 DeMoScan.default
 
 DeMoScan.nargs
 
 DeMoScan.help
 
 DeMoScan.action
 
 DeMoScan.type
 
 DeMoScan.int
 
 DeMoScan.str
 
 DeMoScan.float
 
 DeMoScan.args = parser.parse_args()
 
dictionary DeMoScan.yearTagProperties = {}
 
dictionary DeMoScan.partitions = {}
 
dictionary DeMoScan.grlDef = {}
 
dictionary DeMoScan.defectVeto = {}
 
dictionary DeMoScan.veto = {}
 
dictionary DeMoScan.signOff = {}
 
list DeMoScan.yearTagList = []
 
dictionary DeMoScan.yearTagDir = {}
 
dictionary DeMoScan.yearTagTag = {}
 
string DeMoScan.directory = "%s/YearStats-%s/%s/%s"%(args.parser_directory,args.parser_system,iYear,iTag)
 
string DeMoScan.yearTag = "%s%s"%(iYear,yearTagProperties[iTag]["Description"])
 
bool DeMoScan.singleYear = True
 
dictionary DeMoScan.options = {}
 
dictionary DeMoScan.defVetoType = {}
 
list DeMoScan.runsFilter = []
 
 DeMoScan.fRuns = open("%s/runs-ALL.dat"%yearTagDir["%s%s"%(args.parser_year[0],yearTagProperties[options['restrictTagRuns']]["Description"])])
 
 DeMoScan.runWithoutPeriod = int(iline.split(" (")[0])
 
dictionary DeMoScan.defRecap = {}
 
dictionary DeMoScan.defRecapHtml = {}
 
dictionary DeMoScan.defReproc = {}
 
dictionary DeMoScan.canvasResults = {}
 
dictionary DeMoScan.legendResults = {}
 
dictionary DeMoScan.stackResults = {}
 
dictionary DeMoScan.file = {}
 
dictionary DeMoScan.h1Period_IntLuminosity = {}
 
dictionary DeMoScan.subperiodNb = {}
 
dictionary DeMoScan.runsLPR = {}
 
dictionary DeMoScan.lossLPR = {}
 
dictionary DeMoScan.loss_rLPR = {}
 
dictionary DeMoScan.h1_lossLPR = {}
 
dictionary DeMoScan.h1_loss_rLPR = {}
 
dictionary DeMoScan.atlasReady = {}
 
string DeMoScan.yearStatsArchiveFilename = '%s/TProfiles.root'%(yearTagDir[iYT])
 
string DeMoScan.lossFileName = "%s/loss-%s.dat"%(yearTagDir[iYT],iDefVeto)
 
string DeMoScan.xAxisTitle = "#splitline{Luminosity loss due to}{%s [pb^{-1}]}"%(defectVeto["description"][iDefVeto])
 
dictionary DeMoScan.color = defectVeto["color"][iDefVeto]
 
 DeMoScan.f2 = open(lossFileName,'r')
 
 DeMoScan.tmpLines = f2.readlines()
 
 DeMoScan.read = match("(\d+) \‍((\d+) ub-1.*\‍) -> (\d+.\d+) pb-1 \D+(\d+.\d+)\D+",iline)
 
 DeMoScan.runnumber = int(read.group(1))
 
 DeMoScan.luminosity = int(read.group(2))
 
 DeMoScan.lostLumi = float(read.group(3))
 
 DeMoScan.recovLumi = float(read.group(4))
 
 DeMoScan.atlasready_tmp = GetReadyFlag(runnumber)
 
 DeMoScan.db = DefectsDB(tag=yearTagProperties[yearTagTag[iYT]]["Defect tag"])
 
list DeMoScan.system_defects = []
 
 DeMoScan.defects = db.retrieve((runnumber, 1), (runnumber+1, 0), system_defects)
 
dictionary DeMoScan.defectCompact = {}
 
int DeMoScan.defectSinceLumiAtlasReady = -1
 
int DeMoScan.defectUntilLumiAtlasReady = -1
 
string DeMoScan.lbRange = "%10d"%(defectSinceLumiAtlasReady)
 
int DeMoScan.lbRangeReproc = defectSinceLumiAtlasReady
 
tuple DeMoScan.cleanedDefect = ((defect.comment).replace('\xd7','')).replace('\xb5','').replace('\xe9','').replace('\u2013','').replace('\u03b7','').replace('\u03c6','').replace('\u2014','')
 
 DeMoScan.runperiod = returnPeriod(runnumber,args.parser_system,args.parser_year[0],args.parser_tag[0])
 
string DeMoScan.index = "LPR_%s"%iDefVeto
 
 DeMoScan.f = open("%s/YearStats-%s/%s/%s/recapDefects.txt"%(args.parser_directory,args.parser_system,args.parser_year[0],args.parser_tag[0]),'w')
 
 DeMoScan.fHtml = open("%s/YearStats-%s/%s/%s/recapDefects.html"%(args.parser_directory,args.parser_system,args.parser_year[0],args.parser_tag[0]),'w')
 
 DeMoScan.fReproc = open("YearStats-%s/%s/%s/defectsForReproc.txt"%(args.parser_system,args.parser_year[0],args.parser_tag[0]),'w')
 
string DeMoScan.defTocHtml = '<div style="text-align:left" class="rectangle">'
 
list DeMoScan.YT0 = yearTagList[0]
 
list DeMoScan.YT1 = yearTagList[1]
 
dictionary DeMoScan.runs_diff2tags = {}
 
dictionary DeMoScan.lumi_diff2tags = {}
 
list DeMoScan.suffixList = ["miss_%s"%yearTagList[0],"miss_%s"%yearTagList[1],"diff"]
 
dictionary DeMoScan.suffixTitle = {"miss_%s"%yearTagList[0]:"No loss in %s"%yearTagList[0],"miss_%s"%yearTagList[1]:"No loss in %s"%yearTagList[1],"diff":"Different losses in both year/tag"}
 
string DeMoScan.defOrVeto = "defect"
 
bool DeMoScan.firstYT = True
 
list DeMoScan.iYT2 = yearTagList[1]
 
int DeMoScan.sign = +1
 
string DeMoScan.defVeto_type = "%s_miss_%s"%(iDefVeto,iYT2)
 
string DeMoScan.defOrVeto_type = "%s_miss_%s"%(defOrVeto,iYT2)
 
dictionary DeMoScan.irun2 = runsLPR[iYT2][iDefVeto].index(runsLPR[iYT][iDefVeto][irun])
 
dictionary DeMoScan.h1Run_diffTwoYT = {}
 
dictionary DeMoScan.h1_diffTwoYT = {}
 
dictionary DeMoScan.maxAbsLumiDiff = {}
 
dictionary DeMoScan.c_diffTwoYT = {}
 
dictionary DeMoScan.leg_diffTwoYT = {}
 
dictionary DeMoScan.listOfDefVeto = options['defect']
 
bool DeMoScan.first = True