Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions MC/config/PWGGAJE/ini/GeneratorPythia8POWHEG_F2.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### The external generator derives from GeneratorPythia8.
## The generator allows to run Pythia8 with POWHEG
#---> GeneratorPythia8POWHEG
[GeneratorExternal]
fileName=${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGGAJE/external/generator/generator_pythia8_powheg.C
funcName=getGeneratorJEPythia8POWHEG("${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGGAJE/external/powheg/powheg_beauty_F2.input")

[GeneratorPythia8]
config=${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGGAJE/pythia8/generator/pythia8_powheg.cfg
9 changes: 9 additions & 0 deletions MC/config/PWGGAJE/ini/GeneratorPythia8POWHEG_charm.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### The external generator derives from GeneratorPythia8.
## The generator allows to run Pythia8 with POWHEG
#---> GeneratorPythia8POWHEG
[GeneratorExternal]
fileName=${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGGAJE/external/generator/generator_pythia8_powheg.C
funcName=getGeneratorJEPythia8POWHEG("${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGGAJE/external/powheg/powheg_charm_default.input")

[GeneratorPythia8]
config=${O2DPG_MC_CONFIG_ROOT}/MC/config/PWGGAJE/pythia8/generator/pythia8_powheg.cfg
11 changes: 10 additions & 1 deletion test/run_generator_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,16 @@ get_test_script_path_for_ini()
{
local ini_path=${1}
local test_script=$(basename ${ini_path})
echo $(dirname ${ini_path})/tests/${test_script%.ini}.C
local path_to_test_script=$(dirname ${ini_path})/tests/${test_script%.ini}.C
if [[ ! -f ${path_to_test_script} ]] ; then
# Check if test redirection is applied inside the ini_path file using the #---> syntax
local redirection=$(grep "#--->" ${ini_path})
if [[ "${redirection}" != "" ]] ; then
test_script=$(echo ${redirection} | awk '{print $2}')
path_to_test_script=$(dirname ${ini_path})/tests/${test_script}.C
fi
fi
echo ${path_to_test_script}
}


Expand Down