Skip to content

Commit 9b5124f

Browse files
committed
add customization and workflow for hcalNano from MC
1 parent d7b551b commit 9b5124f

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

Configuration/PyReleaseValidation/python/relval_nano.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,13 @@ def subnext(self):
203203
steps['scoutingNANO_withPrompt_mc14.0'] = merge([{'-s': 'NANO:@Prompt+@Scout'},
204204
steps['NANO_mc14.0']])
205205

206+
steps['SinglePionRAW14.0'] = {'INPUT': InputInfo(
207+
location='STD', dataSet='/SinglePion_E-50_Eta-0to3-pythia8-gun/Run3Winter25Digi-NoPU_142X_mcRun3_2025BOY_realistic_Candidate_2024_11_13_17_21_33-v2/GEN-SIM-RAW')}
208+
209+
steps['hcalDPGNANO_mc14.0'] = merge([{'-s': 'RAW2DIGI,RECO,NANO:@HCALMC', '-n': '100',
210+
'--processName': 'NANO'},
211+
steps['NANO_mc14.0']])
212+
206213
# 14.0 workflows -- data
207214
lumis_Run2024D = {380306: [[28, 273]]}
208215
steps['MuonEG2024MINIAOD14.0'] = {'INPUT': InputInfo(location='STD', ls=lumis_Run2024D,
@@ -369,6 +376,13 @@ def subnext(self):
369376
workflows[_wfn()] = ['hcalDPGNANO140Xrun3', ['ZeroBias2024RAW14.0', 'hcalDPGNANO_data14.0']]
370377
workflows[_wfn()] = ['hcalDPGCalibNANO140Xrun3', ['TestEnablesEcalHcal2024RAW14.0', 'hcalDPGCalibNANO_data14.0']]
371378

379+
# DPG custom NANOs, MC
380+
_wfn.subnext()
381+
workflows[_wfn()] = ['hcalDPGMCNANO140Xrun3', ['SinglePionRAW14.0', 'hcalDPGNANO_mc14.0']]
382+
# The above HCAL workflow is actually using data produced for 14.2
383+
# but I keep the 14.0 label for now since it's consistent with those ones
384+
# let me know if I should change this
385+
372386
_wfn.next(9)
373387
######## 2500.9xx ########
374388
# NANOGEN
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import FWCore.ParameterSet.Config as cms
2+
3+
# Customization for running on MC
4+
# - Call from cmsDriver.py with: `--customise DPGAnalysis/HcalNanoAOD/customiseHcalMC_cff.customiseHcalMC`
5+
def customiseHcalMC(process):
6+
# Point to appropriate MC digi collections
7+
process.hcalDigiSortedTable.tagQIE11 = cms.untracked.InputTag("simHcalUnsuppressedDigis", "HBHEQIE11DigiCollection")
8+
process.hcalDigiSortedTable.tagQIE10 = cms.untracked.InputTag("simHcalUnsuppressedDigis","HFQIE10DigiCollection")
9+
process.hcalDigiSortedTable.tagHO = cms.untracked.InputTag("simHcalUnsuppressedDigis")
10+
11+
# Use the appropriate number of samples for digis in MC
12+
process.hcalDigiSortedTable.nTS_HB = cms.untracked.uint32(10)
13+
process.hcalDigiSortedTable.nTS_HE = cms.untracked.uint32(10)
14+
15+
return process

PhysicsTools/NanoAOD/python/autoNANO.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ def expandNanoMapping(seqList, mapping, key):
5858
'HCAL': {'sequence': 'DPGAnalysis/HcalNanoAOD/hcalNano_cff.hcalNanoTask'},
5959
'HCALCalib': {'sequence': 'DPGAnalysis/HcalNanoAOD/hcalNano_cff.hcalNanoTask',
6060
'customize': 'DPGAnalysis/HcalNanoAOD/customiseHcalCalib_cff.customiseHcalCalib'},
61+
'HCALMC': {'sequence': 'DPGAnalysis/HcalNanoAOD/hcalNano_cff.hcalNanoTask',
62+
'customize': 'DPGAnalysis/HcalNanoAOD/customiseHcalMC_cff.customiseHcalMC'},
6163
# EGM flavours: add variables through customize
6264
'EGM': {'sequence': '@PHYS',
6365
'customize': '@PHYS+PhysicsTools/NanoAOD/egamma_custom_cff.addExtraEGammaVarsCustomize'},

0 commit comments

Comments
 (0)