Skip to content
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

Merged
merged 3 commits into from Mar 12, 2015
Merged

Fastsim fix ele track ref #8143

merged 3 commits into from Mar 12, 2015

Conversation

lveldere
Copy link
Contributor

@lveldere lveldere commented Mar 9, 2015

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.

Lukas added 2 commits March 9, 2015 09:32
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.
@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 9, 2015

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
FastSimulation/ParticleFlow
FastSimulation/Tracking

@ssekmen, @nclopezo, @lveldere, @civanch, @mdhildreth, @cmsbuild can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @matt-komm this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.
If you are a L2 or a release manager you can ask for tests by saying 'please test' in the first line of a comment.
@nclopezo, @ktf you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@lveldere
Copy link
Contributor Author

lveldere commented Mar 9, 2015

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 9, 2015

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 9, 2015

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 9, 2015

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())
)
Copy link
Contributor

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?

@lveldere
Copy link
Contributor Author

@davidlange6

Hi David
trackerDrivenElectronSeedsTmp is the same as trackerDrivenElectronSeeds in trackerDrivenElectronSeeds_cff, except for a different track collection.

@davidlange6
Copy link
Contributor

Right, but what about the redefinition of trackerDrivenElectronSeeds just below the clone?

On Mar 10, 2015, at 11:07 AM, lveldere notifications@github.com wrote:

@davidlange6

Hi David
trackerDrivenElectronSeedsTmp is the same astrackerDrivenElectronSeeds in trackerDrivenElectronSeeds_cff, except for a different track collection.


Reply to this email directly or view it on GitHub.

@lveldere
Copy link
Contributor Author

From the description:

"""
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.
"""

With this implemented, PF recognises tracker-driven electrons as electrons.
The copy gets the usual label of the tracker-driven electron seeds,
so that I don't have to make changes further down in the sequences.

@lveldere
Copy link
Contributor Author

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.
It would be cleaner to make the track mixer spit out a map between the signal tracks before mixing and the mixed track collection. Then I don't have to make such assumptions. That will be something for the next release.

@davidlange6
Copy link
Contributor

@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..

With this implemented, PF recognises tracker-driven electrons as electrons.
The copy gets the usual label of the tracker-driven electron seeds,
so that I don't have to make changes further down in the sequences.

@davidlange6
Copy link
Contributor

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants