cms-L1TK / cmssw

Fork of CMSSW where improvements to L1 tracking code are developed.
http://cms-sw.github.io/
Apache License 2.0
4 stars 5 forks source link

Fix inventStubs bug in duplicate removal #271

Closed tomalin closed 5 months ago

tomalin commented 5 months ago

When using L2L3D1 seeds, it is only L2L3 that are used to determined the r-z helix params, not L2D1 as the code currently assumes. This PR fixes this.

When run on ttbar+200PU, remaking the stubs using the CMSSW 13 stub window sizes, it reduces the track rate per event from 323 to 284.

When run on ttbar+200PU, using the existing stubs made with CMSSW 14 stub window sizes, it reduces the track rate per event from 294 to 268.

The efficiency on displaced muon MC is very slightly higher.

P.S. One can query if https://github.com/cms-L1TK/cmssw/blob/ianFixInventStubs/L1Trigger/TrackFindingTracklet/src/PurgeDuplicate.cc#L743 should be calling getInventedCoordsExtended() for the prompt seed types (0-7) that form part of the extended tracking. Though I think getInventedCoordsExtended() and getInventedCoords() should give the same results for these.