Skip to content

Commit

Permalink
Fix NanoAOD workflow reading 12_4_X file, and Geant4e test reading 12…
Browse files Browse the repository at this point in the history
…_5_X file

In both cases the input file contains Scouting data formats, whose
evolution causes read failure because of TStreamerInfo being missing
from the file because of a ROOT bug at the time.
  • Loading branch information
makortel committed Jan 31, 2024
1 parent 2e8c612 commit 3bbe9f7
Show file tree
Hide file tree
Showing 3 changed files with 16 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
2 changes: 2 additions & 0 deletions TrackPropagation/Geant4e/test/Geant4e_example_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
'/store/relval/CMSSW_12_5_0_pre3/RelValSingleMuPt10/GEN-SIM-RECO/124X_mcRun3_2022_realistic_v8-v2/10000/6a6528c0-9d66-4358-bacc-158c40b439cf.root'
),
)
from IOPool.Input.fixReading_12_4_X_Files import fixReading_12_4_X_Files
process = fixReading_12_4_X_Files(process)

process.load("TrackPropagation.Geant4e.geantRefit_cff")
process.Geant4eTrackRefitter.src = cms.InputTag("generalTracks")
Expand Down

0 comments on commit 3bbe9f7

Please sign in to comment.