ATLAS Offline Software
Functions | Variables
DeMoStatus Namespace Reference

Functions

def mergeSubPeriod (tprof_subperiod, tprof_letter)
 
def ATLASLabel (x, y, text="")
 ATLASLabel copied from atlastyle package, as import does not work for unknown reasons. More...
 

Variables

bool debug = False
 
 parser = ArgumentParser(description='',formatter_class=RawTextHelpFormatter)
 
 dest
 
 default
 
 nargs
 
 help
 
 action
 
 args = parser.parse_args()
 
dictionary ytp = {}
 
dictionary partitions = {}
 
dictionary defects = {}
 
dictionary defectVeto = {}
 
dictionary veto = {}
 
dictionary signOff = {}
 
list yearTagList = []
 
dictionary yearTagDir = {}
 
string directory = "%s/YearStats-%s/%s/%s"%(args.parser_directory,args.parser_system,iYear,iTag)
 
string yearTag = "%s/%s"%(iYear,ytp["Description"])
 
dictionary options = {}
 
 yearTagNb = len(yearTagList)
 
 yearTagLabels = yearTagNb*[""]
 
dictionary canvasResults = {}
 
dictionary legendResults = {}
 
dictionary stackResults = {}
 
dictionary file = {}
 
dictionary hProfPeriod_IntolDefect = {}
 
dictionary hProfPeriod_Veto = {}
 
dictionary hProfPeriodLett_IntolDefect = {}
 
dictionary hProfPeriodLett_Veto = {}
 
dictionary h1Period_IntLuminosity = {}
 
dictionary h1PeriodLett_IntLuminosity = {}
 
dictionary subperiodNb = {}
 
dictionary runsCharact = {}
 
string yearStatsArchiveFilename = '%s/TProfiles.root'%(yearTagDir[iYT])
 
 fTemp = open("%s/runs-ALL.dat"%yearTagDir[iYT])
 
 runNb = int(iline.split(" (")[0])
 
string xAxisTitle = "Period"
 
string legendHead = "%s - %s"%(args.parser_system,iYT.split("/")[0])
 
list allIntolDef = ["allIntol","allIntol_recov"]
 
 iDefName = iDef.rsplit("__",1)[0]
 
 totalIneffDef = plotStack("defects--%s--%s - %s"%(xAxisTitle,args.parser_system,iYT),hProfPeriod_IntolDefect[iYT],defects["intol"],defectVeto["description"],h1Period_IntLuminosity[iYT],options['lumiNotPercent'],stackResults[iYT],canvasResults[iYT],legendResults[iYT],options['recovPlot'],False,options['approvedPlots'])
 
 totalIneffVeto = plotStack("veto--%s--%s"%(xAxisTitle,iYT),hProfPeriod_Veto[iYT],veto["all"],defectVeto["description"],h1Period_IntLuminosity[iYT],options['lumiNotPercent'],stackResults[iYT],canvasResults[iYT],legendResults[iYT],False,False,options['approvedPlots'])
 
list letperiodList = []
 
dictionary subperiod = h1Period_IntLuminosity[iYT].GetXaxis().GetBinLabel(iBin)
 
 letperiodNb = len(letperiodList)
 
 h1YearTag_IntLuminosity = MakeTH1("h1YearTag_IntLuminosity","Year/Tag","Luminosity[pb^{-1}]", -0.5,-0.5+yearTagNb,yearTagNb,kBlack)
 
dictionary h1YearTag_IntolDefect = {}
 
string legendHeader = "#splitline{ %s "%(yearTagLabels[0].split("/")[0])
 
dictionary h1YearTag_Veto = {}
 

Function Documentation

◆ ATLASLabel()

def DeMoStatus.ATLASLabel (   x,
  y,
  text = "" 
)

ATLASLabel copied from atlastyle package, as import does not work for unknown reasons.

Definition at line 51 of file DeMoStatus.py.

51 def ATLASLabel(x,y,text=""):
52  from ROOT import TLatex
53  from ROOT import gPad
54  l = TLatex()
55  l.SetNDC();
56  l.SetTextFont(72);
57  l.DrawLatex(x,y,"ATLAS")
58  delx = 0.115*696*gPad.GetWh()/(472*gPad.GetWw())
59  if (text != ""):
60  p = TLatex()
61  p.SetNDC()
62  p.SetTextFont(42)
63  p.DrawLatex(x+delx,y,text);
64 
65  return
66 
67 

◆ mergeSubPeriod()

def DeMoStatus.mergeSubPeriod (   tprof_subperiod,
  tprof_letter 
)

Definition at line 31 of file DeMoStatus.py.

31 def mergeSubPeriod(tprof_subperiod,tprof_letter):
32  index_letter = {}
33  nb_letter = tprof_letter.GetNbinsX()
34  nb_subperiod = tprof_subperiod.GetNbinsX()
35  for iBin in range(1,nb_letter): # Loop on all subperiods of letter TProfile
36  index_letter[tprof_letter.GetXaxis().GetBinLabel(iBin)] = iBin
37 
38  for iBin in range(1,nb_subperiod): # Loop on all subperiods
39  letter = tprof_subperiod.GetXaxis().GetBinLabel(iBin)[0]
40  if (tprof_letter.IsA().InheritsFrom("TProfile")):
41  tprof_letter.Fill(index_letter[letter]-1,tprof_subperiod.GetBinContent(iBin),tprof_subperiod.GetBinEntries(iBin))
42  tprof_letter.Fill(nb_letter-1,tprof_subperiod.GetBinContent(iBin),tprof_subperiod.GetBinEntries(iBin))
43  elif (tprof_letter.IsA().InheritsFrom("TH1")):
44  tprof_letter.Fill(index_letter[letter]-1,tprof_subperiod.GetBinContent(iBin))
45  tprof_letter.Fill(nb_letter-1,tprof_subperiod.GetBinContent(iBin))
46 
47  return
48 

Variable Documentation

◆ action

DeMoStatus.action

Definition at line 75 of file DeMoStatus.py.

◆ allIntolDef

list DeMoStatus.allIntolDef = ["allIntol","allIntol_recov"]

Definition at line 200 of file DeMoStatus.py.

◆ args

DeMoStatus.args = parser.parse_args()

Definition at line 88 of file DeMoStatus.py.

◆ canvasResults

dictionary DeMoStatus.canvasResults = {}

Definition at line 151 of file DeMoStatus.py.

◆ debug

bool DeMoStatus.debug = False

Definition at line 27 of file DeMoStatus.py.

◆ default

DeMoStatus.default

Definition at line 75 of file DeMoStatus.py.

◆ defects

dictionary DeMoStatus.defects = {}

Definition at line 97 of file DeMoStatus.py.

◆ defectVeto

dictionary DeMoStatus.defectVeto = {}

Definition at line 98 of file DeMoStatus.py.

◆ dest

DeMoStatus.dest

Definition at line 75 of file DeMoStatus.py.

◆ directory

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

Definition at line 107 of file DeMoStatus.py.

◆ file

dictionary DeMoStatus.file = {}

Definition at line 154 of file DeMoStatus.py.

◆ fTemp

DeMoStatus.fTemp = open("%s/runs-ALL.dat"%yearTagDir[iYT])

Definition at line 180 of file DeMoStatus.py.

◆ h1Period_IntLuminosity

dictionary DeMoStatus.h1Period_IntLuminosity = {}

Definition at line 160 of file DeMoStatus.py.

◆ h1PeriodLett_IntLuminosity

dictionary DeMoStatus.h1PeriodLett_IntLuminosity = {}

Definition at line 161 of file DeMoStatus.py.

◆ h1YearTag_IntLuminosity

DeMoStatus.h1YearTag_IntLuminosity = MakeTH1("h1YearTag_IntLuminosity","Year/Tag","Luminosity[pb^{-1}]", -0.5,-0.5+yearTagNb,yearTagNb,kBlack)

Definition at line 311 of file DeMoStatus.py.

◆ h1YearTag_IntolDefect

dictionary DeMoStatus.h1YearTag_IntolDefect = {}

Definition at line 316 of file DeMoStatus.py.

◆ h1YearTag_Veto

dictionary DeMoStatus.h1YearTag_Veto = {}

Definition at line 341 of file DeMoStatus.py.

◆ help

DeMoStatus.help

Definition at line 75 of file DeMoStatus.py.

◆ hProfPeriod_IntolDefect

dictionary DeMoStatus.hProfPeriod_IntolDefect = {}

Definition at line 156 of file DeMoStatus.py.

◆ hProfPeriod_Veto

dictionary DeMoStatus.hProfPeriod_Veto = {}

Definition at line 157 of file DeMoStatus.py.

◆ hProfPeriodLett_IntolDefect

dictionary DeMoStatus.hProfPeriodLett_IntolDefect = {}

Definition at line 158 of file DeMoStatus.py.

◆ hProfPeriodLett_Veto

dictionary DeMoStatus.hProfPeriodLett_Veto = {}

Definition at line 159 of file DeMoStatus.py.

◆ iDefName

DeMoStatus.iDefName = iDef.rsplit("__",1)[0]

Definition at line 202 of file DeMoStatus.py.

◆ legendHead

string DeMoStatus.legendHead = "%s - %s"%(args.parser_system,iYT.split("/")[0])

Definition at line 193 of file DeMoStatus.py.

◆ legendHeader

string DeMoStatus.legendHeader = "#splitline{ %s "%(yearTagLabels[0].split("/")[0])

Definition at line 325 of file DeMoStatus.py.

◆ legendResults

dictionary DeMoStatus.legendResults = {}

Definition at line 152 of file DeMoStatus.py.

◆ letperiodList

list DeMoStatus.letperiodList = []

Definition at line 230 of file DeMoStatus.py.

◆ letperiodNb

DeMoStatus.letperiodNb = len(letperiodList)

Definition at line 235 of file DeMoStatus.py.

◆ nargs

DeMoStatus.nargs

Definition at line 75 of file DeMoStatus.py.

◆ options

dictionary DeMoStatus.options = {}

Definition at line 120 of file DeMoStatus.py.

◆ parser

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

Definition at line 74 of file DeMoStatus.py.

◆ partitions

dictionary DeMoStatus.partitions = {}

Definition at line 96 of file DeMoStatus.py.

◆ runNb

DeMoStatus.runNb = int(iline.split(" (")[0])

Definition at line 182 of file DeMoStatus.py.

◆ runsCharact

dictionary DeMoStatus.runsCharact = {}

Definition at line 163 of file DeMoStatus.py.

◆ signOff

dictionary DeMoStatus.signOff = {}

Definition at line 100 of file DeMoStatus.py.

◆ stackResults

dictionary DeMoStatus.stackResults = {}

Definition at line 153 of file DeMoStatus.py.

◆ subperiod

dictionary DeMoStatus.subperiod = h1Period_IntLuminosity[iYT].GetXaxis().GetBinLabel(iBin)

Definition at line 232 of file DeMoStatus.py.

◆ subperiodNb

dictionary DeMoStatus.subperiodNb = {}

Definition at line 162 of file DeMoStatus.py.

◆ totalIneffDef

DeMoStatus.totalIneffDef = plotStack("defects--%s--%s - %s"%(xAxisTitle,args.parser_system,iYT),hProfPeriod_IntolDefect[iYT],defects["intol"],defectVeto["description"],h1Period_IntLuminosity[iYT],options['lumiNotPercent'],stackResults[iYT],canvasResults[iYT],legendResults[iYT],options['recovPlot'],False,options['approvedPlots'])

Definition at line 217 of file DeMoStatus.py.

◆ totalIneffVeto

DeMoStatus.totalIneffVeto = plotStack("veto--%s--%s"%(xAxisTitle,iYT),hProfPeriod_Veto[iYT],veto["all"],defectVeto["description"],h1Period_IntLuminosity[iYT],options['lumiNotPercent'],stackResults[iYT],canvasResults[iYT],legendResults[iYT],False,False,options['approvedPlots'])

Definition at line 222 of file DeMoStatus.py.

◆ veto

dictionary DeMoStatus.veto = {}

Definition at line 99 of file DeMoStatus.py.

◆ xAxisTitle

string DeMoStatus.xAxisTitle = "Period"

Definition at line 192 of file DeMoStatus.py.

◆ yearStatsArchiveFilename

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

Definition at line 172 of file DeMoStatus.py.

◆ yearTag

string DeMoStatus.yearTag = "%s/%s"%(iYear,ytp["Description"])

Definition at line 110 of file DeMoStatus.py.

◆ yearTagDir

dictionary DeMoStatus.yearTagDir = {}

Definition at line 104 of file DeMoStatus.py.

◆ yearTagLabels

DeMoStatus.yearTagLabels = yearTagNb*[""]

Definition at line 144 of file DeMoStatus.py.

◆ yearTagList

list DeMoStatus.yearTagList = []

Definition at line 103 of file DeMoStatus.py.

◆ yearTagNb

DeMoStatus.yearTagNb = len(yearTagList)

Definition at line 143 of file DeMoStatus.py.

◆ ytp

DeMoStatus.ytp = {}

Definition at line 95 of file DeMoStatus.py.

DeMoStatus.mergeSubPeriod
def mergeSubPeriod(tprof_subperiod, tprof_letter)
Definition: DeMoStatus.py:31
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
DeMoStatus.ATLASLabel
def ATLASLabel(x, y, text="")
ATLASLabel copied from atlastyle package, as import does not work for unknown reasons.
Definition: DeMoStatus.py:51