Skip to content

Commit

Permalink
Fixes for recent raw data format test PR
Browse files Browse the repository at this point in the history
  • Loading branch information
wddgit committed Sep 23, 2024
1 parent 0477f06 commit 633c8ae
Show file tree
Hide file tree
Showing 20 changed files with 41 additions and 28 deletions.
2 changes: 1 addition & 1 deletion DataFormats/Common/test/TestTriggerResultsFormat.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -ex
#!/bin/bash

function die { echo $1: status $2 ; exit $2; }

Expand Down
3 changes: 2 additions & 1 deletion DataFormats/Common/test/test_readTriggerResults_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
)

process.out = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string('testTriggerResults2.root')
fileName = cms.untracked.string('testTriggerResults2.root'),
fastCloning = cms.untracked.bool(False)
)

process.path = cms.Path(process.testReadTriggerResults)
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/DetId/test/TestVectorDetId.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -ex
#!/bin/bash

function die { echo $1: status $2 ; exit $2; }

Expand Down
3 changes: 2 additions & 1 deletion DataFormats/DetId/test/test_readVectorDetId_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
)

process.out = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string('testVectorDetId2.root')
fileName = cms.untracked.string('testVectorDetId2.root'),
fastCloning = cms.untracked.bool(False)
)

process.path = cms.Path(process.testReadVectorDetId)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -ex
#!/bin/bash

function die { echo $1: status $2 ; exit $2; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
)

process.out = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string('testFEDRawDataCollection2.root')
fileName = cms.untracked.string('testFEDRawDataCollection2.root'),
fastCloning = cms.untracked.bool(False)
)

process.path = cms.Path(process.testReadFEDRawDataCollection)
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/HLTReco/test/TestTriggerEventFormat.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -ex
#!/bin/bash

function die { echo $1: status $2 ; exit $2; }

Expand Down
3 changes: 2 additions & 1 deletion DataFormats/HLTReco/test/test_readTriggerEvent_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
)

process.out = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string('testTriggerEvent2.root')
fileName = cms.untracked.string('testTriggerEvent2.root'),
fastCloning = cms.untracked.bool(False)
)

process.path = cms.Path(process.testReadTriggerEvent)
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/L1Scouting/test/TestL1ScoutingFormat.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -ex
#!/bin/bash

function die { echo $1: status $2 ; exit $2; }

Expand Down
3 changes: 2 additions & 1 deletion DataFormats/L1Scouting/test/read_L1Scouting_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
)

process.out = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string('testL1Scouting2.root')
fileName = cms.untracked.string('testL1Scouting2.root'),
fastCloning = cms.untracked.bool(False)
)

process.path = cms.Path(process.l1ScoutingTestAnalyzer)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -ex
#!/bin/bash

function die { echo $1: status $2 ; exit $2; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
)

process.out = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string('testSDSRawDataCollection2.root')
fileName = cms.untracked.string('testSDSRawDataCollection2.root'),
fastCloning = cms.untracked.bool(False)
)

process.path = cms.Path(process.testReadSDSDRawDataCollection)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -ex
#!/bin/bash

function die { echo $1: status $2 ; exit $2; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
)

process.out = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string('testGlobalObjectMapRecord2.root')
fileName = cms.untracked.string('testGlobalObjectMapRecord2.root'),
fastCloning = cms.untracked.bool(False)
)

process.path = cms.Path(process.testReadGlobalObjectMapRecord)
Expand Down
2 changes: 1 addition & 1 deletion DataFormats/Scouting/test/TestRun2ScoutingFormats.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -ex
#!/bin/bash

function die { echo $1: status $2 ; exit $2; }

Expand Down
16 changes: 9 additions & 7 deletions DataFormats/Scouting/test/TestRun3ScoutingFormats.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -ex
#!/bin/bash

function die { echo $1: status $2 ; exit $2; }

Expand Down Expand Up @@ -65,13 +65,15 @@ cmsRun ${LOCAL_TEST_DIR}/test_readRun3Scouting_cfg.py || die "Failure using test
# one took the time to investigate that). When reading that file
# the Service named "FixMissingStreamerInfos" needs to be used.

oldFiles="testRun3Scouting_v3_v5_v3_v4_v5_v3_v5_v3_v3_CMSSW_12_4_0_split_99.root testRun3Scouting_v3_v5_v3_v4_v5_v3_v5_v3_v3_CMSSW_12_4_0_split_0.root"
for file in $oldFiles; do
inputfile=$(edmFileInPath DataFormats/Scouting/data/$file) || die "Failure edmFileInPath DataFormats/Scouting/data/$file" $?
argsPassedToPython="--inputFile $inputfile --outputFileName testRun3Scouting2_CMSSW_12_4_0.root --electronVersion 5 --photonVersion 5 --vertexVersion 3"
cmsRun ${LOCAL_TEST_DIR}/test_readRun3Scouting_cfg.py $argsPassedToPython || die "Failed to read old file $file" $?
done
file=testRun3Scouting_v3_v5_v3_v4_v5_v3_v5_v3_v3_CMSSW_12_4_0_split_99.root
inputfile=$(edmFileInPath DataFormats/Scouting/data/$file) || die "Failure edmFileInPath DataFormats/Scouting/data/$file" $?
argsPassedToPython="--inputFile $inputfile --outputFileName testRun3Scouting2_CMSSW_12_4_0.root --electronVersion 5 --photonVersion 5 --vertexVersion 3"
cmsRun ${LOCAL_TEST_DIR}/test_readRun3Scouting_cfg.py $argsPassedToPython || die "Failed to read old file $file" $?

file=testRun3Scouting_v3_v5_v3_v4_v5_v3_v5_v3_v3_CMSSW_12_4_0_split_0.root
inputfile=$(edmFileInPath DataFormats/Scouting/data/$file) || die "Failure edmFileInPath DataFormats/Scouting/data/$file" $?
argsPassedToPython="--inputFile $inputfile --outputFileName testRun3Scouting2_CMSSW_12_4_0.root --electronVersion 5 --photonVersion 5 --vertexVersion 3 --fixStreamerInfo"
cmsRun ${LOCAL_TEST_DIR}/test_readRun3Scouting_cfg.py $argsPassedToPython || die "Failed to read old file $file" $?

oldFiles="testRun3Scouting_v3_v6_v3_v4_v5_v3_v5_v3_v3_CMSSW_13_0_3_split_99.root testRun3Scouting_v3_v6_v3_v4_v5_v3_v5_v3_v3_CMSSW_13_0_3_split_0.root"
for file in $oldFiles; do
Expand Down
3 changes: 2 additions & 1 deletion DataFormats/Scouting/test/test_readRun2Scouting_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
)

process.out = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string(args.outputFileName)
fileName = cms.untracked.string(args.outputFileName),
fastCloning = cms.untracked.bool(False)
)

process.path = cms.Path(process.testReadRun2Scouting)
Expand Down
8 changes: 5 additions & 3 deletions DataFormats/Scouting/test/test_readRun3Scouting_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@

process = cms.Process("READ")

process = fixReading_12_4_X_Files(process)
print("FixingStreamerInfos")
if args.fixStreamerInfo:
process = fixReading_12_4_X_Files(process)
print("FixingStreamerInfos")

process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring("file:"+args.inputFile))

Expand Down Expand Up @@ -113,7 +114,8 @@
)

process.out = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string(args.outputFileName)
fileName = cms.untracked.string(args.outputFileName),
fastCloning = cms.untracked.bool(False)
)

process.path = cms.Path(process.testReadRun3Scouting)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh -ex
#!/bin/bash

function die { echo $1: status $2 ; exit $2; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
)

process.out = cms.OutputModule("PoolOutputModule",
fileName = cms.untracked.string('testSiStripApproximateClusterCollection2.root')
fileName = cms.untracked.string('testSiStripApproximateClusterCollection2.root'),
fastCloning = cms.untracked.bool(False)
)

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

0 comments on commit 633c8ae

Please sign in to comment.