Belle II Software  release-08-01-10
PhokharaEvtgenAnalysisModule Class Reference
Inheritance diagram for PhokharaEvtgenAnalysisModule:
Collaboration diagram for PhokharaEvtgenAnalysisModule:

Public Member Functions

def __init__ (self)
 
def event (self)
 
def terminate (self)
 

Public Attributes

 output_file
 Output file.
 
 tree
 Output tree.
 
 ecms
 Beam energy.
 
 gamma_e
 Virtual photon energy.
 
 gamma_px
 Virtual photon momentum (x component).
 
 gamma_py
 Virtual photon momentum (y component).
 
 gamma_pz
 Virtual photon momentum (z component).
 
 jpsi_e
 J/psi energy.
 
 jpsi_px
 J/psi momentum (x component).
 
 jpsi_py
 J/psi momentum (y component).
 
 jpsi_pz
 J/psi momentum (z component).
 
 lepton_e
 Lepton energy.
 
 lepton_px
 Lepton momentum (x component).
 
 lepton_py
 Lepton momentum (y component).
 
 lepton_pz
 Lepton momentum (z component).
 

Detailed Description

 Analysis module for PhokharaEvtgen. 

Definition at line 19 of file PhokharaEvtgenAnalyze.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialization.

Definition at line 22 of file PhokharaEvtgenAnalyze.py.

22  def __init__(self):
23  """Initialization."""
24  super(PhokharaEvtgenAnalysisModule, self).__init__()
25 
26  self.output_file = ROOT.TFile('PhokharaEvtgenAnalysis.root', 'recreate')
27 
28  self.tree = ROOT.TTree('tree', '')
29 
30  self.ecms = numpy.zeros(1, dtype=numpy.float32)
31 
32  self.gamma_e = numpy.zeros(1, dtype=numpy.float32)
33 
34  self.gamma_px = numpy.zeros(1, dtype=numpy.float32)
35 
36  self.gamma_py = numpy.zeros(1, dtype=numpy.float32)
37 
38  self.gamma_pz = numpy.zeros(1, dtype=numpy.float32)
39 
40  self.jpsi_e = numpy.zeros(1, dtype=numpy.float32)
41 
42  self.jpsi_px = numpy.zeros(1, dtype=numpy.float32)
43 
44  self.jpsi_py = numpy.zeros(1, dtype=numpy.float32)
45 
46  self.jpsi_pz = numpy.zeros(1, dtype=numpy.float32)
47 
48  self.lepton_e = numpy.zeros(1, dtype=numpy.float32)
49 
50  self.lepton_px = numpy.zeros(1, dtype=numpy.float32)
51 
52  self.lepton_py = numpy.zeros(1, dtype=numpy.float32)
53 
54  self.lepton_pz = numpy.zeros(1, dtype=numpy.float32)
55  self.tree.Branch('ecms', self.ecms, 'ecms/F')
56  self.tree.Branch('gamma_e', self.gamma_e, 'gamma_e/F')
57  self.tree.Branch('gamma_px', self.gamma_px, 'gamma_px/F')
58  self.tree.Branch('gamma_py', self.gamma_py, 'gamma_py/F')
59  self.tree.Branch('gamma_pz', self.gamma_pz, 'gamma_pz/F')
60  self.tree.Branch('jpsi_e', self.jpsi_e, 'jpsi_e/F')
61  self.tree.Branch('jpsi_px', self.jpsi_px, 'jpsi_px/F')
62  self.tree.Branch('jpsi_py', self.jpsi_py, 'jpsi_py/F')
63  self.tree.Branch('jpsi_pz', self.jpsi_pz, 'jpsi_pz/F')
64  self.tree.Branch('lepton_e', self.lepton_e, 'lepton_e/F')
65  self.tree.Branch('lepton_px', self.lepton_px, 'lepton_px/F')
66  self.tree.Branch('lepton_py', self.lepton_py, 'lepton_py/F')
67  self.tree.Branch('lepton_pz', self.lepton_pz, 'lepton_pz/F')
68 

Member Function Documentation

◆ event()

def event (   self)
 Event function. 

Definition at line 69 of file PhokharaEvtgenAnalyze.py.

◆ terminate()

def terminate (   self)
 Termination function. 

Definition at line 97 of file PhokharaEvtgenAnalyze.py.


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