Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Functions
root_test Namespace Reference

Data Structures

class  MyEventAction
 
class  MyPrimaryGeneratorAction
 
class  MyRunAction
 
class  MySteppingAction
 

Functions

def init_root
 
def hini
 
def hshow
 

Function Documentation

def root_test.hini ( )

Definition at line 43 of file root_test.py.

Referenced by root_test.MySteppingAction.UserSteppingAction().

43 
44 def hini():
45 # ------------------------------------------------------------------
46  global hist1
47  hist1= ROOT.TH1D("dE/dx/step", "dE/dx", 100, 0., 2000.)
48  hist1.SetXTitle("(keV)")
49 
50 
# ------------------------------------------------------------------
def hini
Definition: root_test.py:43
def root_test.hshow ( )

Definition at line 51 of file root_test.py.

Referenced by root_test.MySteppingAction.UserSteppingAction().

51 
52 def hshow():
53 # ------------------------------------------------------------------
54  hist1.Draw()
55 
56 # ==================================================================
57 # Geant4 PART #
58 # ==================================================================
59 
60 # ==================================================================
61 # user actions in python
# ==================================================================
def hshow
Definition: root_test.py:51
def root_test.init_root ( )

Definition at line 17 of file root_test.py.

Referenced by root_test.MySteppingAction.UserSteppingAction().

17 
18 def init_root():
19 # ------------------------------------------------------------------
20  ROOT.gROOT.Reset()
21 
22  # plot style
23  ROOT.gStyle.SetTextFont(82)
24  ROOT.gStyle.SetTitleFont(82, "X")
25  ROOT.gStyle.SetLabelFont(82, "X")
26  ROOT.gStyle.SetTitleFont(82, "Y")
27  ROOT.gStyle.SetLabelFont(82, "Y")
28 
29  #ROOT.gStyle.SetOptTitle(0)
30  ROOT.gStyle.SetErrorX(0)
31 
32  canvas= ROOT.TCanvas("g4py_plots",
33  "Geant4Py Sample Plots",
34  620, 30, 600, 400)
35 
36  #canvas.Divide(2,2);
37  #canvas.SetFillColor(29)
38 
39  canvas.SetGrid()
40 
41  return canvas
42 
# ------------------------------------------------------------------
def init_root
Definition: root_test.py:17