Belle II Software
development
Toggle main menu visibility
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
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
Enumerator
c
d
f
p
t
v
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
Typedefs
Macros
hadd.py
1
8
import
os
9
10
# merges histograms from all files in g4sim/.../beast_hist
11
12
folders = [
"phase2.1.3_june_Touschek/EM_2"
]
13
base =
"/group/belle2/BGcampaigns/g4sim/"
14
ens = [
"LER"
,
"HER"
]
15
types = [
"Touschek"
,
"Coulomb"
,
"Brems"
]
16
# types = ["BHWideLargeAngle","BHWide"]
17
# types = ["twoPhoton"]
18
19
for
folder
in
folders:
20
for
en
in
ens:
21
for
typee
in
types:
22
outfile = base + folder +
"/beast_hist/"
+ typee +
"_"
+ en +
"_all.root"
23
infiles = base + folder +
"/beast_hist/"
+ typee +
"_"
+ en +
"_*.root"
24
# outfile = base+folder + "/beast_hist/" + typee + "_all.root"
25
# infiles = base+folder + "/beast_hist/" + typee + "_*.root"
26
os.system(
"rm -rf "
+ outfile)
27
com =
"hadd "
+ outfile +
" "
+ infiles
28
print(com)
29
os.system(com)
beast
scripts
phase2
hadd.py
Generated on Wed Apr 9 2025 02:36:36 for Belle II Software by
1.9.6