Skip to content

Commit

Permalink
Merge pull request #47146 from missirol/devel_DataFormatsL1TGlobal_bk…
Browse files Browse the repository at this point in the history
…wdCompTest_15_0_0_pre2

update `TestGlobalObjectMapRecordFormat` unit test with `CMSSW_15_0_0_pre2` inputs
  • Loading branch information
cmsbuild authored Jan 29, 2025
2 parents 538f668 + 588d545 commit 7f549d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions DataFormats/L1TGlobal/test/TestGlobalObjectMapRecordFormat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ for file in $oldFiles; do
cmsRun ${LOCAL_TEST_DIR}/test_readGlobalObjectMapRecord_cfg.py --inputFileName "$inputfile" --globalObjectMapClassVersion 10 || die "Failed to read old file $file" $?
done

#oldFiles="testGlobalObjectMapRecord_CMSSW_15_0_0_pre2_split_99.root testGlobalObjectMapRecord_CMSSW_15_0_0_pre2_split_0.root"
#for file in $oldFiles; do
# inputfile=$(edmFileInPath DataFormats/L1TGlobal/data/$file) || die "Failure edmFileInPath DataFormats/L1TGlobal/data/$file" $?
# cmsRun ${LOCAL_TEST_DIR}/test_readGlobalObjectMapRecord_cfg.py --inputFileName "$inputfile" --globalObjectMapClassVersion 11 || die "Failed to read old file $file" $?
#done
oldFiles="testGlobalObjectMapRecord_CMSSW_15_0_0_pre2_split_99.root testGlobalObjectMapRecord_CMSSW_15_0_0_pre2_split_0.root"
for file in $oldFiles; do
inputfile=$(edmFileInPath DataFormats/L1TGlobal/data/$file) || die "Failure edmFileInPath DataFormats/L1TGlobal/data/$file" $?
cmsRun ${LOCAL_TEST_DIR}/test_readGlobalObjectMapRecord_cfg.py --inputFileName "$inputfile" --globalObjectMapClassVersion 11 || die "Failed to read old file $file" $?
done

exit 0
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
parser = argparse.ArgumentParser(prog=sys.argv[0], description='Test GlobalObjectMapRecord')

parser.add_argument('--outputFileName', type=str, help='Output file name (default: testGlobalObjectMapRecord.root)', default='testGlobalObjectMapRecord.root')
parser.add_argument('--splitLevel', type=int, help='Split level of ROOT branches in EDM output file (default: 99)', default=99)
args = parser.parse_args()

process = cms.Process("PROD")
Expand Down Expand Up @@ -36,7 +37,8 @@
)

process.out = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string(f'{args.outputFileName}')
fileName = cms.untracked.string(f'{args.outputFileName}'),
splitLevel = cms.untracked.int32(args.splitLevel)
)

process.path = cms.Path(process.globalObjectMapRecordProducer)
Expand Down

0 comments on commit 7f549d8

Please sign in to comment.