-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PWGHF: add example to modify on the fly ini in run script (#1745)
* PWGHF: add example to modify on the fly ini in run script * Update MC/run/PWGHF/run_anchor_ini_from_cvmfs_example.sh Co-authored-by: BiaoZhang <[email protected]> * Update MC/run/PWGHF/run_anchor_ini_from_cvmfs_example.sh Co-authored-by: BiaoZhang <[email protected]> --------- Co-authored-by: BiaoZhang <[email protected]>
- Loading branch information
1 parent
3339878
commit be482e9
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
export ALIEN_JDL_LPMANCHORPASSNAME="apass4" | ||
export ALIEN_JDL_MCANCHOR="apass4" | ||
export ALIEN_JDL_COLLISIONSYSTEM="pp" | ||
export ALIEN_JDL_LPMPASSNAME="apass4" | ||
export ALIEN_JDL_LPMRUNNUMBER="539071" | ||
export ALIEN_JDL_LPMPRODUCTIONTYPE="MC" | ||
export ALIEN_JDL_LPMINTERACTIONTYPE="pp" | ||
export ALIEN_JDL_LPMPRODUCTIONTAG="LHC24_2023zg_apass4_MC_test" | ||
export ALIEN_JDL_LPMANCHORRUN="539071" | ||
export ALIEN_JDL_LPMANCHORPRODUCTION="LHC23zg" | ||
export ALIEN_JDL_LPMANCHORYEAR="2023" | ||
|
||
# added export | ||
export NTIMEFRAMES=8 | ||
export NSIGEVENTS=100 | ||
export SPLITID=100 | ||
export PRODSPLIT=153 | ||
export CYCLE=0 | ||
export ALIEN_PROC_ID=2963436952 | ||
|
||
# disable the QC | ||
export DISABLE_QC=1 | ||
|
||
# modify ini file, to have external generator and/or config from a specific tag different from the one used for anchoring | ||
ORIGINALINI=${O2DPG_ROOT}/MC/config/PWGHF/ini/GeneratorHF_D2H_bbbar_Bforced_gap5_Mode2.ini # original .ini file to be modified | ||
MODIFIEDINI=GeneratorHF_D2H_bbbar_Bforced_gap5_Mode2_fromCVMFS.ini # output name for the modified .ini file | ||
|
||
CFGTOREPLACE="\${O2DPG_ROOT}/MC/config/PWGHF/pythia8/generator/pythia8_beautyhadronic_with_decays_Mode2.cfg" # original config file name to be modified | ||
CFGFROMCVMFS="/cvmfs/alice.cern.ch/el9-x86_64/Packages/O2DPG/daily-20240912-0200-1/MC/config/PWGHF/pythia8/generator/pythia8_beautyhadronic_with_decays_Mode2.cfg" # new config file name to use | ||
|
||
GENTOREPLACE="\${O2DPG_ROOT}/MC/config/PWGHF/external/generator/generator_pythia8_gaptriggered_hf.C" # original external generator file name to be modified | ||
GENFROMCVMFS="/cvmfs/alice.cern.ch/el9-x86_64/Packages/O2DPG/daily-20240912-0200-1/MC/config/PWGHF/external/generator/generator_pythia8_gaptriggered_hf.C" # new external generator file name to use | ||
|
||
if [ ! -f $MODIFIEDINI ]; then | ||
sed -e "s|$CFGTOREPLACE|$CFGFROMCVMFS|g" -e "s|$GENTOREPLACE|$GENFROMCVMFS|g" $ORIGINALINI > $MODIFIEDINI | ||
fi | ||
MODIFIEDINI_ABSPATH=$(readlink -f $MODIFIEDINI) | ||
export ALIEN_JDL_ANCHOR_SIM_OPTIONS="-gen external -ini $MODIFIEDINI_ABSPATH" | ||
|
||
${O2DPG_ROOT}/MC/run/ANCHOR/anchorMC.sh |