Belle II Software
release-08-01-10
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
a
b
c
e
f
g
n
p
s
v
z
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
Typedefs
Macros
prepareSAD.py
1
8
import
subprocess
9
10
# this scripts prepares SAD files for G4 simulation
11
# merges all files for individual source, cuts -4m < s < 4m
12
13
bkgs = (
"LERT"
,
"LERC"
,
"LERB"
,
"HERT"
,
"HERC"
,
"HERB"
)
14
bkgs1 = (
"Touschek_LER"
,
"Coulomb_LER"
,
"Brems_LER"
,
"Touschek_HER"
,
"Coulomb_HER"
,
"Brems_HER"
)
15
mainDir =
"/group/belle2/BGcampaigns/SAD"
# location of input SAD files
16
dirr =
"20191207_1X80-60_BG_study"
# subdir of input SAD files
17
outFile =
"20191207_1X80-60_BG_study"
# name of the output SAD file which is created into to the "mainDir/forG4/"
18
19
i = 0
20
for
bkg
in
bkgs:
21
com = [
22
"root"
,
23
"-l"
,
24
"-b"
,
25
"-q"
,
26
f
'background/steering_tools/prepareSADsample.C("{mainDir}/{dirr}/{bkg}*","{mainDir}/forG4/{bkgs1[i]}_{outFile}.root")'
]
27
with
open(f
"{mainDir}/forG4/{bkgs1[i]}_{outFile}_log.txt"
,
"w"
)
as
log:
28
subprocess.check_call(com, stdout=log)
29
30
print(com)
31
i = i+1
background
steering_tools
prepareSAD.py
Generated on Mon Sep 23 2024 14:00:37 for Belle II Software by
1.9.1