ATLAS Offline Software
Variables
DeMoScan Namespace Reference

Variables

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

Variable Documentation

◆ action

DeMoScan.action

Definition at line 42 of file DeMoScan.py.

◆ args

DeMoScan.args = parser.parse_args()

Definition at line 59 of file DeMoScan.py.

◆ atlasReady

dictionary DeMoScan.atlasReady = {}

Definition at line 209 of file DeMoScan.py.

◆ atlasready_tmp

DeMoScan.atlasready_tmp = GetReadyFlag(runnumber)

Definition at line 279 of file DeMoScan.py.

◆ c_diffTwoYT

dictionary DeMoScan.c_diffTwoYT = {}

Definition at line 519 of file DeMoScan.py.

◆ canvasResults

dictionary DeMoScan.canvasResults = {}

Definition at line 196 of file DeMoScan.py.

◆ cleanedDefect

tuple DeMoScan.cleanedDefect = ((defect.comment).replace('\xd7','')).replace('\xb5','').replace('\xe9','').replace('\u2013','').replace('\u03b7','').replace('\u03c6','').replace('\u2014','')

Definition at line 319 of file DeMoScan.py.

◆ color

dictionary DeMoScan.color = defectVeto["color"][iDefVeto]

Definition at line 243 of file DeMoScan.py.

◆ db

DeMoScan.db = DefectsDB(tag=yearTagProperties[yearTagTag[iYT]]["Defect tag"])

Definition at line 291 of file DeMoScan.py.

◆ debug

bool DeMoScan.debug = False

Definition at line 29 of file DeMoScan.py.

◆ default

DeMoScan.default

Definition at line 42 of file DeMoScan.py.

◆ defectCompact

dictionary DeMoScan.defectCompact = {}

Definition at line 296 of file DeMoScan.py.

◆ defects

DeMoScan.defects = db.retrieve((runnumber, 1), (runnumber+1, 0), system_defects)

Definition at line 295 of file DeMoScan.py.

◆ defectSinceLumiAtlasReady

DeMoScan.defectSinceLumiAtlasReady = -1

Definition at line 303 of file DeMoScan.py.

◆ defectUntilLumiAtlasReady

int DeMoScan.defectUntilLumiAtlasReady = -1

Definition at line 304 of file DeMoScan.py.

◆ defectVeto

dictionary DeMoScan.defectVeto = {}

Definition at line 69 of file DeMoScan.py.

◆ defOrVeto

string DeMoScan.defOrVeto = "defect"

Definition at line 438 of file DeMoScan.py.

◆ defOrVeto_type

string DeMoScan.defOrVeto_type = "%s_miss_%s"%(defOrVeto,iYT2)

Definition at line 454 of file DeMoScan.py.

◆ defRecap

dictionary DeMoScan.defRecap = {}

Definition at line 163 of file DeMoScan.py.

◆ defRecapHtml

dictionary DeMoScan.defRecapHtml = {}

Definition at line 164 of file DeMoScan.py.

◆ defReproc

dictionary DeMoScan.defReproc = {}

Definition at line 183 of file DeMoScan.py.

◆ defTocHtml

string DeMoScan.defTocHtml = '<div style="text-align:left" class="rectangle">'

Definition at line 387 of file DeMoScan.py.

◆ defVeto_type

string DeMoScan.defVeto_type = "%s_miss_%s"%(iDefVeto,iYT2)

Definition at line 453 of file DeMoScan.py.

◆ defVetoType

dictionary DeMoScan.defVetoType = {}

Definition at line 123 of file DeMoScan.py.

◆ dest

DeMoScan.dest

Definition at line 42 of file DeMoScan.py.

◆ directory

string DeMoScan.directory = "%s/YearStats-%s/%s/%s"%(args.parser_directory,args.parser_system,iYear,iTag)

Definition at line 80 of file DeMoScan.py.

◆ f

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')

Definition at line 379 of file DeMoScan.py.

◆ f2

DeMoScan.f2 = open(lossFileName,'r')

Definition at line 257 of file DeMoScan.py.

◆ fHtml

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')

Definition at line 380 of file DeMoScan.py.

◆ file

dictionary DeMoScan.file = {}

Definition at line 199 of file DeMoScan.py.

◆ first

bool DeMoScan.first = True

Definition at line 534 of file DeMoScan.py.

◆ firstYT

bool DeMoScan.firstYT = True

Definition at line 442 of file DeMoScan.py.

◆ float

DeMoScan.float

Definition at line 54 of file DeMoScan.py.

◆ fReproc

DeMoScan.fReproc = open("YearStats-%s/%s/%s/defectsForReproc.txt"%(args.parser_system,args.parser_year[0],args.parser_tag[0]),'w')

Definition at line 385 of file DeMoScan.py.

◆ fRuns

DeMoScan.fRuns = open("%s/runs-ALL.dat"%yearTagDir["%s%s"%(args.parser_year[0],yearTagProperties[options['restrictTagRuns']]["Description"])])

Definition at line 143 of file DeMoScan.py.

◆ grlDef

dictionary DeMoScan.grlDef = {}

Definition at line 68 of file DeMoScan.py.

◆ h1_diffTwoYT

dictionary DeMoScan.h1_diffTwoYT = {}

Definition at line 484 of file DeMoScan.py.

◆ h1_loss_rLPR

dictionary DeMoScan.h1_loss_rLPR = {}

Definition at line 207 of file DeMoScan.py.

◆ h1_lossLPR

dictionary DeMoScan.h1_lossLPR = {}

Definition at line 206 of file DeMoScan.py.

◆ h1Period_IntLuminosity

dictionary DeMoScan.h1Period_IntLuminosity = {}

Definition at line 201 of file DeMoScan.py.

◆ h1Run_diffTwoYT

dictionary DeMoScan.h1Run_diffTwoYT = {}

Definition at line 483 of file DeMoScan.py.

◆ help

DeMoScan.help

Definition at line 42 of file DeMoScan.py.

◆ index

string DeMoScan.index = "LPR_%s"%iDefVeto

Definition at line 362 of file DeMoScan.py.

◆ int

DeMoScan.int

Definition at line 47 of file DeMoScan.py.

◆ irun2

dictionary DeMoScan.irun2 = runsLPR[iYT2][iDefVeto].index(runsLPR[iYT][iDefVeto][irun])

Definition at line 471 of file DeMoScan.py.

◆ iYT2

list DeMoScan.iYT2 = yearTagList[1]

Definition at line 445 of file DeMoScan.py.

◆ lbRange

string DeMoScan.lbRange = "%10d"%(defectSinceLumiAtlasReady)

Definition at line 314 of file DeMoScan.py.

◆ lbRangeReproc

string DeMoScan.lbRangeReproc = defectSinceLumiAtlasReady

Definition at line 315 of file DeMoScan.py.

◆ leg_diffTwoYT

dictionary DeMoScan.leg_diffTwoYT = {}

Definition at line 520 of file DeMoScan.py.

◆ legendResults

dictionary DeMoScan.legendResults = {}

Definition at line 197 of file DeMoScan.py.

◆ listOfDefVeto

dictionary DeMoScan.listOfDefVeto = options['defect']

Definition at line 523 of file DeMoScan.py.

◆ loss_rLPR

dictionary DeMoScan.loss_rLPR = {}

Definition at line 205 of file DeMoScan.py.

◆ lossFileName

string DeMoScan.lossFileName = "%s/loss-%s.dat"%(yearTagDir[iYT],iDefVeto)

Definition at line 240 of file DeMoScan.py.

◆ lossLPR

dictionary DeMoScan.lossLPR = {}

Definition at line 204 of file DeMoScan.py.

◆ lostLumi

DeMoScan.lostLumi = float(read.group(3))

Definition at line 272 of file DeMoScan.py.

◆ lumi_diff2tags

dictionary DeMoScan.lumi_diff2tags = {}

Definition at line 425 of file DeMoScan.py.

◆ luminosity

DeMoScan.luminosity = int(read.group(2))

Definition at line 271 of file DeMoScan.py.

◆ maxAbsLumiDiff

dictionary DeMoScan.maxAbsLumiDiff = {}

Definition at line 485 of file DeMoScan.py.

◆ nargs

DeMoScan.nargs

Definition at line 42 of file DeMoScan.py.

◆ options

dictionary DeMoScan.options = {}

Definition at line 106 of file DeMoScan.py.

◆ parser

DeMoScan.parser = ArgumentParser(description='',formatter_class=RawTextHelpFormatter)

Definition at line 41 of file DeMoScan.py.

◆ partitions

dictionary DeMoScan.partitions = {}

Definition at line 67 of file DeMoScan.py.

◆ read

DeMoScan.read = match("(\d+) \‍((\d+) ub-1.*\‍) -> (\d+.\d+) pb-1 \D+(\d+.\d+)\D+",iline)

Definition at line 262 of file DeMoScan.py.

◆ recovLumi

int DeMoScan.recovLumi = float(read.group(4))

Definition at line 275 of file DeMoScan.py.

◆ runnumber

DeMoScan.runnumber = int(read.group(1))

Definition at line 266 of file DeMoScan.py.

◆ runperiod

DeMoScan.runperiod = returnPeriod(runnumber,args.parser_system,args.parser_year[0],args.parser_tag[0])

Definition at line 324 of file DeMoScan.py.

◆ runs_diff2tags

dictionary DeMoScan.runs_diff2tags = {}

Definition at line 424 of file DeMoScan.py.

◆ runsFilter

list DeMoScan.runsFilter = []

Definition at line 140 of file DeMoScan.py.

◆ runsLPR

dictionary DeMoScan.runsLPR = {}

Definition at line 203 of file DeMoScan.py.

◆ runWithoutPeriod

DeMoScan.runWithoutPeriod = int(iline.split(" (")[0])

Definition at line 145 of file DeMoScan.py.

◆ sign

int DeMoScan.sign = +1

Definition at line 446 of file DeMoScan.py.

◆ signOff

dictionary DeMoScan.signOff = {}

Definition at line 71 of file DeMoScan.py.

◆ singleYear

bool DeMoScan.singleYear = True

Definition at line 89 of file DeMoScan.py.

◆ stackResults

dictionary DeMoScan.stackResults = {}

Definition at line 198 of file DeMoScan.py.

◆ str

DeMoScan.str

Definition at line 48 of file DeMoScan.py.

◆ subperiodNb

dictionary DeMoScan.subperiodNb = {}

Definition at line 202 of file DeMoScan.py.

◆ suffixList

list DeMoScan.suffixList = ["miss_%s"%yearTagList[0],"miss_%s"%yearTagList[1],"diff"]

Definition at line 426 of file DeMoScan.py.

◆ suffixTitle

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"}

Definition at line 427 of file DeMoScan.py.

◆ system_defects

list DeMoScan.system_defects = []

Definition at line 292 of file DeMoScan.py.

◆ tmpLines

DeMoScan.tmpLines = f2.readlines()

Definition at line 258 of file DeMoScan.py.

◆ type

DeMoScan.type

Definition at line 47 of file DeMoScan.py.

◆ veto

dictionary DeMoScan.veto = {}

Definition at line 70 of file DeMoScan.py.

◆ xAxisTitle

string DeMoScan.xAxisTitle = "#splitline{Luminosity loss due to}{%s [pb^{-1}]}"%(defectVeto["description"][iDefVeto])

Definition at line 241 of file DeMoScan.py.

◆ yearStatsArchiveFilename

string DeMoScan.yearStatsArchiveFilename = '%s/TProfiles.root'%(yearTagDir[iYT])

Definition at line 220 of file DeMoScan.py.

◆ yearTag

string DeMoScan.yearTag = "%s%s"%(iYear,yearTagProperties[iTag]["Description"])

Definition at line 83 of file DeMoScan.py.

◆ yearTagDir

dictionary DeMoScan.yearTagDir = {}

Definition at line 75 of file DeMoScan.py.

◆ yearTagList

list DeMoScan.yearTagList = []

Definition at line 74 of file DeMoScan.py.

◆ yearTagProperties

dictionary DeMoScan.yearTagProperties = {}

Definition at line 66 of file DeMoScan.py.

◆ yearTagTag

dictionary DeMoScan.yearTagTag = {}

Definition at line 76 of file DeMoScan.py.

◆ YT0

list DeMoScan.YT0 = yearTagList[0]

Definition at line 415 of file DeMoScan.py.

◆ YT1

list DeMoScan.YT1 = yearTagList[1]

Definition at line 416 of file DeMoScan.py.