1. Get HLT Configuration file

The detailed instructions about the HLT configuration files can be find in the twiki page “E/gamma HLT: Recommendations for PAG” (link) and the links/references therein.

Note

The following commands are used for the training of the Run - 3 HLT regression.

1.1. Setup

cmsrel CMSSW_12_0_1
cd CMSSW_12_0_1/src
cmsenv
git cms-addpkg HLTrigger
git cms-merge-topic Sam-Harper:EGHLTCustomisation_1130pre4
# apply patch available here: https://github.com/cms-sw/cmssw/pull/35368/files
scramv1 b -j 8
voms-proxy-init --voms cms --valid 168:00

1.2. Get hltConfig file

  • Get the hlt config using the following two global tags:

    • REAL: 120X_mcRun3_2021_realistic_v6

    • IDEAL: 120X_mcRun3_2021_realistic_v6_ECALIdealIC

Command to get the hltConfig:

  1. For real IC

hltGetConfiguration /users/swmukher/egm_ele5_open/V16 --setup /dev/CMSSW_12_0_0/GRun/V6 --globaltag 120X_mcRun3_2021_realistic_v6 --input root://cms-xrd-global.cern.ch//store/mc/Run3Winter21DRMiniAOD/DoubleElectron_Pt-1To300-gun/GEN-SIM-DIGI-RAW/FlatPU0to80FEVT_112X_mcRun3_2021_realistic_v16-v3/120002/5db8ce5f-a1e0-4604-b947-1a1da5bbf5e7.root --mc --process MYHLT --prescale none --max-events 50 --eras Run3 --output none --customise HLTrigger/Configuration/customizeHLTforEGamma.customiseEGammaMenuDev > hlt_real.py
  1. For ideal IC

hltGetConfiguration /users/swmukher/egm_ele5_open/V16 --setup /dev/CMSSW_12_0_0/GRun/V6 --globaltag 120X_mcRun3_2021_realistic_v6_ECALIdealIC --input root://cms-xrd-global.cern.ch//store/mc/Run3Winter21DRMiniAOD/DoubleElectron_Pt-1To300-gun/GEN-SIM-DIGI-RAW/FlatPU0to80FEVT_112X_mcRun3_2021_realistic_v16-v3/120002/5db8ce5f-a1e0-4604-b947-1a1da5bbf5e7.root --mc --process MYHLT --prescale none --max-events 50 --eras Run3 --output none --customise HLTrigger/Configuration/customizeHLTforEGamma.customiseEGammaMenuDev  > hlt_ideal.py
  • With the previous two commands, we will get the two configuration files. Check them first by running locally using cmsRun. If it works fine submit the crab job over full statistics.

1.3. Crab Submit

cd $CMSSW_BASE/src
cmsenv
voms-proxy-init --voms cms --valid 168:00
source /cvmfs/cms.cern.ch/crab3/crab.sh

Example crab config file (one should modify at least the highlighted lines based on their use)

FileName: crab_config_ideal.py
 1from CRABClient.UserUtilities import config
 2config = config()
 3
 4# config.section_('General')
 5config.General.requestName = 'crab_DoubleElectron_Pt1To300_IDEAL'
 6config.General.workArea = 'crab_DoubleElectron_Pt1To300_IDEAL'
 7config.General.transferOutputs = True
 8config.General.transferLogs = True
 9
10# config.section_('JobType')
11config.JobType.pluginName = 'Analysis'
12config.JobType.psetName = 'hlt_ideal.py'
13config.JobType.numCores = 4
14
15# config.Data.inputDBS = 'phys03'
16config.JobType.allowUndistributedCMSSW = True
17config.JobType.maxMemoryMB = 4000
18
19# config.JobType.numCores = 8
20config.Data.inputDataset ='/DoubleElectron_Pt-1To300-gun/Run3Winter21DRMiniAOD-FlatPU0to80FEVT_112X_mcRun3_2021_realistic_v16-v3/GEN-SIM-DIGI-RAW'
21# config.Data.splitting = 'Automatic'
22config.Data.splitting = 'FileBased'
23config.Data.unitsPerJob = 10
24
25config.Data.outLFNDirBase = '/store/group/phys_egamma/Run3Studies/SCRegression/IDEAL_IC'
26config.Data.publication = False
27config.Site.storageSite = 'T2_CH_CERN'
  • To run the above crab script:

    crab submit crab_config_ideal.py
    
  • To get the last hltconfig file used and the crab scripts you can check the github repository: EGamma_hltConfig_Regression