ATLAS Offline Software
Public Member Functions | Static Public Attributes | List of all members
python.plotting.G4DebuggerConfig.histogramDefs Class Reference
Collaboration diagram for python.plotting.G4DebuggerConfig.histogramDefs:

Public Member Functions

def getCanvas (self, uniqueName, nologx=False, nology=False)
 
def configureUpperPad (self, hs1, yaxis="")
 
def 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
 
string yaxis = "Steps"
 

Detailed Description

Definition at line 154 of file G4DebuggerConfig.py.

Member Function Documentation

◆ configureLowerPad()

def 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()

def 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()

def 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

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

Definition at line 160 of file G4DebuggerConfig.py.

◆ pad1BotMarin

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

Definition at line 157 of file G4DebuggerConfig.py.

◆ pad1TopMarin

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

Definition at line 156 of file G4DebuggerConfig.py.

◆ pad2BotMarin

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

Definition at line 159 of file G4DebuggerConfig.py.

◆ pad2TopMarin

float 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

string 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: