Belle II Software
light-2205-abys
Main Page
Modules
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Variables
Typedefs
a
b
c
d
l
m
n
p
r
s
w
Enumerations
Enumerator
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
_
c
d
e
f
h
i
m
o
p
r
s
t
v
w
Enumerations
b
c
e
g
h
m
p
s
t
v
Enumerator
b
c
k
t
Related Functions
Files
File List
File Members
All
Functions
plotting_R2.py
1
# Include this only if running in a Jupyter notebook
2
# %matplotlib inline
3
4
import
matplotlib.pyplot
as
plt
5
from
root_pandas
import
read_root
6
7
df = read_root(
"ContinuumSuppression.root"
)
8
9
fig, ax = plt.subplots()
10
11
signal_df = df.query(
"(isContinuumEvent == 0.0)"
)
12
continuum_df = df.query(
"(isContinuumEvent == 1.0)"
)
13
14
hist_kwargs = dict(bins=30, range=(0, 1), histtype=
"step"
)
15
ax.hist(signal_df[
"R2"
], label=
"Not Continuum"
, **hist_kwargs)
16
ax.hist(continuum_df[
"R2"
], label=
"Continuum"
, **hist_kwargs)
17
ax.set_xlabel(
"R2"
)
18
ax.set_ylabel(
"Total number of candidates"
)
19
ax.legend()
20
fig.savefig(
"R2.pdf"
)
online_book
basf2
cs
plotting_R2.py
Generated on Thu Jun 9 2022 01:39:02 for Belle II Software by
1.9.1