Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-27 06:46:21

0001 #! /bin/tcsh
0002 
0003 cmsenv
0004 
0005 rehash
0006 
0007 #
0008 # old files in castor: rfdir /castor/cern.ch/cms/store/...
0009 # new files in eos   : cmsLs /store/...
0010 # new files in eos   : eos ls /store/...
0011 #
0012 
0013 #
0014 # gen sim input files for Monte-Carlo tests
0015 #   InputGenSimGRun0 = /store/relval/CMSSW_8_0_11/RelValProdTTbar/GEN-SIM/80X_mcRun1_realistic_v4-v1/10000/06A6C86B-C634-E611-93A5-0CC47A74525A.root
0016 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
0017 #   InputGenSimGRun1 = /store/relval/CMSSW_8_0_16/RelValProdTTbar_13/GEN-SIM/80X_mcRun2_asymptotic_v16_gs7120p2-v1/10000/06F2C3AC-8957-E611-9DDF-0025905B85D8.root
0018 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
0019 #   InputGenSimGRun2 = /store/relval/CMSSW_8_0_16/RelValProdTTbar_13/GEN-SIM/80X_mcRun2_asymptotic_v16_gs7120p2-v1/10000/06F2C3AC-8957-E611-9DDF-0025905B85D8.root
0020 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
0021 #   InputGenSimGRun3 = /store/relval/CMSSW_12_3_0_pre6/RelValTTbar_14TeV/GEN-SIM/123X_mcRun3_2021_realistic_v11-v1/10000/29297788-21c3-4bf2-afe0-5382f08fbcd5.root
0022 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
0023 #   InputGenSimHIon1 = /store/relval/CMSSW_8_0_16/RelValZEEMM_13_HI/GEN-SIM/80X_mcRun2_HeavyIon_v9-v1/10000/F8FC5F64-1657-E611-A57E-002590A887F0.root
0024 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
0025 #   InputGenSimHIon3 = /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
0026 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
0027 
0028 set InputGenSimPIon2 = $InputGenSimGRun2
0029 set InputGenSimPRef2 = $InputGenSimGRun2
0030 set InputGenSimPIon3 = $InputGenSimGRun3
0031 set InputGenSimPRef3 = $InputGenSimGRun3
0032 #
0033 # lhc raw input files for Real-Data tests
0034 set InputLHCRawGRun0 = root://eoscms.cern.ch//eos/cms/store/data/Run2012A/MuEG/RAW/v1/000/191/718/14932935-E289-E111-830C-5404A6388697.root
0035 set InputLHCRawGRun1 = root://eoscms.cern.ch//eos/cms/store/data/Run2015D/MuonEG/RAW/v1/000/256/677/00000/80950A90-745D-E511-92FD-02163E011C5D.root
0036 set InputLHCRawGRun2 = root://eoscms.cern.ch//eos/cms/store/data/Run2016B/JetHT/RAW/v1/000/272/762/00000/C666CDE2-E013-E611-B15A-02163E011DBE.root
0037 set InputLHCRawGRun3 = root://eoscms.cern.ch//eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STORM/RAW/Commissioning2021_MinimumBias1_run346304/0949cd03-66a6-4034-a630-b9fef4dde3d2.root
0038 set InputLHCRawHIon1 = root://eoscms.cern.ch//eos/cms/store/hidata/HIRun2015/HIHardProbes/RAW-RECO/HighPtJet-PromptReco-v1/000/263/689/00000/1802CD9A-DDB8-E511-9CF9-02163E0138CA.root
0039 #et InputLHCRawHIon3 = root://eoscms.cern.ch//eos/cms/store/hidata/HIRun2018A/HIHardProbes/RAW/v1/000/326/479/00000/853DBE29-53BA-9A44-9FDD-58E4E9064EB1.root
0040 set InputLHCRawHIon3 = root://eoscms.cern.ch//eos/cms/store/group/dpg_trigger/comm_trigger/TriggerStudiesGroup/STORM/RAW/Commissioning2021_MinimumBias1_run346304/0949cd03-66a6-4034-a630-b9fef4dde3d2.root
0041 set InputLHCRawPIon2 = $InputLHCRawGRun2
0042 set InputLHCRawPRef2 = $InputLHCRawGRun2
0043 set InputLHCRawPIon3 = $InputLHCRawGRun3
0044 set InputLHCRawPRef3 = $InputLHCRawGRun3
0045 
0046 #
0047 # global tags to be used
0048 set BASE1MC  = auto:run1_mc
0049 set BASE1HLT = auto:run1_hlt
0050 set BASE1RD  = auto:run1_data
0051 set BASE2MC  = auto:run2_mc
0052 set BASE2HLT = auto:run2_hlt
0053 set BASE2RD  = auto:run2_data
0054 set BASE3MC  = auto:run3_mc
0055 set BASE3HLT = auto:run3_hlt
0056 set BASE3RD  = auto:run3_data
0057 
0058 set NNPPMC = 100
0059 set NNPPRD = 100
0060 set NNHIMC = 100
0061 set NNHIRD = 25
0062 
0063 set EraRun1        = " "
0064 set EraRun25ns     = " --era=Run2_25ns "
0065 set EraRun2pp2016  = " --era=Run2_2016 "
0066 set EraRun2pp2017  = " --era=Run2_2017 "
0067 set EraRun2pp2018  = " --era=Run2_2018 "
0068 set EraRun2HI      = " --era=Run2_2018_pp_on_AA "
0069 set EraRun3pp      = " --era=Run3 "
0070 set EraRun3HI      = " --era=Run3_pp_on_PbPb "
0071  
0072 set XL1T    = "" # syntax: tag,record[,connect,label]
0073 set XL1TPP1 = "" # "L1GtTriggerMenu_L1Menu_Collisions2012_v1_mc,L1GtTriggerMenuRcd,frontier://FrontierProd/CMS_CONDITIONS"
0074 set XL1TPP2 = "" # "L1GtTriggerMenu_L1Menu_Collisions2012_v2_mc,L1GtTriggerMenuRcd,frontier://FrontierProd/CMS_CONDITIONS"
0075 set XL1TPP3 = "" # "L1GtTriggerMenu_L1Menu_Collisions2012_v3_mc,L1GtTriggerMenuRcd,frontier://FrontierProd/CMS_CONDITIONS"
0076 #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"
0077 set XL1THI  = "" # "L1GtTriggerMenu_L1Menu_CollisionsHeavyIons2011_v0_mc,L1GtTriggerMenuRcd,frontier://FrontierProd/CMS_CONDITIONS"
0078 #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"
0079 set XL1TPI  = "" # "L1GtTriggerMenu_L1Menu_CollisionsHeavyIons2013_v0_mc,L1GtTriggerMenuRcd,frontier://FrontierProd/CMS_CONDITIONS"
0080 #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" 
0081 set XL1TLOWPU  = "" # ""
0082 
0083 # specific workflows, first varying the globaltags, then the hlt tables
0084 
0085 # Append new JECs (as long as not in GT):
0086 #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"
0087 #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"
0088 #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"
0089 
0090 #set XL1TPP1 = ${XL1TPP1}+${XJEC}
0091 #set XL1TPP2 = ${XL1TPP2}+${XJEC}
0092 #set XL1TPP3 = ${XJEC}
0093 #set XL1THI  = ${XJEC}
0094 #set XL1TPI  = ${XJEC}
0095 
0096 foreach gtag ( MC DATA )
0097   if ( $gtag == DATA ) then
0098     set BASE1  = $BASE1HLT
0099     set BASE2  = $BASE2HLT
0100     set BASE3  = $BASE3HLT
0101     set RECO1  = $BASE1RD
0102     set RECO2  = $BASE2RD
0103     set RECO3  = $BASE3RD
0104     set NNPP   = $NNPPRD
0105     set NNHI   = $NNHIRD
0106     set DATAMC = --data
0107     set PNAME  = HLT1
0108     set RNAME  = RECO1
0109   else  if ( $gtag == MC ) then
0110     set BASE1  = $BASE1MC
0111     set BASE2  = $BASE2MC
0112     set BASE3  = $BASE3MC
0113     set RECO1  = $BASE1MC
0114     set RECO2  = $BASE2MC
0115     set RECO3  = $BASE3MC
0116     set NNPP   = $NNPPMC
0117     set NNHI   = $NNHIMC
0118     set DATAMC = --mc
0119     set PNAME  = HLT
0120     set RNAME  = RECO
0121   else
0122     # unsupported
0123     continue
0124   endif
0125   
0126   if ( $1 == "" ) then
0127     set tables = ( GRun )
0128   else if ( ($1 == all) || ($1 == ALL) ) then
0129     set tables = ( GRun HIon PIon PRef 2022v12 Fake Fake1 Fake2 )
0130   else if ( ($1 == ib) || ($1 == IB) ) then
0131     set tables = ( GRun HIon PIon PRef )
0132   else if ( ($1 == dev) || ($1 == DEV) ) then
0133     set tables = ( GRun HIon PIon PRef )
0134   else if ( ($1 == full) || ($1 == FULL) ) then
0135     set tables = ( FULL )
0136   else if ( ($1 == fake) || ($1 == FAKE) ) then
0137     set tables = ( Fake Fake1 Fake2 )
0138   else if ( ($1 == frozen) || ($1 == FROZEN) ) then
0139     set tables = ( 2022v12 )
0140   else
0141     set tables = ( $1 )
0142   endif
0143   
0144   foreach table ( $tables )
0145 
0146     set name = ${table}_${gtag}  
0147 
0148     if ( $table == FULL ) then
0149       set XL1T = $XL1TPP3
0150       set XHLT = HLT:FULL
0151       set GTAG = ${BASE3}_FULL
0152       set RTAG = ${RECO3}_FULL
0153       set NN   = $NNPP
0154       set SCEN = pp
0155       set InputGenSim = $InputGenSimGRun3
0156       set InputLHCRaw = $InputLHCRawGRun3
0157       set Era  = $EraRun3pp
0158       set Custom = " "
0159       set L1REPACK = L1REPACK:Full
0160       set DIGI = DIGI:pdigi
0161     else if ( $table == Fake ) then
0162       set XL1T = $XL1TPP3
0163       set XHLT = HLT:Fake
0164       set GTAG = ${BASE1}_Fake
0165       set RTAG = ${RECO1}_Fake
0166       set NN   = $NNPP
0167       set SCEN = pp
0168       set InputGenSim = $InputGenSimGRun0
0169       set InputLHCRaw = $InputLHCRawGRun0
0170       set Era  = $EraRun1
0171       set Custom = " "
0172       set L1REPACK = L1REPACK:GT1
0173       set DIGI = DIGI:pdigi
0174     else if ( $table == Fake1 ) then
0175       set XL1T = $XL1TPP3
0176       set XHLT = HLT:Fake1
0177       set GTAG = ${BASE2}_Fake1
0178       set RTAG = ${RECO2}_Fake1
0179       set NN   = $NNPP
0180       set SCEN = pp
0181       set InputGenSim = $InputGenSimGRun1
0182       set InputLHCRaw = $InputLHCRawGRun1
0183       set Era  = $EraRun25ns
0184       set Custom = " "
0185       set L1REPACK = L1REPACK:GCTGT
0186       set DIGI = DIGI:pdigi
0187     else if ( $table == Fake2 ) then
0188       set XL1T = $XL1TPP3
0189       set XHLT = HLT:Fake2
0190       set GTAG = ${BASE2}_Fake2
0191       set RTAG = ${RECO2}_Fake2
0192       set NN   = $NNPP
0193       set SCEN = pp
0194       set InputGenSim = $InputGenSimGRun2
0195       set InputLHCRaw = $InputLHCRawGRun2
0196       set Era  = $EraRun2pp2016
0197       set Custom = " "
0198       set L1REPACK = L1REPACK:Full
0199       set DIGI = DIGI:pdigi
0200     else if ( $table == GRun ) then
0201       set XL1T = $XL1TPP3
0202       set XHLT = HLT:GRun
0203       set GTAG = ${BASE3}_GRun
0204       set RTAG = ${RECO3}_GRun
0205       set NN   = $NNPP
0206       set SCEN = pp
0207       set InputGenSim = $InputGenSimGRun3
0208       set InputLHCRaw = $InputLHCRawGRun3
0209       set Era  = $EraRun3pp
0210       set Custom = " "
0211       set L1REPACK = L1REPACK:Full
0212       set DIGI = DIGI:pdigi
0213     else if ( $table == 2022v12 ) then
0214       set XL1T = $XL1TPP3
0215       set XHLT = HLT:2022v12
0216       set GTAG = ${BASE3}_2022v12
0217       set RTAG = ${RECO3}_2022v12
0218       set NN   = $NNPP
0219       set SCEN = pp
0220       set InputGenSim = $InputGenSimGRun3
0221       set InputLHCRaw = $InputLHCRawGRun3
0222       set Era  = $EraRun3pp
0223       set Custom = " "
0224       set L1REPACK = L1REPACK:Full
0225       set DIGI = DIGI:pdigi
0226     else if ( $table == HIon ) then
0227       set XL1T = $XL1THI
0228       set XHLT = HLT:HIon
0229       set GTAG = ${BASE3}_HIon
0230       set RTAG = ${RECO3}_HIon
0231       set NN   = $NNHI
0232       set SCEN = pp
0233       set InputGenSim = $InputGenSimHIon3
0234       set InputLHCRaw = $InputLHCRawHIon3
0235       set Era  = $EraRun3HI
0236       set Custom = " "
0237       set L1REPACK = L1REPACK:Full
0238       set DIGI = DIGI:pdigi_hi_nogen
0239     else if ( $table == PIon ) then
0240       set XL1T = $XL1TPI
0241       set XHLT = HLT:PIon
0242       set GTAG = ${BASE3}_PIon
0243       set RTAG = ${RECO3}_PIon
0244       set NN   = $NNPP
0245       set SCEN = pp
0246       set InputGenSim = $InputGenSimPIon3
0247       set InputLHCRaw = $InputLHCRawPIon3
0248       set Era  = $EraRun3pp
0249       set Custom = " "
0250       set L1REPACK = L1REPACK:Full
0251       set DIGI = DIGI:pdigi
0252     else if ( $table == PRef ) then
0253       set XL1T = $XL1TPP3
0254       set XHLT = HLT:PRef
0255       set GTAG = ${BASE3}_PRef
0256       set RTAG = ${RECO3}_PRef
0257       set NN   = $NNPP
0258       set SCEN = pp
0259       set InputGenSim = $InputGenSimPRef3
0260       set InputLHCRaw = $InputLHCRawPRef3
0261       set Era  = $EraRun3pp
0262       set Custom = " "
0263       set L1REPACK = L1REPACK:Full
0264       set DIGI = DIGI:pdigi
0265     else
0266       # unsupported
0267       continue
0268     endif
0269 
0270     if ( $gtag == DATA ) then
0271 
0272     echo
0273     echo "Creating L1RePack $name"
0274 
0275     if ( $table == HIon ) then
0276     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)'
0277     else
0278     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
0279     endif
0280 
0281     else
0282 
0283 #   echo
0284 #   echo "Creating TTbarGenToHLT $name"
0285 #   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
0286 
0287     echo
0288     echo "Creating DigiL1Raw $name"
0289     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
0290 
0291     cat >>RelVal_DigiL1Raw_$name.py<<EOF
0292 process.options.numberOfThreads = cms.untracked.uint32(1)
0293 process.options.numberOfStreams = cms.untracked.uint32(1)
0294 EOF
0295 
0296     echo
0297     echo "Creating DigiL1RawHLT $name"
0298     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
0299 
0300     cat >>RelVal_DigiL1RawHLT_$name.py<<EOF
0301 process.options.numberOfThreads = cms.untracked.uint32(1)
0302 process.options.numberOfStreams = cms.untracked.uint32(1)
0303 EOF
0304 
0305 #   echo
0306 #   echo "Creating FastSim $name"
0307 #   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
0308 
0309     endif
0310 
0311     echo
0312     echo "Creating HLT $name"
0313     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
0314 
0315     echo
0316     echo "Creating HLT2 (re-running HLT) $name"
0317     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
0318 
0319     if ( $gtag == DATA ) then
0320 
0321     echo
0322     echo "Creating HLT+L1Reco+RECO $name"
0323     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
0324 
0325     if ( $table == HIon ) then
0326       set STEPS = "RAW2DIGI,L1Reco,RECO,DQM"
0327     else
0328       set STEPS = "RAW2DIGI,L1Reco,RECO,PAT,DQM"
0329     endif
0330 
0331     echo
0332     echo "Creating RECO+PAT+DQM $name"
0333     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
0334 
0335     else
0336 
0337     echo
0338     echo "Creating HLT+L1Reco+RECO $name"
0339     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
0340 
0341     echo
0342     echo "Creating RECO+PAT+VALIDATION+DQM $name"
0343     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
0344 
0345 
0346     endif
0347 
0348   end
0349 end