-
Notifications
You must be signed in to change notification settings - Fork 26
/
produceSkeletons_D41_NoSmear_PU_AVE_200_BX_25ns.sh
executable file
·105 lines (94 loc) · 2.97 KB
/
produceSkeletons_D41_NoSmear_PU_AVE_200_BX_25ns.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/bin/sh
# This is the shell script that will generate all the skeletons using cmsDriver commands.
# The commands included have been taken from runTheMatrix with the following command:
#
# runTheMatrix.py -w upgrade -l 20634.0 --command="--no_exec" --dryRun
#
# The reconstruction as part of the ticl framework is injected into the RECO_fragment.
#
# For all commands remove --filein and --fileout options.
# Add python_filename option
#
# The first command combines step1 and step2 (GSD):
# - mix in pileup
# - run up to DIGI...HLT:@fake2
# The following changes are implemented on top:
# --beamspot HLLHC14TeV ➜ --beamspot NoSmear
# --eventcontent FEVTDEBUG ➜ --eventcontent FEVTDEBUGHLT
# Removed --relval option.
#
# The second command is step3 removing overlap with step2 (RECO):
# - remove pileup part
# - remove MINIAODSIM from event content and data tier
# - remove PAT from steps (-s)
# - remove @miniAODValidation from VALIDATION step
# - remove @miniAODDQM from DQM step
#
# The third command is a copy of the second only re-running RECO (for NTUP):
# - remove DQM from event content
# - remove DQMIO from data tier
# - add --processName=NTUP option
#
# Those commands should be regularly checked and, in case of changes, propagated into this script!
action() {
# default arguments
local inject_ticl="1"
# parse arguments
for arg in "$@"; do
if [ "$arg" = "ticl" ]; then
inject_ticl="1"
elif [ "$arg" = "no-ticl" ]; then
inject_ticl="0"
else
2>&1 echo "unknown argument: $arg"
return "1"
fi
done
cmsDriver.py TTbar_14TeV_TuneCUETP8M1_cfi \
--conditions auto:phase2_realistic \
-n 10 \
--era Phase2C8 \
--eventcontent FEVTDEBUGHLT \
-s GEN,SIM,DIGI:pdigi_valid,L1,L1TrackTrigger,DIGI2RAW,HLT:@fake2 \
--datatier GEN-SIM \
--beamspot NoSmear \
--geometry Extended2026D41 \
--pileup AVE_200_BX_25ns \
--pileup_input das:/RelValMinBias_14TeV/CMSSW_10_6_0_patch2-106X_upgrade2023_realistic_v3_2023D41noPU-v1/GEN-SIM \
--no_exec \
--python_filename=GSD_fragment.py
cmsDriver.py step3 \
--conditions auto:phase2_realistic \
-n 10 \
--era Phase2C8 \
--eventcontent FEVTDEBUGHLT,DQM \
--runUnscheduled \
-s RAW2DIGI,L1Reco,RECO,RECOSIM,VALIDATION:@phase2Validation,DQM:@phase2 \
--datatier GEN-SIM-RECO,DQMIO \
--geometry Extended2026D41 \
--no_exec \
--python_filename=RECO_fragment.py
if [ "$inject_ticl" = "1" ]; then
echo -e "\ninject ticl into RECO_fragment.py"
./inject_ticl.sh RECO_fragment.py
if [ "$?" = "0" ]; then
echo
else
2>&1 echo "ticl injection failed"
return "2"
fi
fi
cmsDriver.py step3 \
--conditions auto:phase2_realistic \
-n 10 \
--era Phase2C8 \
--eventcontent FEVTDEBUGHLT \
--runUnscheduled \
-s RAW2DIGI,L1Reco,RECO,RECOSIM \
--datatier GEN-SIM-RECO \
--geometry Extended2026D41 \
--no_exec \
--processName=NTUP \
--python_filename=NTUP_fragment.py
}
action "$@"