-
Notifications
You must be signed in to change notification settings - Fork 4.4k
/
Copy pathcmsDriver.csh
executable file
·358 lines (318 loc) · 19.9 KB
/
cmsDriver.csh
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
#! /bin/tcsh
cmsenv
rehash
#
# old files in castor: rfdir /castor/cern.ch/cms/store/...
# new files in eos : cmsLs /store/...
# new files in eos : eos ls /store/...
#
#
# GEN-SIM input files for Monte-Carlo tests
#
# DAS name: /store/relval/CMSSW_8_0_11/RelValProdTTbar/GEN-SIM/80X_mcRun1_realistic_v4-v1/10000/06A6C86B-C634-E611-93A5-0CC47A74525A.root
set InputGenSimGRun0 = root://eoscms.cern.ch//eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STORM/GEN-SIM/CMSSW_8/06A6C86B-C634-E611-93A5-0CC47A74525A.root
# DAS name: /store/relval/CMSSW_8_0_16/RelValProdTTbar_13/GEN-SIM/80X_mcRun2_asymptotic_v16_gs7120p2-v1/10000/06F2C3AC-8957-E611-9DDF-0025905B85D8.root
set InputGenSimGRun1 = root://eoscms.cern.ch//eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STORM/GEN-SIM/CMSSW_8/06F2C3AC-8957-E611-9DDF-0025905B85D8.root
# DAS name: /store/relval/CMSSW_8_0_16/RelValProdTTbar_13/GEN-SIM/80X_mcRun2_asymptotic_v16_gs7120p2-v1/10000/06F2C3AC-8957-E611-9DDF-0025905B85D8.root
set InputGenSimGRun2 = root://eoscms.cern.ch//eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STORM/GEN-SIM/CMSSW_8/06F2C3AC-8957-E611-9DDF-0025905B85D8.root
# DAS name: /store/relval/CMSSW_12_3_0_pre6/RelValTTbar_14TeV/GEN-SIM/123X_mcRun3_2021_realistic_v11-v1/10000/29297788-21c3-4bf2-afe0-5382f08fbcd5.root
set InputGenSimGRun3 = root://eoscms.cern.ch//eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STORM/GEN-SIM/CMSSW_12/29297788-21c3-4bf2-afe0-5382f08fbcd5.root
# DAS name: /store/relval/CMSSW_8_0_16/RelValZEEMM_13_HI/GEN-SIM/80X_mcRun2_HeavyIon_v9-v1/10000/F8FC5F64-1657-E611-A57E-002590A887F0.root
set InputGenSimHIon1 = root://eoscms.cern.ch//eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STORM/GEN-SIM/CMSSW_8/F8FC5F64-1657-E611-A57E-002590A887F0.root
# DAS name: /store/relval/CMSSW_12_3_0_pre6/RelValZEE_14_HI_2021/GEN-SIM/123X_mcRun3_2021_realistic_HI_v11-v2/10000/3c102f6f-4b70-4b09-b646-504bc104414d.root
set InputGenSimHIon3 = root://eoscms.cern.ch//eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STORM/GEN-SIM/CMSSW_12/3c102f6f-4b70-4b09-b646-504bc104414d.root
set InputGenSimPIon2 = $InputGenSimGRun2
set InputGenSimPRef2 = $InputGenSimGRun2
set InputGenSimPIon3 = $InputGenSimGRun3
set InputGenSimPRef3 = $InputGenSimGRun3
#
# RAW input files for Real-Data tests
#
# DAS name: /store/data/Run2012A/MuEG/RAW/v1/000/191/718/14932935-E289-E111-830C-5404A6388697.root
set InputLHCRawGRun0 = root://eoscms.cern.ch//eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STORM/RAW/Run2012A_MuEG_run191718/14932935-E289-E111-830C-5404A6388697.root
# DAS name: /store/data/Run2015D/MuonEG/RAW/v1/000/256/677/00000/80950A90-745D-E511-92FD-02163E011C5D.root
set InputLHCRawGRun1 = root://eoscms.cern.ch//eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STORM/RAW/Run2015D_MuonEG_run256677/80950A90-745D-E511-92FD-02163E011C5D.root
# DAS name: /store/data/Run2016B/JetHT/RAW/v1/000/272/762/00000/C666CDE2-E013-E611-B15A-02163E011DBE.root
set InputLHCRawGRun2 = root://eoscms.cern.ch//eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STORM/RAW/Run2016B_JetHT_run272762/C666CDE2-E013-E611-B15A-02163E011DBE.root
# DAS name: /store/data/Run2022B/HLTPhysics0/RAW/v1/000/355/558/00000/cd851cf4-0fca-4d76-b80e-1d33e1371929.root
set InputLHCRawGRun3 = root://eoscms.cern.ch//eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STORM/RAW/Run2022B_HLTPhysics0_run355558/cd851cf4-0fca-4d76-b80e-1d33e1371929.root
# DAS name: /store/hidata/HIRun2015/HIHardProbes/RAW-RECO/HighPtJet-PromptReco-v1/000/263/689/00000/1802CD9A-DDB8-E511-9CF9-02163E0138CA.root
set InputLHCRawHIon1 = root://eoscms.cern.ch//eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STORM/RAW-RECO/HIRun2015_HIHardProbes_run263689/HighPtJet-PromptReco-v1/1802CD9A-DDB8-E511-9CF9-02163E0138CA.root
# DAS name: /store/hidata/HIRun2018A/HIHardProbes/RAW/v1/000/326/479/00000/853DBE29-53BA-9A44-9FDD-58E4E9064EB1.root
set InputLHCRawHIon2 = root://eoscms.cern.ch//eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STORM/RAW/HIRun2018A_HIHardProbes_run326479/0E2CC5D5-9D87-7348-9219-B00CD718C847.root
set InputLHCRawHIon3 = $InputLHCRawGRun3 #!! UPDATE once 2022 HIon RAW data is available
set InputLHCRawPIon2 = $InputLHCRawGRun2
set InputLHCRawPRef2 = $InputLHCRawGRun2
set InputLHCRawPIon3 = $InputLHCRawGRun3
set InputLHCRawPRef3 = $InputLHCRawGRun3
#
# GlobalTags to be used
#
set BASE1MC = auto:run1_mc
set BASE1HLT = auto:run1_hlt
set BASE1RD = auto:run1_data
set BASE2MC = auto:run2_mc
set BASE2HLT = auto:run2_hlt
set BASE2RD = auto:run2_data
set BASE3MC = auto:run3_mc
set BASE3HLT = auto:run3_hlt
set BASE3RD = auto:run3_data
set NNPPMC = 100
set NNPPRD = 100
set NNHIMC = 100
set NNHIRD = 25
set EraRun1 = " "
set EraRun25ns = " --era=Run2_25ns "
set EraRun2pp2016 = " --era=Run2_2016 "
set EraRun2pp2017 = " --era=Run2_2017 "
set EraRun2pp2018 = " --era=Run2_2018 "
set EraRun2HI = " --era=Run2_2018_pp_on_AA "
set EraRun3pp = " --era=Run3 "
set EraRun3HI = " --era=Run3_pp_on_PbPb "
set XL1T = "" # syntax: tag,record[,connect,label]
set XL1TPP1 = "" # "L1GtTriggerMenu_L1Menu_Collisions2012_v1_mc,L1GtTriggerMenuRcd,frontier://FrontierProd/CMS_CONDITIONS"
set XL1TPP2 = "" # "L1GtTriggerMenu_L1Menu_Collisions2012_v2_mc,L1GtTriggerMenuRcd,frontier://FrontierProd/CMS_CONDITIONS"
set XL1TPP3 = "" # "L1GtTriggerMenu_L1Menu_Collisions2012_v3_mc,L1GtTriggerMenuRcd,frontier://FrontierProd/CMS_CONDITIONS"
#set XL1TPP3 = "L1GtTriggerMenu_L1Menu_Collisions2012_v3_mc,L1GtTriggerMenuRcd,sqlite_file:/afs/cern.ch/user/g/ghete/public/L1Menu/L1Menu_Collisions2012_v3/sqlFile/L1Menu_Collisions2012_v3_mc.db"
set XL1THI = "" # "L1GtTriggerMenu_L1Menu_CollisionsHeavyIons2011_v0_mc,L1GtTriggerMenuRcd,frontier://FrontierProd/CMS_CONDITIONS"
#set XL1THI = "L1GtTriggerMenu_L1Menu_CollisionsHeavyIons2011_v0_mc,L1GtTriggerMenuRcd,sqlite_file:/afs/cern.ch/user/g/ghete/public/L1Menu/L1Menu_CollisionsHeavyIons2011_v0/sqlFile/L1Menu_CollisionsHeavyIons2011_v0_mc.db"
set XL1TPI = "" # "L1GtTriggerMenu_L1Menu_CollisionsHeavyIons2013_v0_mc,L1GtTriggerMenuRcd,frontier://FrontierProd/CMS_CONDITIONS"
#set XL1TPI = "L1GtTriggerMenu_L1Menu_CollisionsHeavyIons2013_v0_mc,L1GtTriggerMenuRcd,sqlite_file:/afs/cern.ch/user/g/ghete/public/L1Menu/L1Menu_CollisionsHeavyIons2013_v0/sqlFile/L1Menu_CollisionsHeavyIons2013_v0_mc.db"
set XL1TLOWPU = "" # ""
# specific workflows, first varying the globaltags, then the hlt tables
# Append new JECs (as long as not in GT):
#set XJEC = "JetCorrectorParametersCollection_HLT_V1_AK4Calo,JetCorrectionsRecord,frontier://FrontierPrep/CMS_COND_PHYSICSTOOLS,AK4CaloHLT+JetCorrectorParametersCollection_HLT_trk1B_V1_AK4PF,JetCorrectionsRecord,frontier://FrontierPrep/CMS_COND_PHYSICSTOOLS,AK4PFHLT"
#set XJEC = "JetCorrectorParametersCollection_AK5Calo_2012_V8_hlt_mc,JetCorrectionsRecord,frontier://FrontierProd/CMS_CONDITIONS,AK5CaloHLT+JetCorrectorParametersCollection_AK5PF_2012_V8_hlt_mc,JetCorrectionsRecord,frontier://FrontierProd/CMS_CONDITIONS,AK5PFHLT+JetCorrectorParametersCollection_AK5PFchs_2012_V8_hlt_mc,JetCorrectionsRecord,frontier://FrontierProd/CMS_CONDITIONS,AK5PFchsHLT"
#set XJEC = "JetCorrectorParametersCollection_AK5PF_2012_V8_hlt_mc,JetCorrectionsRecord,frontier://FrontierProd/CMS_CONDITIONS,AK5PFHLT+JetCorrectorParametersCollection_AK5PFchs_2012_V8_hlt_mc,JetCorrectionsRecord,frontier://FrontierProd/CMS_CONDITIONS,AK5PFchsHLT"
#set XL1TPP1 = ${XL1TPP1}+${XJEC}
#set XL1TPP2 = ${XL1TPP2}+${XJEC}
#set XL1TPP3 = ${XJEC}
#set XL1THI = ${XJEC}
#set XL1TPI = ${XJEC}
foreach gtag ( MC DATA )
if ( $gtag == DATA ) then
set BASE1 = $BASE1HLT
set BASE2 = $BASE2HLT
set BASE3 = $BASE3HLT
set RECO1 = $BASE1RD
set RECO2 = $BASE2RD
set RECO3 = $BASE3RD
set NNPP = $NNPPRD
set NNHI = $NNHIRD
set DATAMC = --data
set PNAME = HLT1
set RNAME = RECO1
else if ( $gtag == MC ) then
set BASE1 = $BASE1MC
set BASE2 = $BASE2MC
set BASE3 = $BASE3MC
set RECO1 = $BASE1MC
set RECO2 = $BASE2MC
set RECO3 = $BASE3MC
set NNPP = $NNPPMC
set NNHI = $NNHIMC
set DATAMC = --mc
set PNAME = HLT
set RNAME = RECO
else
# unsupported
continue
endif
if ( $1 == "" ) then
set tables = ( GRun )
else if ( ($1 == all) || ($1 == ALL) ) then
set tables = ( GRun HIon PIon PRef 2022v15 Fake Fake1 Fake2 )
else if ( ($1 == ib) || ($1 == IB) ) then
set tables = ( GRun HIon PIon PRef )
else if ( ($1 == dev) || ($1 == DEV) ) then
set tables = ( GRun HIon PIon PRef )
else if ( ($1 == full) || ($1 == FULL) ) then
set tables = ( FULL )
else if ( ($1 == fake) || ($1 == FAKE) ) then
set tables = ( Fake Fake1 Fake2 )
else if ( ($1 == frozen) || ($1 == FROZEN) ) then
set tables = ( 2022v15 )
else
set tables = ( $1 )
endif
foreach table ( $tables )
set name = ${table}_${gtag}
if ( $table == FULL ) then
set XL1T = $XL1TPP3
set XHLT = HLT:FULL
set GTAG = ${BASE3}_FULL
set RTAG = ${RECO3}_FULL
set NN = $NNPP
set SCEN = pp
set InputGenSim = $InputGenSimGRun3
set InputLHCRaw = $InputLHCRawGRun3
set Era = $EraRun3pp
set Custom = " "
set L1REPACK = L1REPACK:Full
set DIGI = DIGI:pdigi
else if ( $table == Fake ) then
set XL1T = $XL1TPP3
set XHLT = HLT:Fake
set GTAG = ${BASE1}_Fake
set RTAG = ${RECO1}_Fake
set NN = $NNPP
set SCEN = pp
set InputGenSim = $InputGenSimGRun0
set InputLHCRaw = $InputLHCRawGRun0
set Era = $EraRun1
set Custom = " "
set L1REPACK = L1REPACK:GT1
set DIGI = DIGI:pdigi
else if ( $table == Fake1 ) then
set XL1T = $XL1TPP3
set XHLT = HLT:Fake1
set GTAG = ${BASE2}_Fake1
set RTAG = ${RECO2}_Fake1
set NN = $NNPP
set SCEN = pp
set InputGenSim = $InputGenSimGRun1
set InputLHCRaw = $InputLHCRawGRun1
set Era = $EraRun25ns
set Custom = " "
set L1REPACK = L1REPACK:GCTGT
set DIGI = DIGI:pdigi
else if ( $table == Fake2 ) then
set XL1T = $XL1TPP3
set XHLT = HLT:Fake2
set GTAG = ${BASE2}_Fake2
set RTAG = ${RECO2}_Fake2
set NN = $NNPP
set SCEN = pp
set InputGenSim = $InputGenSimGRun2
set InputLHCRaw = $InputLHCRawGRun2
set Era = $EraRun2pp2016
set Custom = " "
set L1REPACK = L1REPACK:Full
set DIGI = DIGI:pdigi
else if ( $table == GRun ) then
set XL1T = $XL1TPP3
set XHLT = HLT:GRun
set GTAG = ${BASE3}_GRun
set RTAG = ${RECO3}_GRun
set NN = $NNPP
set SCEN = pp
set InputGenSim = $InputGenSimGRun3
set InputLHCRaw = $InputLHCRawGRun3
set Era = $EraRun3pp
set Custom = " "
set L1REPACK = L1REPACK:Full
set DIGI = DIGI:pdigi
else if ( $table == 2022v15 ) then
set XL1T = $XL1TPP3
set XHLT = HLT:2022v15
set GTAG = ${BASE3}_2022v15
set RTAG = ${RECO3}_2022v15
set NN = $NNPP
set SCEN = pp
set InputGenSim = $InputGenSimGRun3
set InputLHCRaw = $InputLHCRawGRun3
set Era = $EraRun3pp
set Custom = " "
set L1REPACK = L1REPACK:Full
set DIGI = DIGI:pdigi
else if ( $table == HIon ) then
set XL1T = $XL1THI
set XHLT = HLT:HIon
set GTAG = ${BASE3}_HIon
set RTAG = ${RECO3}_HIon
set NN = $NNHI
set SCEN = pp
set InputGenSim = $InputGenSimHIon3
set InputLHCRaw = $InputLHCRawHIon3
set Era = $EraRun3HI
set Custom = " "
set L1REPACK = L1REPACK:Full
set DIGI = DIGI:pdigi_hi_nogen
else if ( $table == PIon ) then
set XL1T = $XL1TPI
set XHLT = HLT:PIon
set GTAG = ${BASE3}_PIon
set RTAG = ${RECO3}_PIon
set NN = $NNPP
set SCEN = pp
set InputGenSim = $InputGenSimPIon3
set InputLHCRaw = $InputLHCRawPIon3
set Era = $EraRun3pp
set Custom = " "
set L1REPACK = L1REPACK:Full
set DIGI = DIGI:pdigi
else if ( $table == PRef ) then
set XL1T = $XL1TPP3
set XHLT = HLT:PRef
set GTAG = ${BASE3}_PRef
set RTAG = ${RECO3}_PRef
set NN = $NNPP
set SCEN = pp
set InputGenSim = $InputGenSimPRef3
set InputLHCRaw = $InputLHCRawPRef3
set Era = $EraRun3pp
set Custom = " "
set L1REPACK = L1REPACK:Full
set DIGI = DIGI:pdigi
else
# unsupported
continue
endif
if ( $gtag == DATA ) then
echo
echo "Creating L1RePack $name"
if ( $table == HIon ) then
cmsDriver.py RelVal --step=$L1REPACK --conditions=$GTAG --filein=$InputLHCRaw --custom_conditions=$XL1T --fileout=RelVal_L1RePack_$name.root --number=$NN $DATAMC --no_exec --datatier 'GEN-SIM-DIGI-RAW' --eventcontent=RAW --customise=HLTrigger/Configuration/CustomConfigs.L1T $Era --customise=$Custom --scenario=$SCEN --python_filename=RelVal_L1RePack_$name.py --customise=L1Trigger/Configuration/L1Trigger_custom.customiseResetPrescalesAndMasks #--customise_commands='from FWCore.ParameterSet.MassReplace import massSearchReplaceAnyInputTag; massSearchReplaceAnyInputTag(process.SimL1Emulator,"rawDataCollector","rawDataRepacker",False,True)'
else
cmsDriver.py RelVal --step=$L1REPACK --conditions=$GTAG --filein=$InputLHCRaw --custom_conditions=$XL1T --fileout=RelVal_L1RePack_$name.root --number=$NN $DATAMC --no_exec --datatier 'GEN-SIM-DIGI-RAW' --eventcontent=RAW --customise=HLTrigger/Configuration/CustomConfigs.L1T $Era --customise=$Custom --scenario=$SCEN --python_filename=RelVal_L1RePack_$name.py --customise=L1Trigger/Configuration/L1Trigger_custom.customiseResetPrescalesAndMasks
endif
else
# echo
# echo "Creating TTbarGenToHLT $name"
# cmsDriver.py TTbar_Tauola_13TeV_TuneCUETP8M1_cfi --step=GEN,SIM,DIGI,L1,DIGI2RAW,$XHLT --conditions=$GTAG --custom_conditions=$XL1T --fileout=RelVal_GenSim_$name.root --number=$NN $DATAMC --no_exec --datatier 'GEN-SIM-DIGI-RAW-HLT' --eventcontent=FEVTDEBUGHLT --customise=HLTrigger/Configuration/CustomConfigs.L1THLT $Era --customise=$Custom --scenario=$SCEN --python_filename=RelVal_GenSim_$name.py
echo
echo "Creating DigiL1Raw $name"
cmsDriver.py RelVal --step=$DIGI,L1,DIGI2RAW --conditions=$GTAG --filein=$InputGenSim --custom_conditions=$XL1T --fileout=RelVal_DigiL1Raw_$name.root --number=$NN $DATAMC --no_exec --datatier 'GEN-SIM-DIGI-RAW' --eventcontent=RAWSIM --customise=HLTrigger/Configuration/CustomConfigs.L1T $Era --customise=$Custom --scenario=$SCEN --python_filename=RelVal_DigiL1Raw_$name.py
cat >>RelVal_DigiL1Raw_$name.py<<EOF
process.options.numberOfThreads = cms.untracked.uint32(1)
process.options.numberOfStreams = cms.untracked.uint32(1)
EOF
echo
echo "Creating DigiL1RawHLT $name"
cmsDriver.py RelVal --step=$DIGI,L1,DIGI2RAW,$XHLT --conditions=$GTAG --filein=$InputGenSim --custom_conditions=$XL1T --fileout=RelVal_DigiL1RawHLT_$name.root --number=$NN $DATAMC --no_exec --datatier 'GEN-SIM-DIGI-RAW-HLT' --eventcontent=FEVTDEBUGHLT --customise=HLTrigger/Configuration/CustomConfigs.L1THLT $Era --customise=$Custom --scenario=$SCEN --python_filename=RelVal_DigiL1RawHLT_$name.py --processName=$PNAME
cat >>RelVal_DigiL1RawHLT_$name.py<<EOF
process.options.numberOfThreads = cms.untracked.uint32(1)
process.options.numberOfStreams = cms.untracked.uint32(1)
EOF
# echo
# echo "Creating FastSim $name"
# cmsDriver.py TTbar_Tauola_13TeV_TuneCUETP8M1_cfi --step=GEN,SIM,RECOBEFMIX,DIGI,L1,DIGI2RAW,L1Reco,RECO,$XHLT --fast --conditions=$GTAG --custom_conditions=$XL1T --fileout=FastSim_GenToHLT_$name.root --number=$NN $DATAMC --no_exec --datatier 'GEN-SIM-DIGI-RECO' --eventcontent FEVTDEBUGHLT --customise=HLTrigger/Configuration/CustomConfigs.L1THLT $Era --customise=$Custom --scenario=$SCEN --python_filename=FastSim_GenToHLT_$name.py --processName=$PNAME
endif
echo
echo "Creating HLT $name"
cmsDriver.py RelVal --step=$XHLT --conditions=$GTAG --filein=file:RelVal_Raw_$name.root --custom_conditions=$XL1T --fileout=RelVal_HLT_$name.root --number=$NN $DATAMC --no_exec --datatier 'SIM-DIGI-RAW-HLTDEBUG' --eventcontent=FEVTDEBUGHLT --customise=HLTrigger/Configuration/CustomConfigs.L1THLT $Era --customise=$Custom --scenario=$SCEN --python_filename=RelVal_HLT_$name.py --processName=$PNAME
echo
echo "Creating HLT2 (re-running HLT) $name"
cmsDriver.py RelVal --step=$XHLT --conditions=$GTAG --filein=file:RelVal_HLT_$name.root --custom_conditions=$XL1T --fileout=RelVal_HLT2_$name.root --number=$NN $DATAMC --no_exec --datatier 'SIM-DIGI-RAW-HLTDEBUG' --eventcontent=RAW --customise=HLTrigger/Configuration/CustomConfigs.L1THLT $Era --customise=$Custom --scenario=$SCEN --python_filename=RelVal_HLT2_$name.py --processName=HLT2
if ( $gtag == DATA ) then
echo
echo "Creating HLT+L1Reco+RECO $name"
cmsDriver.py RelVal --step=$XHLT,RAW2DIGI,L1Reco,RECO --conditions=$RTAG --filein=file:RelVal_Raw_$name.root --custom_conditions=$XL1T --fileout=RelVal_HLT_RECO_$name.root --number=$NN $DATAMC --no_exec --datatier 'SIM-RAW-HLT-RECO' --eventcontent=RAW --customise=HLTrigger/Configuration/CustomConfigs.L1THLT --customise=HLTrigger/Configuration/CustomConfigs.HLTRECO --customise=HLTrigger/Configuration/CustomConfigs.customiseGlobalTagForOnlineBeamSpot $Era --customise=$Custom --scenario=$SCEN --python_filename=RelVal_HLT_Reco_$name.py --processName=$PNAME
if ( $table == HIon ) then
set STEPS = "RAW2DIGI,L1Reco,RECO,DQM"
else
set STEPS = "RAW2DIGI,L1Reco,RECO,PAT,DQM"
endif
echo
echo "Creating RECO+PAT+DQM $name"
cmsDriver.py RelVal --step=$STEPS --conditions=$RTAG --filein=file:RelVal_HLT_$name.root --custom_conditions=$XL1T --fileout=RelVal_RECO_$name.root --number=$NN $DATAMC --no_exec --datatier 'RECO,MINIAOD,DQMIO' --eventcontent=RECO,MINIAOD,DQM --customise=HLTrigger/Configuration/CustomConfigs.Base $Era --customise=$Custom --scenario=$SCEN --python_filename=RelVal_RECO_$name.py --processName=$RNAME
else
echo
echo "Creating HLT+L1Reco+RECO $name"
cmsDriver.py RelVal --step=$XHLT,RAW2DIGI,L1Reco,RECO --conditions=$RTAG --filein=file:RelVal_Raw_$name.root --custom_conditions=$XL1T --fileout=RelVal_HLT_RECO_$name.root --number=$NN $DATAMC --no_exec --datatier 'SIM-RAW-HLT-RECO' --eventcontent=RAW --customise=HLTrigger/Configuration/CustomConfigs.L1THLT --customise=HLTrigger/Configuration/CustomConfigs.HLTRECO $Era --customise=$Custom --scenario=$SCEN --python_filename=RelVal_HLT_Reco_$name.py --processName=$PNAME
echo
echo "Creating RECO+PAT+VALIDATION+DQM $name"
cmsDriver.py RelVal --step=RAW2DIGI,L1Reco,RECO,PAT,VALIDATION,DQM --conditions=$RTAG --filein=file:RelVal_DigiL1RawHLT_$name.root --custom_conditions=$XL1T --fileout=RelVal_RECO_$name.root --number=$NN $DATAMC --no_exec --datatier 'GEN-SIM-RECO,MINIAODSIM,DQMIO' --eventcontent=RECOSIM,MINIAODSIM,DQM --customise=HLTrigger/Configuration/CustomConfigs.Base $Era --customise=$Custom --scenario=$SCEN --python_filename=RelVal_RECO_$name.py --processName=$RNAME
endif
end
end