ATLAS Offline Software
Loading...
Searching...
No Matches
DeMoStatus Namespace Reference

Functions

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

Variables

bool debug = False
 parser = ArgumentParser(description='',formatter_class=RawTextHelpFormatter)
 dest
 default
 nargs
 help
 action
 args = parser.parse_args()
dict ytp = {}
dict partitions = {}
dict defects = {}
dict defectVeto = {}
dict veto = {}
dict signOff = {}
list yearTagList = []
dict yearTagDir = {}
str directory = "%s/YearStats-%s/%s/%s"%(args.parser_directory,args.parser_system,iYear,iTag)
str yearTag = "%s/%s"%(iYear,ytp["Description"])
dict options = {}
 yearTagNb = len(yearTagList)
 yearTagLabels = yearTagNb*[""]
dict canvasResults = {}
dict legendResults = {}
dict stackResults = {}
dict file = {}
dict hProfPeriod_IntolDefect = {}
dict hProfPeriod_Veto = {}
dict hProfPeriodLett_IntolDefect = {}
dict hProfPeriodLett_Veto = {}
dict h1Period_IntLuminosity = {}
dict h1PeriodLett_IntLuminosity = {}
dict subperiodNb = {}
dict runsCharact = {}
str yearStatsArchiveFilename = '%s/TProfiles.root'%(yearTagDir[iYT])
 fTemp = open("%s/runs-ALL.dat"%yearTagDir[iYT])
 runNb = int(iline.split(" (")[0])
str xAxisTitle = "Period"
str 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 = []
dict 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)
dict h1YearTag_IntolDefect = {}
str legendHeader = "#splitline{ %s "%(yearTagLabels[0].split("/")[0])
dict h1YearTag_Veto = {}

Function Documentation

◆ ATLASLabel()

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.

51def 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
void ATLASLabel(Double_t x, Double_t y, char *text=NULL, Color_t color=1)

◆ mergeSubPeriod()

DeMoStatus.mergeSubPeriod ( tprof_subperiod,
tprof_letter )

Definition at line 31 of file DeMoStatus.py.

31def 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

dict 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

dict DeMoStatus.defects = {}

Definition at line 97 of file DeMoStatus.py.

◆ defectVeto

dict DeMoStatus.defectVeto = {}

Definition at line 98 of file DeMoStatus.py.

◆ dest

DeMoStatus.dest

Definition at line 75 of file DeMoStatus.py.

◆ directory

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

Definition at line 107 of file DeMoStatus.py.

◆ file

dict 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

dict DeMoStatus.h1Period_IntLuminosity = {}

Definition at line 160 of file DeMoStatus.py.

◆ h1PeriodLett_IntLuminosity

dict 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

dict DeMoStatus.h1YearTag_IntolDefect = {}

Definition at line 316 of file DeMoStatus.py.

◆ h1YearTag_Veto

dict DeMoStatus.h1YearTag_Veto = {}

Definition at line 341 of file DeMoStatus.py.

◆ help

DeMoStatus.help

Definition at line 75 of file DeMoStatus.py.

◆ hProfPeriod_IntolDefect

dict DeMoStatus.hProfPeriod_IntolDefect = {}

Definition at line 156 of file DeMoStatus.py.

◆ hProfPeriod_Veto

dict DeMoStatus.hProfPeriod_Veto = {}

Definition at line 157 of file DeMoStatus.py.

◆ hProfPeriodLett_IntolDefect

dict DeMoStatus.hProfPeriodLett_IntolDefect = {}

Definition at line 158 of file DeMoStatus.py.

◆ hProfPeriodLett_Veto

dict 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

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

Definition at line 193 of file DeMoStatus.py.

◆ legendHeader

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

Definition at line 325 of file DeMoStatus.py.

◆ legendResults

dict 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

dict 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

dict 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

dict DeMoStatus.runsCharact = {}

Definition at line 163 of file DeMoStatus.py.

◆ signOff

dict DeMoStatus.signOff = {}

Definition at line 100 of file DeMoStatus.py.

◆ stackResults

dict DeMoStatus.stackResults = {}

Definition at line 153 of file DeMoStatus.py.

◆ subperiod

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

Definition at line 232 of file DeMoStatus.py.

◆ subperiodNb

dict 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

dict DeMoStatus.veto = {}

Definition at line 99 of file DeMoStatus.py.

◆ xAxisTitle

str DeMoStatus.xAxisTitle = "Period"

Definition at line 192 of file DeMoStatus.py.

◆ yearStatsArchiveFilename

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

Definition at line 172 of file DeMoStatus.py.

◆ yearTag

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

Definition at line 110 of file DeMoStatus.py.

◆ yearTagDir

dict 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.