From 9a71b980ef94d5f9f4e9b94b8d9fe03b1d658d42 Mon Sep 17 00:00:00 2001 From: feisenhu <53603353+feisenhu@users.noreply.github.com> Date: Tue, 14 May 2024 16:17:08 +0200 Subject: [PATCH] PWGEM: add running scripts for anchored MC with different Gap trigger settings (#1626) Co-authored-by: Florian Eisenhut (cherry picked from commit 5f4ae1842fb8ebb382e3d95b5a9fa31c81eaf3b5) --- .../runAnchoredHFGapToDielectrons_pp_Gap3.sh | 60 +++++++++++++++++++ .../runAnchoredHFGapToDielectrons_pp_Gap4.sh | 60 +++++++++++++++++++ .../runAnchoredHFGapToDielectrons_pp_Gap5.sh | 60 +++++++++++++++++++ .../runAnchoredHFGapToDielectrons_pp_Gap6.sh | 60 +++++++++++++++++++ .../runAnchoredHFGapToDielectrons_pp_Gap7.sh | 60 +++++++++++++++++++ 5 files changed, 300 insertions(+) create mode 100644 MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap3.sh create mode 100644 MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap4.sh create mode 100644 MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap5.sh create mode 100644 MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap6.sh create mode 100644 MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap7.sh diff --git a/MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap3.sh b/MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap3.sh new file mode 100644 index 000000000..cf52198ea --- /dev/null +++ b/MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap3.sh @@ -0,0 +1,60 @@ +#!/bin/bash + +# +# Steering script for HF enhanced dielectron MC anchored to LHC22o apass6 +# + +# example anchoring +# taken from https://its.cern.ch/jira/browse/O2-4586 +export ALIEN_JDL_LPMANCHORPASSNAME=apass6 +export ALIEN_JDL_MCANCHOR=apass6 +export ALIEN_JDL_CPULIMIT=8 +export ALIEN_JDL_LPMRUNNUMBER=526641 +export ALIEN_JDL_LPMPRODUCTIONTYPE=MC +export ALIEN_JDL_LPMINTERACTIONTYPE=pp +export ALIEN_JDL_LPMPRODUCTIONTAG=LHC24a2 +export ALIEN_JDL_LPMANCHORRUN=526641 +export ALIEN_JDL_LPMANCHORPRODUCTION=LHC22o +export ALIEN_JDL_LPMANCHORYEAR=2022 +export ALIEN_JDL_OUTPUT=*.dat@disk=1,*.txt@disk=1,*.root@disk=2 + +export NTIMEFRAMES=1 +export NSIGEVENTS=20 +export SPLITID=100 +export PRODSPLIT=153 +export CYCLE=0 + +# on the GRID, this is set and used as seed; when set, it takes precedence over SEED +#export ALIEN_PROC_ID=2963436952 +export SEED=0 + +# for pp and 50 events per TF, we launch only 4 workers. +export NWORKERS=2 + +# define the generator via ini file +# use 20/40/40 sampling for different generators +# generate random number +RNDSIG=$(($RANDOM % 100)) + + +if [[ $RNDSIG -ge 0 && $RNDSIG -lt 20 ]]; +then + CONFIGNAME="GeneratorHFGapTriggered_Charm_Gap3.ini" +elif [[ $RNDSIG -ge 20 && $RNDSIG -lt 40 ]]; +then + CONFIGNAME="GeneratorHFGapTriggered_BeautyForcedDecay_Gap3.ini" +elif [[ $RNDSIG -ge 40 && $RNDSIG -lt 100 ]]; +then + CONFIGNAME="GeneratorHFGapTriggered_BeautyNoForcedDecay_Gap3.ini" +fi + +export ALIEN_JDL_ANCHOR_SIM_OPTIONS="-gen external -ini $O2DPG_ROOT/MC/config/PWGEM/ini/$CONFIGNAME" + +# run the central anchor steering script; this includes +# * derive timestamp +# * derive interaction rate +# * extract and prepare configurations (which detectors are contained in the run etc.) +# * run the simulation (and QC) +# To disable QC, uncomment the following line +#export DISABLE_QC=1 +${O2DPG_ROOT}/MC/run/ANCHOR/anchorMC.sh diff --git a/MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap4.sh b/MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap4.sh new file mode 100644 index 000000000..a6d99eb2f --- /dev/null +++ b/MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap4.sh @@ -0,0 +1,60 @@ +#!/bin/bash + +# +# Steering script for HF enhanced dielectron MC anchored to LHC22o apass6 +# + +# example anchoring +# taken from https://its.cern.ch/jira/browse/O2-4586 +export ALIEN_JDL_LPMANCHORPASSNAME=apass6 +export ALIEN_JDL_MCANCHOR=apass6 +export ALIEN_JDL_CPULIMIT=8 +export ALIEN_JDL_LPMRUNNUMBER=526641 +export ALIEN_JDL_LPMPRODUCTIONTYPE=MC +export ALIEN_JDL_LPMINTERACTIONTYPE=pp +export ALIEN_JDL_LPMPRODUCTIONTAG=LHC24a2 +export ALIEN_JDL_LPMANCHORRUN=526641 +export ALIEN_JDL_LPMANCHORPRODUCTION=LHC22o +export ALIEN_JDL_LPMANCHORYEAR=2022 +export ALIEN_JDL_OUTPUT=*.dat@disk=1,*.txt@disk=1,*.root@disk=2 + +export NTIMEFRAMES=1 +export NSIGEVENTS=20 +export SPLITID=100 +export PRODSPLIT=153 +export CYCLE=0 + +# on the GRID, this is set and used as seed; when set, it takes precedence over SEED +#export ALIEN_PROC_ID=2963436952 +export SEED=0 + +# for pp and 50 events per TF, we launch only 4 workers. +export NWORKERS=2 + +# define the generator via ini file +# use 20/40/40 sampling for different generators +# generate random number +RNDSIG=$(($RANDOM % 100)) + + +if [[ $RNDSIG -ge 0 && $RNDSIG -lt 20 ]]; +then + CONFIGNAME="GeneratorHFGapTriggered_Charm_Gap4.ini" +elif [[ $RNDSIG -ge 20 && $RNDSIG -lt 40 ]]; +then + CONFIGNAME="GeneratorHFGapTriggered_BeautyForcedDecay_Gap4.ini" +elif [[ $RNDSIG -ge 40 && $RNDSIG -lt 100 ]]; +then + CONFIGNAME="GeneratorHFGapTriggered_BeautyNoForcedDecay_Gap4.ini" +fi + +export ALIEN_JDL_ANCHOR_SIM_OPTIONS="-gen external -ini $O2DPG_ROOT/MC/config/PWGEM/ini/$CONFIGNAME" + +# run the central anchor steering script; this includes +# * derive timestamp +# * derive interaction rate +# * extract and prepare configurations (which detectors are contained in the run etc.) +# * run the simulation (and QC) +# To disable QC, uncomment the following line +#export DISABLE_QC=1 +${O2DPG_ROOT}/MC/run/ANCHOR/anchorMC.sh diff --git a/MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap5.sh b/MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap5.sh new file mode 100644 index 000000000..568f68eb3 --- /dev/null +++ b/MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap5.sh @@ -0,0 +1,60 @@ +#!/bin/bash + +# +# Steering script for HF enhanced dielectron MC anchored to LHC22o apass6 +# + +# example anchoring +# taken from https://its.cern.ch/jira/browse/O2-4586 +export ALIEN_JDL_LPMANCHORPASSNAME=apass6 +export ALIEN_JDL_MCANCHOR=apass6 +export ALIEN_JDL_CPULIMIT=8 +export ALIEN_JDL_LPMRUNNUMBER=526641 +export ALIEN_JDL_LPMPRODUCTIONTYPE=MC +export ALIEN_JDL_LPMINTERACTIONTYPE=pp +export ALIEN_JDL_LPMPRODUCTIONTAG=LHC24a2 +export ALIEN_JDL_LPMANCHORRUN=526641 +export ALIEN_JDL_LPMANCHORPRODUCTION=LHC22o +export ALIEN_JDL_LPMANCHORYEAR=2022 +export ALIEN_JDL_OUTPUT=*.dat@disk=1,*.txt@disk=1,*.root@disk=2 + +export NTIMEFRAMES=1 +export NSIGEVENTS=20 +export SPLITID=100 +export PRODSPLIT=153 +export CYCLE=0 + +# on the GRID, this is set and used as seed; when set, it takes precedence over SEED +#export ALIEN_PROC_ID=2963436952 +export SEED=0 + +# for pp and 50 events per TF, we launch only 4 workers. +export NWORKERS=2 + +# define the generator via ini file +# use 20/40/40 sampling for different generators +# generate random number +RNDSIG=$(($RANDOM % 100)) + + +if [[ $RNDSIG -ge 0 && $RNDSIG -lt 20 ]]; +then + CONFIGNAME="GeneratorHFGapTriggered_Charm_Gap5.ini" +elif [[ $RNDSIG -ge 20 && $RNDSIG -lt 40 ]]; +then + CONFIGNAME="GeneratorHFGapTriggered_BeautyForcedDecay_Gap5.ini" +elif [[ $RNDSIG -ge 40 && $RNDSIG -lt 100 ]]; +then + CONFIGNAME="GeneratorHFGapTriggered_BeautyNoForcedDecay_Gap5.ini" +fi + +export ALIEN_JDL_ANCHOR_SIM_OPTIONS="-gen external -ini $O2DPG_ROOT/MC/config/PWGEM/ini/$CONFIGNAME" + +# run the central anchor steering script; this includes +# * derive timestamp +# * derive interaction rate +# * extract and prepare configurations (which detectors are contained in the run etc.) +# * run the simulation (and QC) +# To disable QC, uncomment the following line +#export DISABLE_QC=1 +${O2DPG_ROOT}/MC/run/ANCHOR/anchorMC.sh diff --git a/MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap6.sh b/MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap6.sh new file mode 100644 index 000000000..47fc1a37b --- /dev/null +++ b/MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap6.sh @@ -0,0 +1,60 @@ +#!/bin/bash + +# +# Steering script for HF enhanced dielectron MC anchored to LHC22o apass6 +# + +# example anchoring +# taken from https://its.cern.ch/jira/browse/O2-4586 +export ALIEN_JDL_LPMANCHORPASSNAME=apass6 +export ALIEN_JDL_MCANCHOR=apass6 +export ALIEN_JDL_CPULIMIT=8 +export ALIEN_JDL_LPMRUNNUMBER=526641 +export ALIEN_JDL_LPMPRODUCTIONTYPE=MC +export ALIEN_JDL_LPMINTERACTIONTYPE=pp +export ALIEN_JDL_LPMPRODUCTIONTAG=LHC24a2 +export ALIEN_JDL_LPMANCHORRUN=526641 +export ALIEN_JDL_LPMANCHORPRODUCTION=LHC22o +export ALIEN_JDL_LPMANCHORYEAR=2022 +export ALIEN_JDL_OUTPUT=*.dat@disk=1,*.txt@disk=1,*.root@disk=2 + +export NTIMEFRAMES=1 +export NSIGEVENTS=20 +export SPLITID=100 +export PRODSPLIT=153 +export CYCLE=0 + +# on the GRID, this is set and used as seed; when set, it takes precedence over SEED +#export ALIEN_PROC_ID=2963436952 +export SEED=0 + +# for pp and 50 events per TF, we launch only 4 workers. +export NWORKERS=2 + +# define the generator via ini file +# use 20/40/40 sampling for different generators +# generate random number +RNDSIG=$(($RANDOM % 100)) + + +if [[ $RNDSIG -ge 0 && $RNDSIG -lt 20 ]]; +then + CONFIGNAME="GeneratorHFGapTriggered_Charm_Gap6.ini" +elif [[ $RNDSIG -ge 20 && $RNDSIG -lt 40 ]]; +then + CONFIGNAME="GeneratorHFGapTriggered_BeautyForcedDecay_Gap6.ini" +elif [[ $RNDSIG -ge 40 && $RNDSIG -lt 100 ]]; +then + CONFIGNAME="GeneratorHFGapTriggered_BeautyNoForcedDecay_Gap6.ini" +fi + +export ALIEN_JDL_ANCHOR_SIM_OPTIONS="-gen external -ini $O2DPG_ROOT/MC/config/PWGEM/ini/$CONFIGNAME" + +# run the central anchor steering script; this includes +# * derive timestamp +# * derive interaction rate +# * extract and prepare configurations (which detectors are contained in the run etc.) +# * run the simulation (and QC) +# To disable QC, uncomment the following line +#export DISABLE_QC=1 +${O2DPG_ROOT}/MC/run/ANCHOR/anchorMC.sh diff --git a/MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap7.sh b/MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap7.sh new file mode 100644 index 000000000..27907ac30 --- /dev/null +++ b/MC/run/PWGEM/runAnchoredHFGapToDielectrons_pp_Gap7.sh @@ -0,0 +1,60 @@ +#!/bin/bash + +# +# Steering script for HF enhanced dielectron MC anchored to LHC22o apass6 +# + +# example anchoring +# taken from https://its.cern.ch/jira/browse/O2-4586 +export ALIEN_JDL_LPMANCHORPASSNAME=apass6 +export ALIEN_JDL_MCANCHOR=apass6 +export ALIEN_JDL_CPULIMIT=8 +export ALIEN_JDL_LPMRUNNUMBER=526641 +export ALIEN_JDL_LPMPRODUCTIONTYPE=MC +export ALIEN_JDL_LPMINTERACTIONTYPE=pp +export ALIEN_JDL_LPMPRODUCTIONTAG=LHC24a2 +export ALIEN_JDL_LPMANCHORRUN=526641 +export ALIEN_JDL_LPMANCHORPRODUCTION=LHC22o +export ALIEN_JDL_LPMANCHORYEAR=2022 +export ALIEN_JDL_OUTPUT=*.dat@disk=1,*.txt@disk=1,*.root@disk=2 + +export NTIMEFRAMES=1 +export NSIGEVENTS=20 +export SPLITID=100 +export PRODSPLIT=153 +export CYCLE=0 + +# on the GRID, this is set and used as seed; when set, it takes precedence over SEED +#export ALIEN_PROC_ID=2963436952 +export SEED=0 + +# for pp and 50 events per TF, we launch only 4 workers. +export NWORKERS=2 + +# define the generator via ini file +# use 20/40/40 sampling for different generators +# generate random number +RNDSIG=$(($RANDOM % 100)) + + +if [[ $RNDSIG -ge 0 && $RNDSIG -lt 20 ]]; +then + CONFIGNAME="GeneratorHFGapTriggered_Charm_Gap7.ini" +elif [[ $RNDSIG -ge 20 && $RNDSIG -lt 40 ]]; +then + CONFIGNAME="GeneratorHFGapTriggered_BeautyForcedDecay_Gap7.ini" +elif [[ $RNDSIG -ge 40 && $RNDSIG -lt 100 ]]; +then + CONFIGNAME="GeneratorHFGapTriggered_BeautyNoForcedDecay_Gap7.ini" +fi + +export ALIEN_JDL_ANCHOR_SIM_OPTIONS="-gen external -ini $O2DPG_ROOT/MC/config/PWGEM/ini/$CONFIGNAME" + +# run the central anchor steering script; this includes +# * derive timestamp +# * derive interaction rate +# * extract and prepare configurations (which detectors are contained in the run etc.) +# * run the simulation (and QC) +# To disable QC, uncomment the following line +#export DISABLE_QC=1 +${O2DPG_ROOT}/MC/run/ANCHOR/anchorMC.sh