Skip to content

Commit

Permalink
Update pattern and dump file producer for GTT changes and add support…
Browse files Browse the repository at this point in the history
… for TM18
  • Loading branch information
gpetruc committed Aug 22, 2023
1 parent 44d98eb commit dfbebc1
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions L1Trigger/Phase2L1ParticleFlow/test/make_l1ct_binaryFiles_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
parser.add_argument("--dumpFilesOFF", help="switch on dump file production", action="store_true", default=False)
parser.add_argument("--patternFilesOFF", help="switch on Layer-1 pattern file production", action="store_true", default=False)
parser.add_argument("--serenity", help="use Serenity settigns as default everwhere, i.e. also for barrel", action="store_true", default=False)
parser.add_argument("--tm18", help="Add TM18 emulators for the endcaps", action="store_true", default=False)

argv = sys.argv[:]
if '--' in argv:
Expand Down Expand Up @@ -54,10 +55,9 @@
process.load('L1Trigger.Phase2L1ParticleFlow.l1ctLayer1_cff')
process.load('L1Trigger.Phase2L1ParticleFlow.l1ctLayer2EG_cff')
process.load('L1Trigger.L1TTrackMatch.l1tGTTInputProducer_cfi')
process.load('L1Trigger.L1TTrackMatch.l1tTrackSelectionProducer_cfi')
process.l1tTrackSelectionProducer.processSimulatedTracks = False # these would need stubs, and are not used anyway
process.load('L1Trigger.VertexFinder.l1tVertexProducer_cfi')
process.l1tVertexFinderEmulator = process.l1tVertexProducer.clone()
process.l1tVertexFinderEmulator.VertexReconstruction.Algorithm = "fastHistoEmulation"
process.l1tVertexFinderEmulator.l1TracksInputTag = cms.InputTag("l1tGTTInputProducer", "Level1TTTracksConverted")
from L1Trigger.Phase2L1GMT.gmt_cfi import l1tStandaloneMuons
process.l1tSAMuonsGmt = l1tStandaloneMuons.clone()

Expand Down Expand Up @@ -121,6 +121,7 @@
process.runPF = cms.Path(
process.l1tSAMuonsGmt +
process.l1tGTTInputProducer +
process.l1tTrackSelectionProducer +
process.l1tVertexFinderEmulator +
process.l1tLayer1Barrel +
process.l1tLayer1BarrelTDR +
Expand Down Expand Up @@ -159,4 +160,23 @@
l1pf.dumpFileName = cms.untracked.string("TTbar_PU200_"+det+".dump")


if args.tm18:
process.l1tLayer1HGCalTM18 = process.l1tLayer1HGCal.clone()
process.l1tLayer1HGCalTM18.regionizerAlgo = "BufferedFoldedMultififo"
process.l1tLayer1HGCalTM18.regionizerAlgoParameters.nClocks = 162
process.l1tLayer1HGCalTM18.regionizerAlgoParameters.nTkLinks = 1
process.l1tLayer1HGCalTM18.regionizerAlgoParameters.nCaloLinks = 1
process.l1tLayer1HGCalNoTKTM18 = process.l1tLayer1HGCalNoTK.clone()
process.l1tLayer1HGCalNoTKTM18.regionizerAlgo = "BufferedFoldedMultififo"
process.l1tLayer1HGCalNoTKTM18.regionizerAlgoParameters.nClocks = 162
process.l1tLayer1HGCalNoTKTM18.regionizerAlgoParameters.nCaloLinks = 1
process.runPF.insert(process.runPF.index(process.l1tLayer1HGCal)+1, process.l1tLayer1HGCalTM18)
process.runPF.insert(process.runPF.index(process.l1tLayer1HGCalNoTK)+1, process.l1tLayer1HGCalNoTKTM18)
if not args.patternFilesOFF:
process.l1tLayer1HGCalTM18.patternWriters = cms.untracked.VPSet(*hgcalTM18WriterConfigs)
process.l1tLayer1HGCalNoTKTM18.patternWriters = cms.untracked.VPSet(hgcalNoTKOutputTM18WriterConfig)
if not args.dumpFilesOFF:
for det in "HGCalTM18", "HGCalNoTKTM18":
getattr(process, 'l1tLayer1'+det).dumpFileName = cms.untracked.string("TTbar_PU200_"+det+".dump")

process.source.fileNames = [ '/store/cmst3/group/l1tr/gpetrucc/12_5_X/NewInputs125X/150223/TTbar_PU200/inputs125X_1.root' ]

0 comments on commit dfbebc1

Please sign in to comment.