Skip to content

Commit

Permalink
Merge pull request #43828 from makortel/fixScoutingSchemaEvolution
Browse files Browse the repository at this point in the history
Fix NanoAOD workflow reading 12_4_X file
  • Loading branch information
cmsbuild authored Feb 5, 2024
2 parents ac33e94 + c03da0e commit 4bcdafb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Configuration/PyReleaseValidation/python/relval_nano.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ def subnext(self):
'--datatier':'NANOAOD',
'--eventcontent':'NANOAOD',
'--filein':'/store/mc/Run3Summer22MiniAODv3/BulkGravitonToHH_MX1120_MH121_TuneCP5_13p6TeV_madgraph-pythia8/MINIAODSIM/124X_mcRun3_2022_realistic_v12-v3/2810000/f9cdd76c-faac-4f24-bf0c-2496c8fffe54.root',
'--secondfilein':'/store/mc/Run3Summer22DRPremix/BulkGravitonToHH_MX1120_MH121_TuneCP5_13p6TeV_madgraph-pythia8/AODSIM/124X_mcRun3_2022_realistic_v12-v3/2810000/ab09fc5d-859c-407f-b7ce-74b0bae9bb96.root'}])
'--secondfilein':'/store/mc/Run3Summer22DRPremix/BulkGravitonToHH_MX1120_MH121_TuneCP5_13p6TeV_madgraph-pythia8/AODSIM/124X_mcRun3_2022_realistic_v12-v3/2810000/ab09fc5d-859c-407f-b7ce-74b0bae9bb96.root',
'--customise':'IOPool/Input/fixReading_12_4_X_Files.fixReading_12_4_X_Files'}])

_wfn=WFN(2500)
################
Expand Down
12 changes: 12 additions & 0 deletions IOPool/Input/python/fixReading_12_4_X_Files.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import FWCore.ParameterSet.Config as cms

# ROOT version used in 12_4_X (2022 data taking), and in 13_0_X up to
# 13_0_3 had a bug where TStreamerInfo was missing in some cases. This
# customize function adds a Service to include the TStreamerInfo for
# the affected classes so that the old files can be read now that some
# of the affected data format classes have evolved.
def fixReading_12_4_X_Files(process):
process.add_(cms.Service("FixMissingStreamerInfos",
fileInPath = cms.untracked.FileInPath("IOPool/Input/data/fileContainingStreamerInfos_13_0_0.root")
))
return process

0 comments on commit 4bcdafb

Please sign in to comment.