New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fastsim fix ele track ref #8143
Fastsim fix ele track ref #8143
Conversation
Tracker-driven electron seeds are produced from the track collection before pile-up mixing, because the algorithm depends on trajectories which are only available before mixing. A new module, ElectronSeedTrackRefFix, is implented and inserted in the electron reconstruction sequence. This modules makes a copy of the tracker-driven electron seeds while replaceing in each seed, the reference to the "before mixing" tracks with a reference to the corresponding "after mixing" track.
A new Pull Request was created by @lveldere for CMSSW_7_5_X. Fastsim fix ele track ref It involves the following packages: FastSimulation/Configuration @ssekmen, @nclopezo, @lveldere, @civanch, @mdhildreth, @cmsbuild can you please review it and eventually sign? Thanks. |
please test |
The tests are being triggered in jenkins. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_5_X IBs unless changes (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @nclopezo, @ktf, @smuzaffar |
newTrackCollection = cms.InputTag("generalTracks"), | ||
seedCollection = cms.InputTag("trackerDrivenElectronSeedsTmp",trackerDrivenElectronSeedsTmp.PreGsfLabel.value()), | ||
idCollection = cms.InputTag("trackerDrivenElectronSeedsTmp",trackerDrivenElectronSeedsTmp.PreIdLabel.value()) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lveldere - sorry, I had missed the redefinition of trackerDrivenElectronSeeds here before. Is it needed or is it just the same as in the trackerDrivenElectronSeeds_cff?
Hi David |
Right, but what about the redefinition of trackerDrivenElectronSeeds just below the clone?
|
From the description: """ With this implemented, PF recognises tracker-driven electrons as electrons. |
BTW, this is still implemented a bit dirty. I make the assumption the signal tracks are first in the mixed track collection, which is right. |
@lveldere - i see now - this is a bit dangerous as we find out from time to time when two previously separate cffs need to be combined. but here it should be ok assuming no consumers of the original producer in fastsim..
|
+1 |
This fixes an issue that caused gsfElectrons with tracker-driven seeds not to be considered as electrons by the particle flow, because a broken link between gsfElectron and recoTrack.
In FastSim, Tracker-driven electron seeds are produced from the track collection before pile-up mixing,
because the algorithm depends on trajectories which are only available before mixing.
Because of this, tracker-driven electrons are linked to the track collection before pile-up mixing.
Particle flow only considers the after-mixing track collection and thus gets confused.
To fix this, A new module, ElectronSeedTrackRefFix, is implemented and inserted in the electron reconstruction sequence. This modules makes a copy of the tracker-driven electron seeds while replacing in each seed,
the reference to the "before mixing" track with a reference to the corresponding "after mixing" track.