Skip to content

Commit 2febe24

Browse files
committed
Include example with EPOS4HQ
1 parent 452b827 commit 2febe24

File tree

3 files changed

+65
-5
lines changed

3 files changed

+65
-5
lines changed

MC/config/examples/epos4/epos.sh

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/bin/bash
22
# Script based on CRMC example
33
# EPOS4 option files must contain ihepmc set to 2 to print HepMC
44
# data on stdout. -hepmc flag is not needed anymore, but -hepstd is fundamental
@@ -17,17 +17,20 @@ if [ "$EPO4VSN" = "4.0.0" ]; then
1717
EPOS4="$EPOS4_ROOT/epos4/scripts/epos"
1818
export LIBDIR=$EPOS4_ROOT/epos4/bin
1919
else
20-
EPOS4="$EPOS4_ROOT/epos4/bin/epos"
21-
export BIN_DIR=$EPOS4_ROOT/epos4/bin
20+
EPOS4="$EPOS4_ROOT/bin/epos"
2221
fi
2322

2423
# Check if the environment variable EPO4 is set (mandatory with o2dpg-sim-tests on CI machines)
2524
# If not, set all the EPOS4 related variables, most likely they are unset as well.
2625
if [ -z "${EPO4}" ]; then
27-
export EPO4=$EPOS4_ROOT/epos4/
2826
export OPT=./
2927
export HTO=./
3028
export CHK=./
29+
if [ "$EPO4VSN" = "4.0.0" ]; then
30+
export EPO4=$EPOS4_ROOT/epos4/
31+
else
32+
export EPO4=$EPOS4_ROOT/
33+
fi
3134
fi
3235

3336
while test $# -gt 0 ; do
@@ -41,7 +44,20 @@ done
4144

4245
if [ ! -f $optns.optns ]; then
4346
echo "Error: Options file $optns.optns not found"
44-
exit 1
47+
exit 2
48+
fi
49+
50+
if grep -Fq "set ihq 1" $optns.optns; then
51+
if [ -z "$EPO4HQVSN" ]; then
52+
# Error: EPOS4HQ version not found
53+
exit 3
54+
else
55+
# Running with EPOS4HQ
56+
if [ -z "${EPO4HQ}" ]; then
57+
export EPO4HQ=$EPOS4HQ_ROOT/
58+
fi
59+
EPOS4="$EPO4HQ/bin/eposhq"
60+
fi
4561
fi
4662

4763
if [ $seed -eq 0 ]; then
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
!--------------------------------------------------------------------
2+
! proton-proton collision no hydro no hadronic cascade
3+
!--------------------------------------------------------------------
4+
5+
!---------------------------------------
6+
! Define run
7+
!---------------------------------------
8+
9+
application hadron !hadron-hadron, hadron-nucleus, or nucleus-nucleus
10+
set laproj 1 !projectile atomic number
11+
set maproj 1 !projectile mass number
12+
set latarg 1 !target atomic number
13+
set matarg 1 !target mass number
14+
set ecms 13000 !sqrt(s)_pp
15+
set istmax 25 !max status considered for storage
16+
17+
ftime on !string formation time non-zero
18+
!suppressed decays:
19+
nodecays
20+
110 20 2130 -2130 2230 -2230 1130 -1130 1330 -1330 2330 -2330 3331 -3331
21+
end
22+
23+
set ninicon 1 !number of initial conditions used for hydro evolution
24+
core full !core/corona activated
25+
hydro hlle !hydro activated
26+
eos x3ff !eos activated (epos standard EoS)
27+
hacas full !hadronic cascade activated (UrQMD)
28+
set nfreeze 1 !number of freeze out events per hydro event
29+
set modsho 1 !printout every modsho events
30+
set centrality 0 !0=min bias
31+
set ihepmc 2 !HepMC output enabled on stdout
32+
set nfull 10 !Total number of events to be generated
33+
set ihq 1 !Enable EPOS4HQ
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#---> GeneratorEPOS4
2+
[GeneratorExternal]
3+
fileName=${O2DPG_MC_CONFIG_ROOT}/MC/config/examples/epos4/generator_EPOS4.C
4+
funcName=generateEPOS4("${O2DPG_MC_CONFIG_ROOT}/MC/config/examples/epos4/generator/examplehq.optns", 2147483647)
5+
6+
[GeneratorFileOrCmd]
7+
cmd=${O2DPG_MC_CONFIG_ROOT}/MC/config/examples/epos4/epos.sh -i cfg
8+
bMaxSwitch=none
9+
10+
[HepMC]
11+
version=3

0 commit comments

Comments
 (0)