-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run 3 Scouting Test CMSSW_13_0_3 version
- Loading branch information
Showing
5 changed files
with
245 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
DataFormats/Scouting/test/test_readRun3Scouting_CMSSW_12_4_0_cfg.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
import sys | ||
|
||
process = cms.Process("READ") | ||
|
||
process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring("file:"+sys.argv[2])) | ||
|
||
process.testReadRun3Scouting = cms.EDAnalyzer("TestReadRun3Scouting", | ||
# I stick to values exactly convertable to float | ||
# to avoid potential rounding issues in the test. | ||
expectedCaloJetsValues = cms.vdouble( | ||
2.0, 4.0 , 6.0, 8.0, 10.0, | ||
12.0, 14.0, 16.0, 18.0, 20.0, | ||
22.0, 24.0, 26.0, 28.0, 30.0, | ||
32.0), | ||
caloJetsTag = cms.InputTag("run3ScoutingProducer", "", "PROD"), | ||
electronClassVersion = cms.int32(5), | ||
expectedElectronFloatingPointValues = cms.vdouble( | ||
10.0, 20.0, 30.0, 40.0, 50.0, | ||
60.0, 70.0, 80.0, 90.0, 100.0, | ||
110.0, 120.0, 130.0, 140.0, 150.0, | ||
160.0, 170.0, 180.0, 190.0, 200.0, | ||
210.0, 220.0, 230.0, 240.0, 250.0), | ||
expectedElectronIntegralValues = cms.vint32(10, 20, 30, 40, 50, 60), | ||
electronsTag = cms.InputTag("run3ScoutingProducer", "", "PROD"), | ||
expectedMuonFloatingPointValues = cms.vdouble( | ||
10.0, 20.0, 30.0, 40.0, 50.0, | ||
60.0, 70.0, 80.0, 90.0, 100.0, | ||
110.0, 120.0, 130.0, 140.0, 150.0, | ||
160.0, 170.0, 180.0, 190.0, 200.0, | ||
210.0, 220.0, 230.0, 240.0, 250.0, | ||
260.0, 270.0, 280.0, 290.0, 300.0, | ||
310.0, 320.0, 330.0, 340.0, 350.0, | ||
360.0, 370.0 | ||
), | ||
expectedMuonIntegralValues = cms.vint32( | ||
10, 20, 30, 40, 50, | ||
60, 70, 80, 90, 100, | ||
110, 120, 130, 140, 150, | ||
160, 170, 180, 190, 200, | ||
210, 220, 230, 240, 250, | ||
260 | ||
), | ||
muonsTag = cms.InputTag("run3ScoutingProducer", "", "PROD"), | ||
expectedParticleFloatingPointValues = cms.vdouble( | ||
11.0, 21.0, 31.0, 41.0, 51.0, | ||
61.0, 71.0, 81.0, 91.0, 101.0, | ||
111.0 | ||
), | ||
expectedParticleIntegralValues = cms.vint32( | ||
11, 21, 31, 41, 51 | ||
), | ||
particlesTag = cms.InputTag("run3ScoutingProducer", "", "PROD"), | ||
expectedPFJetFloatingPointValues = cms.vdouble( | ||
12.0, 22.0, 32.0, 42.0, 52.0, | ||
62.0, 72.0, 82.0, 92.0, 102.0, | ||
112.0, 122.0, 132.0, 142.0, 152.0 | ||
), | ||
expectedPFJetIntegralValues = cms.vint32( | ||
12, 22, 32, 42, 52, | ||
62, 72, 82 | ||
), | ||
pfJetsTag = cms.InputTag("run3ScoutingProducer", "", "PROD"), | ||
expectedPhotonFloatingPointValues = cms.vdouble( | ||
14.0, 23.0, 33.0, 43.0, 53.0, | ||
63.0, 73.0, 83.0, 93.0, 103.0, | ||
113.0, 123.0, 133.0, 143.0 | ||
), | ||
expectedPhotonIntegralValues = cms.vint32( | ||
14, 23, 33 | ||
), | ||
photonsTag = cms.InputTag("run3ScoutingProducer", "", "PROD"), | ||
expectedTrackFloatingPointValues = cms.vdouble( | ||
14.0, 24.0, 34.0, 44.0, 54.0, | ||
64.0, 74.0, 84.0, 94.0, 104.0, | ||
114.0, 124.0, 134.0, 144.0, 154.0, | ||
164.0, 174.0, 184.0, 194.0, 204.0, | ||
214.0, 224.0, 234.0, 244.0, 254.0, | ||
264.0, 274.0, 284.0, 294.0 | ||
), | ||
expectedTrackIntegralValues = cms.vint32( | ||
14, 24, 34, 44, 54 | ||
), | ||
tracksTag = cms.InputTag("run3ScoutingProducer", "", "PROD"), | ||
expectedVertexFloatingPointValues = cms.vdouble( | ||
15.0, 25.0, 35.0, 45.0, 55.0, | ||
65.0, 75.0 | ||
), | ||
expectedVertexIntegralValues = cms.vint32( | ||
15, 25, 35 | ||
), | ||
vertexesTag = cms.InputTag("run3ScoutingProducer", "", "PROD") | ||
) | ||
|
||
process.out = cms.OutputModule("PoolOutputModule", | ||
fileName = cms.untracked.string('testRun3Scouting2_CMSSW_12_4_0.root') | ||
) | ||
|
||
process.path = cms.Path(process.testReadRun3Scouting) | ||
|
||
process.endPath = cms.EndPath(process.out) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters