Skip to content

Commit

Permalink
quick ntuple fix (#153)
Browse files Browse the repository at this point in the history
* L1TrackNtupleMaker_cfg.py updated reduced workflow.

* further cleaning.
  • Loading branch information
tschuh authored and tomalin committed Jul 8, 2022
1 parent 688c5ef commit 47aa620
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions L1Trigger/TrackFindingTracklet/test/L1TrackNtupleMaker_cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,10 @@
L1TRK_LABEL = "Level1TTTracks"
L1TRUTH_NAME = "TTTrackAssociatorFromPixelDigisExtended"

# HYBRID_NEWKF: prompt tracking
elif (L1TRKALGO == 'HYBRID_NEWKF'):
# HYBRID_NEWKF: prompt tracking or reduced
elif (L1TRKALGO == 'HYBRID_NEWKF' or 'HYBRID_REDUCED'):
process.load("L1Trigger.TrackFindingTracklet.L1HybridEmulationTracks_cff")
process.load( 'L1Trigger.TrackFindingTracklet.Producer_cff' )
from L1Trigger.TrackFindingTracklet.Customize_cff import *
fwConfig( process )
NHELIXPAR = 4
L1TRK_NAME = process.TrackFindingTrackletProducer_params.LabelTT.value()
L1TRK_LABEL = process.TrackFindingTrackletProducer_params.BranchAcceptedTracks.value()
Expand All @@ -167,25 +165,11 @@
process.load( 'SimTracker.TrackTriggerAssociation.StubAssociator_cff' )
process.load( 'L1Trigger.TrackFindingTracklet.Analyzer_cff' )
process.TTTracksEmulationWithTruth = cms.Path(process.HybridNewKF + process.TrackTriggerAssociatorTracks + process.StubAssociator + process.TrackFindingTrackletAnalyzerTracklet + process.TrackFindingTrackletAnalyzerTBout + process.TrackFindingTrackletAnalyzerKFin + process.TrackFindingTrackletAnalyzerKF + process.TrackFindingTrackletAnalyzerKFout)

# HYBRID: prompt tracking, reduced chain
elif (L1TRKALGO == 'HYBRID_REDUCED'):
process.load("L1Trigger.TrackFindingTracklet.L1HybridEmulationTracks_cff")
process.load( 'L1Trigger.TrackFindingTracklet.Producer_cff' )
from L1Trigger.TrackFindingTracklet.Customize_cff import *
reducedConfig( process )
NHELIXPAR = 4
L1TRK_NAME = process.TrackFindingTrackletProducer_params.LabelTT.value()
L1TRK_LABEL = process.TrackFindingTrackletProducer_params.BranchAcceptedTracks.value()
L1TRUTH_NAME = "TTTrackAssociatorFromPixelDigis"
process.TTTrackAssociatorFromPixelDigis.TTTracks = cms.VInputTag( cms.InputTag(L1TRK_NAME, L1TRK_LABEL) )
process.HybridNewKF = cms.Sequence(process.L1HybridTracks + process.TrackFindingTrackletProducerKFin + process.TrackFindingTrackletProducerKF + process.TrackFindingTrackletProducerTT + process.TrackFindingTrackletProducerAS + process.TrackFindingTrackletProducerKFout)
process.TTTracksEmulation = cms.Path(process.HybridNewKF)
#process.TTTracksEmulationWithTruth = cms.Path(process.HybridNewKF + process.L1HybridTracksWithAssociators)
# Optionally include code producing performance plots & end-of-job summary.
process.load( 'SimTracker.TrackTriggerAssociation.StubAssociator_cff' )
process.load( 'L1Trigger.TrackFindingTracklet.Analyzer_cff' )
process.TTTracksEmulationWithTruth = cms.Path(process.HybridNewKF + process.TrackTriggerAssociatorTracks + process.StubAssociator + process.TrackFindingTrackletAnalyzerTracklet + process.TrackFindingTrackletAnalyzerKFin + process.TrackFindingTrackletAnalyzerKF + process.TrackFindingTrackletAnalyzerKFout)
if (L1TRKALGO == 'HYBRID_NEWKF'):
fwConfig( process )
if (L1TRKALGO == 'HYBRID_REDUCED'):
reducedConfig( process )

# LEGACY ALGORITHM (EXPERTS ONLY): TRACKLET
elif (L1TRKALGO == 'TRACKLET'):
Expand Down

0 comments on commit 47aa620

Please sign in to comment.