-
Notifications
You must be signed in to change notification settings - Fork 499
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·25 lines (21 loc) · 1.2 KB
/
run.sh
File metadata and controls
executable file
·25 lines (21 loc) · 1.2 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
#!/usr/bin/env bash
#
# This is a simple simulation example showing how to run event simulation using
# the Pythia8 event generator in heavy-ion mode and use an external custom trigger.
# The external trigger makes use of the `DeepTrigger` functionality to allow the
# user to access the internals of the event generator to define the trigger.
#
# In this example, information about the impact parameter of the currently-generated
# Pythia8 heavy-ion event is used.
# The trigger selection defines impact parameters to be accepted according to a
# min-max range that can be adjusted from the command line.
# The definition and configuration of the external `DeepTrigger` is performed by
# the function `trigger_impactb_pythia8(double bMin = 0., double bMax = 20.)`
# defined in the macro `trigger_impactb_pythia8.macro`.
# The macro file and function names are specified via `--configKeyValues` setting
# `TriggerExternal.fileName` and `TriggerExternal.funcName`, respectively.
set -x
NEV=10
BMIN=15.
BMAX=20.
o2-sim -j 20 -n ${NEV} -g pythia8hi -m PIPE ITS TPC --trigger external --configKeyValues "TriggerExternal.fileName=trigger_impactb_pythia8.macro;TriggerExternal.funcName=trigger_impactb_pythia8(${BMIN}, ${BMAX})"