ATLAS Offline Software
Loading...
Searching...
No Matches
DeMoScan.py File Reference

Go to the source code of this file.

Namespaces

namespace  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()
dict DeMoScan.yearTagProperties = {}
dict DeMoScan.partitions = {}
dict DeMoScan.grlDef = {}
dict DeMoScan.defectVeto = {}
dict DeMoScan.veto = {}
dict DeMoScan.signOff = {}
list DeMoScan.yearTagList = []
dict DeMoScan.yearTagDir = {}
dict DeMoScan.yearTagTag = {}
str DeMoScan.directory = "%s/YearStats-%s/%s/%s"%(args.parser_directory,args.parser_system,iYear,iTag)
str DeMoScan.yearTag = "%s%s"%(iYear,yearTagProperties[iTag]["Description"])
bool DeMoScan.singleYear = True
dict DeMoScan.options = {}
dict 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])
dict DeMoScan.defRecap = {}
dict DeMoScan.defRecapHtml = {}
dict DeMoScan.defReproc = {}
dict DeMoScan.canvasResults = {}
dict DeMoScan.legendResults = {}
dict DeMoScan.stackResults = {}
dict DeMoScan.file = {}
dict DeMoScan.h1Period_IntLuminosity = {}
dict DeMoScan.subperiodNb = {}
dict DeMoScan.runsLPR = {}
dict DeMoScan.lossLPR = {}
dict DeMoScan.loss_rLPR = {}
dict DeMoScan.h1_lossLPR = {}
dict DeMoScan.h1_loss_rLPR = {}
dict DeMoScan.atlasReady = {}
str DeMoScan.yearStatsArchiveFilename = '%s/TProfiles.root'%(yearTagDir[iYT])
str DeMoScan.lossFileName = "%s/loss-%s.dat"%(yearTagDir[iYT],iDefVeto)
str DeMoScan.xAxisTitle = "#splitline{Luminosity loss due to}{%s [pb^{-1}]}"%(defectVeto["description"][iDefVeto])
dict DeMoScan.color = defectVeto["color"][iDefVeto]
 DeMoScan.f2 = open(lossFileName,'r')
 DeMoScan.tmpLines = f2.readlines()
 DeMoScan.read = match(r"(\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)
dict DeMoScan.defectCompact = {}
int DeMoScan.defectSinceLumiAtlasReady = -1
int DeMoScan.defectUntilLumiAtlasReady = -1
str 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])
str 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')
str DeMoScan.defTocHtml = '<div style="text-align:left" class="rectangle">'
list DeMoScan.YT0 = yearTagList[0]
list DeMoScan.YT1 = yearTagList[1]
dict DeMoScan.runs_diff2tags = {}
dict DeMoScan.lumi_diff2tags = {}
list DeMoScan.suffixList = ["miss_%s"%yearTagList[0],"miss_%s"%yearTagList[1],"diff"]
dict 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"}
str DeMoScan.defOrVeto = "defect"
bool DeMoScan.firstYT = True
list DeMoScan.iYT2 = yearTagList[1]
int DeMoScan.sign = +1
str DeMoScan.defVeto_type = "%s_miss_%s"%(iDefVeto,iYT2)
str DeMoScan.defOrVeto_type = "%s_miss_%s"%(defOrVeto,iYT2)
dict DeMoScan.irun2 = runsLPR[iYT2][iDefVeto].index(runsLPR[iYT][iDefVeto][irun])
dict DeMoScan.h1Run_diffTwoYT = {}
dict DeMoScan.h1_diffTwoYT = {}
dict DeMoScan.maxAbsLumiDiff = {}
dict DeMoScan.c_diffTwoYT = {}
dict DeMoScan.leg_diffTwoYT = {}
dict DeMoScan.listOfDefVeto = options['defect']
bool DeMoScan.first = True