Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13_2_X] Run3 era for 2023 PbPb UPC re-reco #43520

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Configuration/Eras/python/Era_Run3_2023_UPC_cff.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import FWCore.ParameterSet.Config as cms

from Configuration.Eras.Era_Run3_2023_cff import Run3_2023
from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
from Configuration.Eras.Modifier_highBetaStar_2018_cff import highBetaStar_2018
from Configuration.Eras.Modifier_run3_upc_cff import run3_upc

Run3_2023_UPC = cms.ModifierChain(Run3_2023, egamma_lowPt_exclusive, highBetaStar_2018, run3_upc)
3 changes: 3 additions & 0 deletions Configuration/Eras/python/Modifier_run3_upc_cff.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import FWCore.ParameterSet.Config as cms

run3_upc =cms.Modifier()
4 changes: 4 additions & 0 deletions Configuration/PyReleaseValidation/python/relval_standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,10 @@
workflows[141.008511] = ['Run3-2023_JetMET2023B_RecoECALOnlyCPU',['RunJetMET2023B','HLTDR3_2023','RECODR3_reHLT_ECALOnlyCPU','HARVESTRUN3_ECALOnly']]
workflows[141.008521] = ['Run3-2023_JetMET2023B_RecoHCALOnlyCPU',['RunJetMET2023B','HLTDR3_2023','RECODR3_reHLT_HCALOnlyCPU','HARVESTRUN3_HCALOnly']]

### run3-2023 (2023 HI UPC data)
workflows[141.901] = ['',['RunUPC2023','RECODR3_2023_UPC','HARVESTDPROMPTR3']]
workflows[141.902] = ['',['RunUPC2023','RECODR3_2023_HIN','HARVESTDPROMPTR3']]

### run3-2023 (2023 HI data RawPrime with re-HLT)
workflows[142.0] = ['',['RunHIPhysicsRawPrime2023A','HLTDR3_HI2023ARawprime','RECOHIRUN3_reHLT_2023','HARVESTRUN3_HI2023A']]

Expand Down
5 changes: 5 additions & 0 deletions Configuration/PyReleaseValidation/python/relval_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,9 @@
steps['RunMuonEG2023D']={'INPUT':InputInfo(dataSet='/MuonEG/Run2023D-v1/RAW',label='2023D',events=100000,location='STD', ls=Run2023D)}
steps['RunParkingDoubleMuonLowMass2023D']={'INPUT':InputInfo(dataSet='/ParkingDoubleMuonLowMass0/Run2023D-v1/RAW',label='2023D',events=100000,location='STD', ls=Run2023D)}

Run2023UPC={375463: [[52,52]]}
steps['RunUPC2023']={'INPUT':InputInfo(dataSet='/HIForward1/HIRun2023A-v1/RAW',label='upc2023',events=10000,location='STD',ls=Run2023UPC)}

RunHI2023={375491: [[100, 100]]}
steps['RunHIPhysicsRawPrime2023A']={'INPUT':InputInfo(dataSet='/HIPhysicsRawPrime0/HIRun2023A-v1/RAW',label='HI2023A',events=100000,location='STD', ls=RunHI2023)}

Expand Down Expand Up @@ -2602,6 +2605,8 @@ def lhegensim2018ml(fragment,howMuch):
steps['RECODR3_reHLT_2023']=merge([{'--conditions':'auto:run3_data_prompt_relval', '--hltProcess':'reHLT'},steps['RECODR3_2023']])
steps['RECODR3_reHLT_2023B']=merge([{'--conditions':'auto:run3_data_prompt_relval', '--hltProcess':'reHLT'},steps['RECODR3']])

steps['RECODR3_2023_HIN']=merge([{'--conditions':'auto:run3_data_prompt', '-s':'RAW2DIGI,L1Reco,RECO,DQM:@commonFakeHLT+@standardDQMFakeHLT', '--repacked':'', '-n':1000},steps['RECODR3_2023']])
steps['RECODR3_2023_UPC']=merge([{'--era':'Run3_2023_UPC', '--conditions':'132X_dataRun3_Prompt_HI_LowPtPhotonReg_v2'},steps['RECODR3_2023_HIN']])

steps['RECODR3Splash']=merge([{'-n': 2,
'-s': 'RAW2DIGI,L1Reco,RECO,PAT,ALCA:SiStripCalZeroBias+SiStripCalMinBias+TkAlMinBias+EcalESAlign,DQM:@standardDQMFakeHLT+@miniAODDQM'
Expand Down
2 changes: 2 additions & 0 deletions Configuration/StandardSequences/python/Eras.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def __init__(self):
'Run3_FastSim',
'Run3_2023_FastSim',
'Run3_2023_ZDC',
'Run3_2023_UPC',
'Phase2',
'Phase2C9',
'Phase2C10',
Expand Down Expand Up @@ -86,6 +87,7 @@ def __init__(self):
'run2_nanoAOD_106Xv2',
'run3_nanoAOD_122', 'run3_nanoAOD_124',
'run3_ecal_devel',
'run3_upc',
'hcalHardcodeConditions', 'hcalSkipPacker',
'run2_HLTconditions_2016','run2_HLTconditions_2017','run2_HLTconditions_2018',
'bParking']
Expand Down
3 changes: 2 additions & 1 deletion Configuration/StandardSequences/python/Reconstruction_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,15 @@
# AA data with pp reco
from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
from RecoHI.HiTracking.HILowPtConformalPixelTracks_cfi import *
from RecoHI.HiCentralityAlgos.HiCentrality_cfi import hiCentrality
from RecoHI.HiCentralityAlgos.HiClusterCompatibility_cfi import hiClusterCompatibility
_highlevelreco_HITask = highlevelrecoTask.copy()
_highlevelreco_HITask.add(hiConformalPixelTracksTaskPhase1)
_highlevelreco_HITask.add(hiCentrality)
_highlevelreco_HITask.add(hiClusterCompatibility)
(pp_on_XeXe_2017 | pp_on_AA ).toReplaceWith(highlevelrecoTask, _highlevelreco_HITask)
(pp_on_XeXe_2017 | pp_on_AA | run3_upc).toReplaceWith(highlevelrecoTask, _highlevelreco_HITask)
pp_on_AA.toReplaceWith(highlevelrecoTask,highlevelrecoTask.copyAndExclude([PFTauTask]))

# not commisoned and not relevant in FastSim (?):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
cut = cms.string("pt > 1. && electronID('ID') > -0.25"),
)

# Modifier for UPC
from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
egamma_lowPt_exclusive.toModify(selectedPatLowPtElectrons,cut = "")

# Modifier for bParking (fully open selection)
from Configuration.Eras.Modifier_bParking_cff import bParking
bParking.toModify(selectedPatLowPtElectrons,cut = "pt > 1.")
Expand Down
12 changes: 12 additions & 0 deletions PhysicsTools/PatAlgos/python/slimming/MicroEventContent_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,18 @@
from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
pp_on_AA.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _pp_on_AA_extraCommands)

_upc_extraCommands = [
'keep patPackedCandidates_hiPixelTracks_*_*',
'keep floatedmValueMap_packedPFCandidateTrackChi2_*_*',
'keep floatedmValueMap_lostTrackChi2_*_*',
'keep recoCentrality_hiCentrality_*_*',
'keep recoClusterCompatibility_hiClusterCompatibility_*_*',
'keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*',
]

from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
run3_upc.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _upc_extraCommands)

_zdc_extraCommands = ['keep QIE10DataFrameHcalDataFrameContainer_hcalDigis_ZDC_*']
from Configuration.ProcessModifiers.storeZDCDigis_cff import storeZDCDigis
storeZDCDigis.toModify(MicroEventContent, outputCommands = MicroEventContent.outputCommands + _zdc_extraCommands)
Expand Down
3 changes: 3 additions & 0 deletions PhysicsTools/PatAlgos/python/slimming/isolatedTracks_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@
from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
pp_on_AA.toModify(isolatedTracks, useHighPurity = True)

from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
run3_upc.toModify(isolatedTracks, pT_cut = 0.0, pT_cut_noIso = 0.0, saveDeDxHitInfoCut = "")

def miniAOD_customizeIsolatedTracksFastSim(process):
"""Switch off dE/dx hit info on fast sim, as it's not available"""
process.isolatedTracks.saveDeDxHitInfo = False
Expand Down
3 changes: 3 additions & 0 deletions PhysicsTools/PatAlgos/python/slimming/lostTracks_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@

from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff import run2_miniAOD_pp_on_AA_103X
run2_miniAOD_pp_on_AA_103X.toModify(lostTracks,inputCandidates = 'cleanedParticleFlow')

from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
run3_upc.toModify(lostTracks, minPtToStoreProps = 0.0, passThroughCut = "")
2 changes: 2 additions & 0 deletions PhysicsTools/PatAlgos/python/slimming/miniAOD_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def miniAOD_customizeCommon(process):
phase2_muon.toModify(process.selectedPatMuons, cut = "pt > 5 || isPFMuon || (pt > 3 && (isGlobalMuon || isStandAloneMuon || numberOfMatches > 0 || muonID('RPCMuLoose') || muonID('ME0MuonArbitrated') || muonID('GEMMuonArbitrated')) )")
from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
pp_on_AA.toModify(process.selectedPatMuons, cut = "pt > 5 || isPFMuon || (pt > 1.2 && (isGlobalMuon || isStandAloneMuon) )")
from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
run3_upc.toModify(process.selectedPatMuons, cut = "")

process.selectedPatElectrons.cut = cms.string("")
process.selectedPatTaus.cut = cms.string("pt > 18. && tauID('decayModeFindingNewDMs')> 0.5")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@
inputCollection = "cleanedParticleFlow",
chargedHadronIsolation = ""
)

from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
run3_upc.toModify(packedPFCandidates, minPtForChargedHadronProperties = 0.0, minPtForTrackProperties = 0.0)
3 changes: 3 additions & 0 deletions PhysicsTools/PatAlgos/python/slimming/slimmedCaloJets_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@

from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
pp_on_AA.toModify(slimmedCaloJets, src = 'akPu4CaloJets')

from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
run3_upc.toModify(slimmedCaloJets, cut = "pt>5")
3 changes: 3 additions & 0 deletions PhysicsTools/PatAlgos/python/slimming/slimming_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,6 @@
from PhysicsTools.PatAlgos.slimming.patPhotonDRNCorrector_cfi import patPhotonsDRN
from Configuration.ProcessModifiers.photonDRN_cff import _photonDRN
_photonDRN.toReplaceWith(slimmingTask, cms.Task(slimmingTask.copy(), patPhotonsDRN))

from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
run3_upc.toReplaceWith(slimmingTask, cms.Task(slimmingTask.copy(), hiPixelTracks, packedPFCandidateTrackChi2, lostTrackChi2))
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ def thresholds( wp ) :

from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
pp_on_AA.toModify(lowPtGsfElectronSeeds,MinPtThreshold = 5.0)

from Configuration.ProcessModifiers.egamma_lowPt_exclusive_cff import egamma_lowPt_exclusive
egamma_lowPt_exclusive.toModify(lowPtGsfElectronSeeds, ModelThresholds = thresholds("VL"), MinPtThreshold = 0.05)
3 changes: 2 additions & 1 deletion RecoHI/HiCentralityAlgos/python/HiCentrality_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@

from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
(pp_on_XeXe_2017 | pp_on_AA).toModify(hiCentrality,
from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
(pp_on_XeXe_2017 | pp_on_AA | run3_upc).toModify(hiCentrality,
producePixelTracks = True,
srcPixelTracks = "hiConformalPixelTracks",
srcTracks = "generalTracks",
Expand Down
4 changes: 4 additions & 0 deletions RecoHI/HiTracking/python/HILowPtConformalPixelTracks_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,7 @@
))

hiConformalPixelTracksSequencePhase1 = cms.Sequence(hiConformalPixelTracksTaskPhase1)

from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
run3_upc.toModify(hiConformalPixelTracksPhase1TrackingRegions.RegionPSet, ptMin = 0.05)
run3_upc.toModify(hiConformalPixelTracksPhase1Filter, ptMin = 0.05)
3 changes: 2 additions & 1 deletion RecoJets/Configuration/python/RecoJets_EventContent_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@
from Configuration.Eras.Modifier_peripheralPbPb_cff import peripheralPbPb
from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff import pp_on_XeXe_2017
from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
#products from regular pp which does not fit the normal AOD
for e in [pA_2016, peripheralPbPb, pp_on_XeXe_2017, pp_on_AA]:
e.toModify( RecoJetsAOD.outputCommands,
func=lambda outputCommands: outputCommands.extend(['keep *_towerMaker_*_*'])
)
for e in [pp_on_XeXe_2017, pp_on_AA]:
for e in [pp_on_XeXe_2017, pp_on_AA, run3_upc]:
e.toModify( RecoJetsAOD.outputCommands,
func=lambda outputCommands: outputCommands.extend(['keep recoCentrality*_hiCentrality_*_*',
'keep recoClusterCompatibility*_hiClusterCompatibility_*_*'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
)
)
#HI-specific products: needed in AOD, propagate to more inclusive tiers as well
from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
pp_on_AA.toModify( RecoTrackerAOD.outputCommands,
(pp_on_AA | run3_upc).toModify( RecoTrackerAOD.outputCommands,
func=lambda outputCommands: outputCommands.extend(['keep recoTracks_hiConformalPixelTracks_*_*'])
)
#RECO content
Expand All @@ -38,7 +39,7 @@
)
)
RecoTrackerRECO.outputCommands.extend(RecoTrackerAOD.outputCommands)
pp_on_AA.toModify( RecoTrackerRECO.outputCommands,
(pp_on_AA | run3_upc).toModify( RecoTrackerRECO.outputCommands,
func=lambda outputCommands: outputCommands.extend([
'keep recoTrackExtras_hiConformalPixelTracks_*_*',
'keep TrackingRecHitsOwned_hiConformalPixelTracks_*_*'
Expand Down
2 changes: 2 additions & 0 deletions RecoTracker/IterativeTracking/python/PixelPairStep_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@
originRadius = 0.2,
fixedError = 4.
))
from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
(highBetaStar_2018 & run3_upc).toModify(pixelPairStepTrackingRegions,RegionPSet = dict(originRadius = 0.015))
fastSim.toModify(pixelPairStepTrackingRegions, RegionPSet=dict(VertexCollection = 'firstStepPrimaryVerticesBeforeMixing'))

# SEEDS
Expand Down
7 changes: 7 additions & 0 deletions RecoTracker/TkSeedGenerator/python/trackerClusterCheck_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,10 @@
MaxNumberOfCosmicClusters = 1000
)

from Configuration.Eras.Modifier_run3_upc_cff import run3_upc
run3_upc.toModify(trackerClusterCheck,
doClusterCheck=True,
cut = "strip < 30000 && pixel < 10000",
MaxNumberOfPixelClusters = 10000,
MaxNumberOfCosmicClusters = 30000
)