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

Public Member Functions

def getCanvas (self, uniqueName)
 
def configureUpperPad (self, hs1)
 
def configureLowerPad (self, h2, ratiodn, ratioup, xaxis, yaxisr)
 

Static Public Attributes

float rsplit = 0.4
 
float pad1TopMarin = 0.08
 
float pad1BotMarin = 0.04
 
float pad2TopMarin = 0.03
 
float pad2BotMarin = 0.6
 
float LeftMargin = 0.15
 
string yaxis = "Steps / Event"
 

Detailed Description

Definition at line 102 of file G4DebuggerConfig.py.

Member Function Documentation

◆ configureLowerPad()

def python.plotting.G4DebuggerConfig.summaryDefs.configureLowerPad (   self,
  h2,
  ratiodn,
  ratioup,
  xaxis,
  yaxisr 
)

Definition at line 136 of file G4DebuggerConfig.py.

136  def configureLowerPad(self,h2,ratiodn,ratioup,xaxis,yaxisr):
137  h2.SetFillColor(0)
138  h2.SetFillStyle(0)
139  h2.GetXaxis().SetTitle(xaxis)
140  h2.GetYaxis().SetTitle(yaxisr)
141  h2.GetYaxis().SetRangeUser(1.0 - ratiodn, 1.0 + ratioup)
142  h2.SetLineColor(ROOT.kBlack)
143  h2.GetXaxis().LabelsOption("v")
144  h2.GetXaxis().SetLabelSize(0.15)
145  h2.GetXaxis().SetLabelOffset(0.02)
146  h2.GetXaxis().SetTitleOffset(2.2)
147  h2.GetXaxis().SetTitleSize(0.14)
148  h2.GetYaxis().SetLabelSize(0.11)
149  h2.GetYaxis().SetNdivisions(3)
150  h2.GetYaxis().SetTitleOffset(0.5)
151  h2.GetYaxis().SetTitleSize(0.12)
152  ROOT.gPad.RedrawAxis()
153 

◆ configureUpperPad()

def python.plotting.G4DebuggerConfig.summaryDefs.configureUpperPad (   self,
  hs1 
)

Definition at line 128 of file G4DebuggerConfig.py.

128  def configureUpperPad(self,hs1):
129  hs1.GetXaxis().SetLabelSize(0)
130  hs1.GetYaxis().SetLabelSize(0.075)
131  hs1.GetYaxis().SetTitleSize(0.082)
132  hs1.GetYaxis().SetTitleOffset(0.7)
133  hs1.GetYaxis().SetTitle(self.yaxis)
134  ROOT.gPad.RedrawAxis()
135 

◆ getCanvas()

def python.plotting.G4DebuggerConfig.summaryDefs.getCanvas (   self,
  uniqueName 
)

Definition at line 112 of file G4DebuggerConfig.py.

112  def getCanvas(self, uniqueName):
113  canv = ROOT.TCanvas(uniqueName,uniqueName,700,600)
114  pad1 = ROOT.TPad("pad1"+uniqueName,"top pad"+uniqueName,0.,self.rsplit,1.,1.)
115  pad1.SetTopMargin(self.pad1TopMarin)
116  pad1.SetBottomMargin(self.pad1BotMarin)
117  pad1.SetLeftMargin(self.LeftMargin)
118  pad1.Draw()
119  pad2 = ROOT.TPad("pad2"+uniqueName,"bottom pad"+uniqueName,0,0,1,self.rsplit)
120  pad2.SetTopMargin(self.pad2TopMarin)
121  pad2.SetBottomMargin(self.pad2BotMarin)
122  pad2.SetLeftMargin(self.LeftMargin)
123  pad2.SetTicky()
124  pad2.SetTickx()
125  pad2.Draw()
126  return canv, pad1, pad2
127 

Member Data Documentation

◆ LeftMargin

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

Definition at line 108 of file G4DebuggerConfig.py.

◆ pad1BotMarin

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

Definition at line 105 of file G4DebuggerConfig.py.

◆ pad1TopMarin

float python.plotting.G4DebuggerConfig.summaryDefs.pad1TopMarin = 0.08
static

Definition at line 104 of file G4DebuggerConfig.py.

◆ pad2BotMarin

float python.plotting.G4DebuggerConfig.summaryDefs.pad2BotMarin = 0.6
static

Definition at line 107 of file G4DebuggerConfig.py.

◆ pad2TopMarin

float python.plotting.G4DebuggerConfig.summaryDefs.pad2TopMarin = 0.03
static

Definition at line 106 of file G4DebuggerConfig.py.

◆ rsplit

float python.plotting.G4DebuggerConfig.summaryDefs.rsplit = 0.4
static

Definition at line 103 of file G4DebuggerConfig.py.

◆ yaxis

string python.plotting.G4DebuggerConfig.summaryDefs.yaxis = "Steps / Event"
static

Definition at line 110 of file G4DebuggerConfig.py.


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