ATLAS Offline Software
Loading...
Searching...
No Matches
python.plotting.G4DebuggerConfig.histogramDefs Class Reference
Collaboration diagram for python.plotting.G4DebuggerConfig.histogramDefs:

Public Member Functions

 getCanvas (self, uniqueName, nologx=False, nology=False)
 configureUpperPad (self, hs1, yaxis="")
 configureLowerPad (self, h2, ratio, xaxis, yaxisr)

Static Public Attributes

float rsplit = 0.35
float pad1TopMarin = 0.07
float pad1BotMarin = 0.04
float pad2TopMarin = 0.03
float pad2BotMarin = 0.4
float LeftMargin = 0.15
str yaxis = "Steps"

Detailed Description

Definition at line 154 of file G4DebuggerConfig.py.

Member Function Documentation

◆ configureLowerPad()

python.plotting.G4DebuggerConfig.histogramDefs.configureLowerPad ( self,
h2,
ratio,
xaxis,
yaxisr )

Definition at line 194 of file G4DebuggerConfig.py.

194 def configureLowerPad(self,h2,ratio,xaxis,yaxisr):
195 h2.GetXaxis().SetTitle(xaxis)
196 h2.GetYaxis().SetTitle(yaxisr)
197 h2.GetXaxis().SetTitleSize(0.13)
198 h2.GetXaxis().SetTitleOffset(0.9)
199 h2.GetXaxis().SetLabelSize(0.10)
200 h2.GetYaxis().SetTitleSize(0.12)
201 h2.GetYaxis().SetTitleOffset(0.5)
202 h2.GetYaxis().SetLabelSize(0.10)
203 h2.GetYaxis().SetLabelOffset(0.015)
204 h2.GetYaxis().SetRangeUser(0.5,1.5)
205 h2.GetYaxis().SetNdivisions(6)
206 h2.SetMinimum(1.0 - ratio)
207 h2.SetMaximum(1.0 + ratio)
208 ROOT.gPad.RedrawAxis()
209
210
211
212

◆ configureUpperPad()

python.plotting.G4DebuggerConfig.histogramDefs.configureUpperPad ( self,
hs1,
yaxis = "" )

Definition at line 186 of file G4DebuggerConfig.py.

186 def configureUpperPad(self,hs1, yaxis=""):
187 hs1.GetXaxis().SetLabelSize(0)
188 hs1.GetYaxis().SetLabelSize(0.06)
189 hs1.GetYaxis().SetTitleSize(0.06)
190 hs1.GetYaxis().SetTitleOffset(0.95)
191 hs1.GetYaxis().SetTitle(self.yaxis if yaxis=="" else yaxis)
192 ROOT.gPad.RedrawAxis()
193

◆ getCanvas()

python.plotting.G4DebuggerConfig.histogramDefs.getCanvas ( self,
uniqueName,
nologx = False,
nology = False )

Definition at line 163 of file G4DebuggerConfig.py.

163 def getCanvas(self, uniqueName, nologx = False, nology = False):
164 canv = ROOT.TCanvas(uniqueName,uniqueName,800,600)
165 pad1 = ROOT.TPad("pad1"+uniqueName,"top pad"+uniqueName,0.,self.rsplit,1.,1.)
166 pad1.SetTopMargin(self.pad1TopMarin)
167 pad1.SetBottomMargin(self.pad1BotMarin)
168 pad1.SetLeftMargin(self.LeftMargin)
169 if not nologx:
170 pad1.SetLogx()
171 if not nology:
172 pad1.SetLogy()
173 pad1.Draw()
174 pad2 = ROOT.TPad("pad2"+uniqueName,"bottom pad"+uniqueName,0,0,1,self.rsplit)
175 pad2.SetTopMargin(self.pad2TopMarin)
176 pad2.SetBottomMargin(self.pad2BotMarin)
177 pad2.SetLeftMargin(self.LeftMargin)
178 pad2.SetTicky()
179 pad2.SetTickx()
180 if not nologx:
181 pad2.SetLogx()
182 pad2.SetGridy()
183 pad2.Draw()
184 return canv, pad1, pad2
185

Member Data Documentation

◆ LeftMargin

python.plotting.G4DebuggerConfig.histogramDefs.LeftMargin = 0.15
static

Definition at line 160 of file G4DebuggerConfig.py.

◆ pad1BotMarin

python.plotting.G4DebuggerConfig.histogramDefs.pad1BotMarin = 0.04
static

Definition at line 157 of file G4DebuggerConfig.py.

◆ pad1TopMarin

python.plotting.G4DebuggerConfig.histogramDefs.pad1TopMarin = 0.07
static

Definition at line 156 of file G4DebuggerConfig.py.

◆ pad2BotMarin

python.plotting.G4DebuggerConfig.histogramDefs.pad2BotMarin = 0.4
static

Definition at line 159 of file G4DebuggerConfig.py.

◆ pad2TopMarin

python.plotting.G4DebuggerConfig.histogramDefs.pad2TopMarin = 0.03
static

Definition at line 158 of file G4DebuggerConfig.py.

◆ rsplit

float python.plotting.G4DebuggerConfig.histogramDefs.rsplit = 0.35
static

Definition at line 155 of file G4DebuggerConfig.py.

◆ yaxis

str python.plotting.G4DebuggerConfig.histogramDefs.yaxis = "Steps"
static

Definition at line 161 of file G4DebuggerConfig.py.


The documentation for this class was generated from the following file: