-
Notifications
You must be signed in to change notification settings - Fork 494
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·26 lines (22 loc) · 1.18 KB
/
run.sh
File metadata and controls
executable file
·26 lines (22 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
#
# This is a simulation example showing the following things
#
# a) how to run a simple background event simulation with some parameter customization
# b) how to setup and run an event generator that produces signal events based on the
# impact parameter of the backround event where it will be embetted into
set -x
# PART a)
NBGR=5
o2-sim -j 20 -n ${NBGR} -g pythia8hi -m PIPE ITS -o bkg --configKeyValues \
"Diamond.position[2]=0.1;Diamond.width[2]=0.05"
# PART b)
# produce signal events generated according to the configuration given in a file 'signal_impactb.macro'.
# the custom event generator receives and react to a notification that signals
# the embedding status of the simulation, giving the header of the background event for determination
# of subsequent actions. In this case, the impact paramereter from the backgorund event
# is used to calculate the number of particles to be generated as signal
NSGN=10
o2-sim -j 20 -n ${NSGN} -m PIPE ITS \
-g external --configKeyValues 'GeneratorExternal.fileName=signal_impactb.macro;GeneratorExternal.funcName=signal_impactb(333, "20. / (x + 1.)")' \
--embedIntoFile bkg_Kine.root -o sgn > logsgn 2>&1