forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_HepMCToAOD.sh
More file actions
executable file
·24 lines (19 loc) · 846 Bytes
/
run_HepMCToAOD.sh
File metadata and controls
executable file
·24 lines (19 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
#
# This is a simple simulation example showing the following things
#
# a) how to start STARlight event generator to produce HepMC files
# b) how to inject these HepMC files into an O2Physics Analysis task (generator-only analysis)
STARLIGHT_ROOT=$(starlight-config)
if [ ! "${STARLIGHT_ROOT}" ]; then
echo "This needs STARLIGHT loaded; alienv enter ..."
exit 1
fi
# PART a)
# ./run-starlight.sh
set -x
# PART b) ... apply vertex smearing on top of HepMC events and perform simple analysis
NEV=$(grep EVENT slight.out | wc -l)
o2-sim-dpl-eventgen -b --nEvents ${NEV} --generator hepmc --configKeyValues \
"GeneratorFileOrCmd.fileNames=starlight.hepmc;Diamond.position[2]=0.1;Diamond.width[2]=0.05" |\
o2-sim-mctracks-to-aod -b | o2-analysis-mctracks-to-aod-simple-task -b