File indexing completed on 2024-09-26 05:06:37
0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003 import argparse
0004
0005 parser = argparse.ArgumentParser(prog=sys.argv[0], description='Test L1 Scouting data formats')
0006
0007 parser.add_argument("--inputFile", type=str, help="Input file name (default: testL1Scouting.root)", default="testL1Scouting.root")
0008 parser.add_argument("--bmtfStubVersion", type=int, help="track data format version (default: 3)", default=3)
0009 args = parser.parse_args()
0010
0011 process = cms.Process("READ")
0012
0013 process.load("FWCore.MessageService.MessageLogger_cfi")
0014
0015 process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring("file:"+args.inputFile))
0016 process.maxEvents.input = 1
0017
0018 process.l1ScoutingTestAnalyzer = cms.EDAnalyzer("TestReadL1Scouting",
0019 bxValues = cms.vuint32(42, 512),
0020 muonsTag = cms.InputTag("l1ScoutingTestProducer", "", "PROD"),
0021 expectedMuonValues = cms.vint32(1, 2, 3),
0022 jetsTag = cms.InputTag("l1ScoutingTestProducer", "", "PROD"),
0023 expectedJetValues = cms.vint32(4, 5, 6, 7),
0024 eGammasTag = cms.InputTag("l1ScoutingTestProducer", "", "PROD"),
0025 expectedEGammaValues = cms.vint32(8, 9, 10),
0026 tausTag = cms.InputTag("l1ScoutingTestProducer", "", "PROD"),
0027 expectedTauValues = cms.vint32(11, 12),
0028 bxSumsTag = cms.InputTag("l1ScoutingTestProducer", "", "PROD"),
0029 expectedBxSumsValues = cms.vint32(13),
0030 bmtfStubClassVersion = cms.int32(args.bmtfStubVersion),
0031 bmtfStubTag = cms.InputTag("l1ScoutingTestProducer", "", "PROD"),
0032 expectedBmtfStubValues = cms.vint32(1, 2)
0033 )
0034
0035 process.out = cms.OutputModule("PoolOutputModule",
0036 fileName = cms.untracked.string('testL1Scouting2.root'),
0037 fastCloning = cms.untracked.bool(False)
0038 )
0039
0040 process.path = cms.Path(process.l1ScoutingTestAnalyzer)
0041 process.endPath = cms.EndPath(process.out)