Analysis module for PhokharaEvtgen.
Definition at line 19 of file PhokharaEvtgenAnalyze.py.
◆ __init__()
Initialization.
Definition at line 22 of file PhokharaEvtgenAnalyze.py.
24 super(PhokharaEvtgenAnalysisModule, self).__init__()
26 self.output_file = ROOT.TFile(
'PhokharaEvtgenAnalysis.root',
'recreate')
28 self.tree = ROOT.TTree(
'tree',
'')
30 self.ecms = numpy.zeros(1, dtype=numpy.float32)
32 self.gamma_e = numpy.zeros(1, dtype=numpy.float32)
34 self.gamma_px = numpy.zeros(1, dtype=numpy.float32)
36 self.gamma_py = numpy.zeros(1, dtype=numpy.float32)
38 self.gamma_pz = numpy.zeros(1, dtype=numpy.float32)
40 self.jpsi_e = numpy.zeros(1, dtype=numpy.float32)
42 self.jpsi_px = numpy.zeros(1, dtype=numpy.float32)
44 self.jpsi_py = numpy.zeros(1, dtype=numpy.float32)
46 self.jpsi_pz = numpy.zeros(1, dtype=numpy.float32)
48 self.lepton_e = numpy.zeros(1, dtype=numpy.float32)
50 self.lepton_px = numpy.zeros(1, dtype=numpy.float32)
52 self.lepton_py = numpy.zeros(1, dtype=numpy.float32)
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')
◆ event()
◆ terminate()
The documentation for this class was generated from the following file: