Belle II Software
release-06-01-15
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
z
Typedefs
a
b
c
d
e
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Functions
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
ReconstructForTREPS.py
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
11
12
import
basf2
13
from
modularAnalysis
import
fillParticleListFromMC, reconstructDecay, variablesToNtuple, inputMdst
14
15
# main path
16
main = basf2.create_path()
17
18
# load input mdst file
19
inputMdst(
'default'
,
'utrepsbpipi_100k.root'
, path=main)
20
21
# get pi+:MC from MCParticles
22
fillParticleListFromMC(
'pi+:MC'
,
'mcPrimary'
, path=main)
23
24
# reconstruct a virtual gamma for convenience
25
reconstructDecay(
'gamma:Virtual -> pi+:MC pi-:MC'
,
''
, path=main)
26
27
# store variables of gamma:Virtual to ntuple
28
variablesToNtuple
(
'gamma:Virtual'
, [
'M'
,
'E'
,
'daughter(0, cosTheta)'
,
'daughter(1, cosTheta)'
], path=main)
29
30
# process
31
basf2.process(main)
32
33
# show call statistics
34
print(basf2.statistics)
variablesToNtuple
Definition:
variablesToNtuple.py:1
generators
examples
ReconstructForTREPS.py
Generated on Fri Dec 8 2023 04:20:18 for Belle II Software by
1.9.1