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

Variable Documentation

◆ action

DeMoScan.action

Definition at line 40 of file DeMoScan.py.

◆ args

DeMoScan.args = parser.parse_args()

Definition at line 57 of file DeMoScan.py.

◆ atlasReady

dict DeMoScan.atlasReady = {}

Definition at line 207 of file DeMoScan.py.

◆ atlasready_tmp

DeMoScan.atlasready_tmp = GetReadyFlag(runnumber)

Definition at line 279 of file DeMoScan.py.

◆ c_diffTwoYT

dict DeMoScan.c_diffTwoYT = {}

Definition at line 519 of file DeMoScan.py.

◆ canvasResults

dict DeMoScan.canvasResults = {}

Definition at line 194 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

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

Definition at line 241 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 28 of file DeMoScan.py.

◆ default

DeMoScan.default

Definition at line 40 of file DeMoScan.py.

◆ defectCompact

dict 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

dict DeMoScan.defectVeto = {}

Definition at line 67 of file DeMoScan.py.

◆ defOrVeto

str DeMoScan.defOrVeto = "defect"

Definition at line 438 of file DeMoScan.py.

◆ defOrVeto_type

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

Definition at line 454 of file DeMoScan.py.

◆ defRecap

dict DeMoScan.defRecap = {}

Definition at line 161 of file DeMoScan.py.

◆ defRecapHtml

dict DeMoScan.defRecapHtml = {}

Definition at line 162 of file DeMoScan.py.

◆ defReproc

dict DeMoScan.defReproc = {}

Definition at line 181 of file DeMoScan.py.

◆ defTocHtml

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

Definition at line 387 of file DeMoScan.py.

◆ defVeto_type

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

Definition at line 453 of file DeMoScan.py.

◆ defVetoType

dict DeMoScan.defVetoType = {}

Definition at line 121 of file DeMoScan.py.

◆ dest

DeMoScan.dest

Definition at line 40 of file DeMoScan.py.

◆ directory

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

Definition at line 78 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 255 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

dict DeMoScan.file = {}

Definition at line 197 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 52 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 141 of file DeMoScan.py.

◆ grlDef

dict DeMoScan.grlDef = {}

Definition at line 66 of file DeMoScan.py.

◆ h1_diffTwoYT

dict DeMoScan.h1_diffTwoYT = {}

Definition at line 484 of file DeMoScan.py.

◆ h1_loss_rLPR

dict DeMoScan.h1_loss_rLPR = {}

Definition at line 205 of file DeMoScan.py.

◆ h1_lossLPR

dict DeMoScan.h1_lossLPR = {}

Definition at line 204 of file DeMoScan.py.

◆ h1Period_IntLuminosity

dict DeMoScan.h1Period_IntLuminosity = {}

Definition at line 199 of file DeMoScan.py.

◆ h1Run_diffTwoYT

dict DeMoScan.h1Run_diffTwoYT = {}

Definition at line 483 of file DeMoScan.py.

◆ help

DeMoScan.help

Definition at line 40 of file DeMoScan.py.

◆ index

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

Definition at line 362 of file DeMoScan.py.

◆ int

DeMoScan.int

Definition at line 45 of file DeMoScan.py.

◆ irun2

dict 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

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

Definition at line 314 of file DeMoScan.py.

◆ lbRangeReproc

str DeMoScan.lbRangeReproc = defectSinceLumiAtlasReady

Definition at line 315 of file DeMoScan.py.

◆ leg_diffTwoYT

dict DeMoScan.leg_diffTwoYT = {}

Definition at line 520 of file DeMoScan.py.

◆ legendResults

dict DeMoScan.legendResults = {}

Definition at line 195 of file DeMoScan.py.

◆ listOfDefVeto

dict DeMoScan.listOfDefVeto = options['defect']

Definition at line 523 of file DeMoScan.py.

◆ loss_rLPR

dict DeMoScan.loss_rLPR = {}

Definition at line 203 of file DeMoScan.py.

◆ lossFileName

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

Definition at line 238 of file DeMoScan.py.

◆ lossLPR

dict DeMoScan.lossLPR = {}

Definition at line 202 of file DeMoScan.py.

◆ lostLumi

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

Definition at line 272 of file DeMoScan.py.

◆ lumi_diff2tags

dict 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

dict DeMoScan.maxAbsLumiDiff = {}

Definition at line 485 of file DeMoScan.py.

◆ nargs

DeMoScan.nargs

Definition at line 40 of file DeMoScan.py.

◆ options

dict DeMoScan.options = {}

Definition at line 104 of file DeMoScan.py.

◆ parser

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

Definition at line 39 of file DeMoScan.py.

◆ partitions

dict DeMoScan.partitions = {}

Definition at line 65 of file DeMoScan.py.

◆ read

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

Definition at line 260 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 264 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

dict DeMoScan.runs_diff2tags = {}

Definition at line 424 of file DeMoScan.py.

◆ runsFilter

list DeMoScan.runsFilter = []

Definition at line 138 of file DeMoScan.py.

◆ runsLPR

dict DeMoScan.runsLPR = {}

Definition at line 201 of file DeMoScan.py.

◆ runWithoutPeriod

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

Definition at line 143 of file DeMoScan.py.

◆ sign

int DeMoScan.sign = +1

Definition at line 446 of file DeMoScan.py.

◆ signOff

dict DeMoScan.signOff = {}

Definition at line 69 of file DeMoScan.py.

◆ singleYear

bool DeMoScan.singleYear = True

Definition at line 87 of file DeMoScan.py.

◆ stackResults

dict DeMoScan.stackResults = {}

Definition at line 196 of file DeMoScan.py.

◆ str

DeMoScan.str

Definition at line 46 of file DeMoScan.py.

◆ subperiodNb

dict DeMoScan.subperiodNb = {}

Definition at line 200 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

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

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 256 of file DeMoScan.py.

◆ type

DeMoScan.type

Definition at line 45 of file DeMoScan.py.

◆ veto

dict DeMoScan.veto = {}

Definition at line 68 of file DeMoScan.py.

◆ xAxisTitle

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

Definition at line 239 of file DeMoScan.py.

◆ yearStatsArchiveFilename

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

Definition at line 218 of file DeMoScan.py.

◆ yearTag

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

Definition at line 81 of file DeMoScan.py.

◆ yearTagDir

dict DeMoScan.yearTagDir = {}

Definition at line 73 of file DeMoScan.py.

◆ yearTagList

list DeMoScan.yearTagList = []

Definition at line 72 of file DeMoScan.py.

◆ yearTagProperties

dict DeMoScan.yearTagProperties = {}

Definition at line 64 of file DeMoScan.py.

◆ yearTagTag

dict DeMoScan.yearTagTag = {}

Definition at line 74 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.