Skip to content

Commit d3f0119

Browse files
feisenhuFlorian Eisenhut
authored andcommitted
PWGEM: add running scripts for anchored MC with different Gap trigger settings (#1626)
Co-authored-by: Florian Eisenhut <feisenhut@ikf.uni-frankfurt.de> (cherry picked from commit 5f4ae18)
1 parent 1624a50 commit d3f0119

5 files changed

+300
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#!/bin/bash
2+
3+
#
4+
# Steering script for HF enhanced dielectron MC anchored to LHC22o apass6
5+
#
6+
7+
# example anchoring
8+
# taken from https://its.cern.ch/jira/browse/O2-4586
9+
export ALIEN_JDL_LPMANCHORPASSNAME=apass6
10+
export ALIEN_JDL_MCANCHOR=apass6
11+
export ALIEN_JDL_CPULIMIT=8
12+
export ALIEN_JDL_LPMRUNNUMBER=526641
13+
export ALIEN_JDL_LPMPRODUCTIONTYPE=MC
14+
export ALIEN_JDL_LPMINTERACTIONTYPE=pp
15+
export ALIEN_JDL_LPMPRODUCTIONTAG=LHC24a2
16+
export ALIEN_JDL_LPMANCHORRUN=526641
17+
export ALIEN_JDL_LPMANCHORPRODUCTION=LHC22o
18+
export ALIEN_JDL_LPMANCHORYEAR=2022
19+
export ALIEN_JDL_OUTPUT=*.dat@disk=1,*.txt@disk=1,*.root@disk=2
20+
21+
export NTIMEFRAMES=1
22+
export NSIGEVENTS=20
23+
export SPLITID=100
24+
export PRODSPLIT=153
25+
export CYCLE=0
26+
27+
# on the GRID, this is set and used as seed; when set, it takes precedence over SEED
28+
#export ALIEN_PROC_ID=2963436952
29+
export SEED=0
30+
31+
# for pp and 50 events per TF, we launch only 4 workers.
32+
export NWORKERS=2
33+
34+
# define the generator via ini file
35+
# use 20/40/40 sampling for different generators
36+
# generate random number
37+
RNDSIG=$(($RANDOM % 100))
38+
39+
40+
if [[ $RNDSIG -ge 0 && $RNDSIG -lt 20 ]];
41+
then
42+
CONFIGNAME="GeneratorHFGapTriggered_Charm_Gap3.ini"
43+
elif [[ $RNDSIG -ge 20 && $RNDSIG -lt 40 ]];
44+
then
45+
CONFIGNAME="GeneratorHFGapTriggered_BeautyForcedDecay_Gap3.ini"
46+
elif [[ $RNDSIG -ge 40 && $RNDSIG -lt 100 ]];
47+
then
48+
CONFIGNAME="GeneratorHFGapTriggered_BeautyNoForcedDecay_Gap3.ini"
49+
fi
50+
51+
export ALIEN_JDL_ANCHOR_SIM_OPTIONS="-gen external -ini $O2DPG_ROOT/MC/config/PWGEM/ini/$CONFIGNAME"
52+
53+
# run the central anchor steering script; this includes
54+
# * derive timestamp
55+
# * derive interaction rate
56+
# * extract and prepare configurations (which detectors are contained in the run etc.)
57+
# * run the simulation (and QC)
58+
# To disable QC, uncomment the following line
59+
#export DISABLE_QC=1
60+
${O2DPG_ROOT}/MC/run/ANCHOR/anchorMC.sh
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#!/bin/bash
2+
3+
#
4+
# Steering script for HF enhanced dielectron MC anchored to LHC22o apass6
5+
#
6+
7+
# example anchoring
8+
# taken from https://its.cern.ch/jira/browse/O2-4586
9+
export ALIEN_JDL_LPMANCHORPASSNAME=apass6
10+
export ALIEN_JDL_MCANCHOR=apass6
11+
export ALIEN_JDL_CPULIMIT=8
12+
export ALIEN_JDL_LPMRUNNUMBER=526641
13+
export ALIEN_JDL_LPMPRODUCTIONTYPE=MC
14+
export ALIEN_JDL_LPMINTERACTIONTYPE=pp
15+
export ALIEN_JDL_LPMPRODUCTIONTAG=LHC24a2
16+
export ALIEN_JDL_LPMANCHORRUN=526641
17+
export ALIEN_JDL_LPMANCHORPRODUCTION=LHC22o
18+
export ALIEN_JDL_LPMANCHORYEAR=2022
19+
export ALIEN_JDL_OUTPUT=*.dat@disk=1,*.txt@disk=1,*.root@disk=2
20+
21+
export NTIMEFRAMES=1
22+
export NSIGEVENTS=20
23+
export SPLITID=100
24+
export PRODSPLIT=153
25+
export CYCLE=0
26+
27+
# on the GRID, this is set and used as seed; when set, it takes precedence over SEED
28+
#export ALIEN_PROC_ID=2963436952
29+
export SEED=0
30+
31+
# for pp and 50 events per TF, we launch only 4 workers.
32+
export NWORKERS=2
33+
34+
# define the generator via ini file
35+
# use 20/40/40 sampling for different generators
36+
# generate random number
37+
RNDSIG=$(($RANDOM % 100))
38+
39+
40+
if [[ $RNDSIG -ge 0 && $RNDSIG -lt 20 ]];
41+
then
42+
CONFIGNAME="GeneratorHFGapTriggered_Charm_Gap4.ini"
43+
elif [[ $RNDSIG -ge 20 && $RNDSIG -lt 40 ]];
44+
then
45+
CONFIGNAME="GeneratorHFGapTriggered_BeautyForcedDecay_Gap4.ini"
46+
elif [[ $RNDSIG -ge 40 && $RNDSIG -lt 100 ]];
47+
then
48+
CONFIGNAME="GeneratorHFGapTriggered_BeautyNoForcedDecay_Gap4.ini"
49+
fi
50+
51+
export ALIEN_JDL_ANCHOR_SIM_OPTIONS="-gen external -ini $O2DPG_ROOT/MC/config/PWGEM/ini/$CONFIGNAME"
52+
53+
# run the central anchor steering script; this includes
54+
# * derive timestamp
55+
# * derive interaction rate
56+
# * extract and prepare configurations (which detectors are contained in the run etc.)
57+
# * run the simulation (and QC)
58+
# To disable QC, uncomment the following line
59+
#export DISABLE_QC=1
60+
${O2DPG_ROOT}/MC/run/ANCHOR/anchorMC.sh
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#!/bin/bash
2+
3+
#
4+
# Steering script for HF enhanced dielectron MC anchored to LHC22o apass6
5+
#
6+
7+
# example anchoring
8+
# taken from https://its.cern.ch/jira/browse/O2-4586
9+
export ALIEN_JDL_LPMANCHORPASSNAME=apass6
10+
export ALIEN_JDL_MCANCHOR=apass6
11+
export ALIEN_JDL_CPULIMIT=8
12+
export ALIEN_JDL_LPMRUNNUMBER=526641
13+
export ALIEN_JDL_LPMPRODUCTIONTYPE=MC
14+
export ALIEN_JDL_LPMINTERACTIONTYPE=pp
15+
export ALIEN_JDL_LPMPRODUCTIONTAG=LHC24a2
16+
export ALIEN_JDL_LPMANCHORRUN=526641
17+
export ALIEN_JDL_LPMANCHORPRODUCTION=LHC22o
18+
export ALIEN_JDL_LPMANCHORYEAR=2022
19+
export ALIEN_JDL_OUTPUT=*.dat@disk=1,*.txt@disk=1,*.root@disk=2
20+
21+
export NTIMEFRAMES=1
22+
export NSIGEVENTS=20
23+
export SPLITID=100
24+
export PRODSPLIT=153
25+
export CYCLE=0
26+
27+
# on the GRID, this is set and used as seed; when set, it takes precedence over SEED
28+
#export ALIEN_PROC_ID=2963436952
29+
export SEED=0
30+
31+
# for pp and 50 events per TF, we launch only 4 workers.
32+
export NWORKERS=2
33+
34+
# define the generator via ini file
35+
# use 20/40/40 sampling for different generators
36+
# generate random number
37+
RNDSIG=$(($RANDOM % 100))
38+
39+
40+
if [[ $RNDSIG -ge 0 && $RNDSIG -lt 20 ]];
41+
then
42+
CONFIGNAME="GeneratorHFGapTriggered_Charm_Gap5.ini"
43+
elif [[ $RNDSIG -ge 20 && $RNDSIG -lt 40 ]];
44+
then
45+
CONFIGNAME="GeneratorHFGapTriggered_BeautyForcedDecay_Gap5.ini"
46+
elif [[ $RNDSIG -ge 40 && $RNDSIG -lt 100 ]];
47+
then
48+
CONFIGNAME="GeneratorHFGapTriggered_BeautyNoForcedDecay_Gap5.ini"
49+
fi
50+
51+
export ALIEN_JDL_ANCHOR_SIM_OPTIONS="-gen external -ini $O2DPG_ROOT/MC/config/PWGEM/ini/$CONFIGNAME"
52+
53+
# run the central anchor steering script; this includes
54+
# * derive timestamp
55+
# * derive interaction rate
56+
# * extract and prepare configurations (which detectors are contained in the run etc.)
57+
# * run the simulation (and QC)
58+
# To disable QC, uncomment the following line
59+
#export DISABLE_QC=1
60+
${O2DPG_ROOT}/MC/run/ANCHOR/anchorMC.sh
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#!/bin/bash
2+
3+
#
4+
# Steering script for HF enhanced dielectron MC anchored to LHC22o apass6
5+
#
6+
7+
# example anchoring
8+
# taken from https://its.cern.ch/jira/browse/O2-4586
9+
export ALIEN_JDL_LPMANCHORPASSNAME=apass6
10+
export ALIEN_JDL_MCANCHOR=apass6
11+
export ALIEN_JDL_CPULIMIT=8
12+
export ALIEN_JDL_LPMRUNNUMBER=526641
13+
export ALIEN_JDL_LPMPRODUCTIONTYPE=MC
14+
export ALIEN_JDL_LPMINTERACTIONTYPE=pp
15+
export ALIEN_JDL_LPMPRODUCTIONTAG=LHC24a2
16+
export ALIEN_JDL_LPMANCHORRUN=526641
17+
export ALIEN_JDL_LPMANCHORPRODUCTION=LHC22o
18+
export ALIEN_JDL_LPMANCHORYEAR=2022
19+
export ALIEN_JDL_OUTPUT=*.dat@disk=1,*.txt@disk=1,*.root@disk=2
20+
21+
export NTIMEFRAMES=1
22+
export NSIGEVENTS=20
23+
export SPLITID=100
24+
export PRODSPLIT=153
25+
export CYCLE=0
26+
27+
# on the GRID, this is set and used as seed; when set, it takes precedence over SEED
28+
#export ALIEN_PROC_ID=2963436952
29+
export SEED=0
30+
31+
# for pp and 50 events per TF, we launch only 4 workers.
32+
export NWORKERS=2
33+
34+
# define the generator via ini file
35+
# use 20/40/40 sampling for different generators
36+
# generate random number
37+
RNDSIG=$(($RANDOM % 100))
38+
39+
40+
if [[ $RNDSIG -ge 0 && $RNDSIG -lt 20 ]];
41+
then
42+
CONFIGNAME="GeneratorHFGapTriggered_Charm_Gap6.ini"
43+
elif [[ $RNDSIG -ge 20 && $RNDSIG -lt 40 ]];
44+
then
45+
CONFIGNAME="GeneratorHFGapTriggered_BeautyForcedDecay_Gap6.ini"
46+
elif [[ $RNDSIG -ge 40 && $RNDSIG -lt 100 ]];
47+
then
48+
CONFIGNAME="GeneratorHFGapTriggered_BeautyNoForcedDecay_Gap6.ini"
49+
fi
50+
51+
export ALIEN_JDL_ANCHOR_SIM_OPTIONS="-gen external -ini $O2DPG_ROOT/MC/config/PWGEM/ini/$CONFIGNAME"
52+
53+
# run the central anchor steering script; this includes
54+
# * derive timestamp
55+
# * derive interaction rate
56+
# * extract and prepare configurations (which detectors are contained in the run etc.)
57+
# * run the simulation (and QC)
58+
# To disable QC, uncomment the following line
59+
#export DISABLE_QC=1
60+
${O2DPG_ROOT}/MC/run/ANCHOR/anchorMC.sh
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#!/bin/bash
2+
3+
#
4+
# Steering script for HF enhanced dielectron MC anchored to LHC22o apass6
5+
#
6+
7+
# example anchoring
8+
# taken from https://its.cern.ch/jira/browse/O2-4586
9+
export ALIEN_JDL_LPMANCHORPASSNAME=apass6
10+
export ALIEN_JDL_MCANCHOR=apass6
11+
export ALIEN_JDL_CPULIMIT=8
12+
export ALIEN_JDL_LPMRUNNUMBER=526641
13+
export ALIEN_JDL_LPMPRODUCTIONTYPE=MC
14+
export ALIEN_JDL_LPMINTERACTIONTYPE=pp
15+
export ALIEN_JDL_LPMPRODUCTIONTAG=LHC24a2
16+
export ALIEN_JDL_LPMANCHORRUN=526641
17+
export ALIEN_JDL_LPMANCHORPRODUCTION=LHC22o
18+
export ALIEN_JDL_LPMANCHORYEAR=2022
19+
export ALIEN_JDL_OUTPUT=*.dat@disk=1,*.txt@disk=1,*.root@disk=2
20+
21+
export NTIMEFRAMES=1
22+
export NSIGEVENTS=20
23+
export SPLITID=100
24+
export PRODSPLIT=153
25+
export CYCLE=0
26+
27+
# on the GRID, this is set and used as seed; when set, it takes precedence over SEED
28+
#export ALIEN_PROC_ID=2963436952
29+
export SEED=0
30+
31+
# for pp and 50 events per TF, we launch only 4 workers.
32+
export NWORKERS=2
33+
34+
# define the generator via ini file
35+
# use 20/40/40 sampling for different generators
36+
# generate random number
37+
RNDSIG=$(($RANDOM % 100))
38+
39+
40+
if [[ $RNDSIG -ge 0 && $RNDSIG -lt 20 ]];
41+
then
42+
CONFIGNAME="GeneratorHFGapTriggered_Charm_Gap7.ini"
43+
elif [[ $RNDSIG -ge 20 && $RNDSIG -lt 40 ]];
44+
then
45+
CONFIGNAME="GeneratorHFGapTriggered_BeautyForcedDecay_Gap7.ini"
46+
elif [[ $RNDSIG -ge 40 && $RNDSIG -lt 100 ]];
47+
then
48+
CONFIGNAME="GeneratorHFGapTriggered_BeautyNoForcedDecay_Gap7.ini"
49+
fi
50+
51+
export ALIEN_JDL_ANCHOR_SIM_OPTIONS="-gen external -ini $O2DPG_ROOT/MC/config/PWGEM/ini/$CONFIGNAME"
52+
53+
# run the central anchor steering script; this includes
54+
# * derive timestamp
55+
# * derive interaction rate
56+
# * extract and prepare configurations (which detectors are contained in the run etc.)
57+
# * run the simulation (and QC)
58+
# To disable QC, uncomment the following line
59+
#export DISABLE_QC=1
60+
${O2DPG_ROOT}/MC/run/ANCHOR/anchorMC.sh

0 commit comments

Comments
 (0)