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

Fix AssociationMap in TrackRefitter #13445

Merged
merged 3 commits into from Mar 1, 2016
Merged

Fix AssociationMap in TrackRefitter #13445

merged 3 commits into from Mar 1, 2016

Conversation

aysent
Copy link
Contributor

@aysent aysent commented Feb 24, 2016

Starting with CMSSW 75X initialization of AssociationMap needs to be modified in some cases.

I followed comments in DataFormats/Common/interface/AssociationMap.h and discussion in:

https://hypernews.cern.ch/HyperNews/CMS/get/edmFramework/3540.html

to make it work for TrackRefitter package.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @aysent (Aysen Tatarinov) for CMSSW_8_0_X.

It involves the following packages:

TrackingTools/TrackRefitter

@cmsbuild, @cvuosalo, @davidlange6, @slava77 can you please review it and eventually sign? Thanks.
@battibass, @makortel, @abbiendi, @GiacomoSguazzoni, @jhgoh, @VinInn, @bellan, @rovere, @istaslis, @gpetruc, @cerati, @trocino, @dgulhan this is something you requested to watch as well.
@slava77, @Degano, @smuzaffar you are the release manager for this.

cms-bot commands are list here #13028

@slava77
Copy link
Contributor

slava77 commented Feb 24, 2016

@aysent please make a PR for 81X.
merging in 80X may have lower priority for things like this.

@rovere @VinInn @aysent
if TracksToTrajectories is regularly used, it better be added to one of the AlCa or similar steps in relval matrices. It wouldn't take 8 months to discover the interface change in that case.

@slava77
Copy link
Contributor

slava77 commented Feb 24, 2016

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/11488/console

@cmsbuild
Copy link
Contributor

@VinInn
Copy link
Contributor

VinInn commented Feb 24, 2016

AssociationMaps are a relict of the past that introduces huge performance penalties in particular in recent releases. By definition Track and Trajectory are in one by one correspondence and produced by the same producers.
just loop over them from 0 to .size()

@cmsbuild
Copy link
Contributor

@slava77
Copy link
Contributor

slava77 commented Feb 24, 2016

On 2/23/16 10:15 PM, Vincenzo Innocente wrote:

AssociationMaps are a relict of the past that introduces huge
performance penalties in particular in recent releases. By definition
Track and Trajectory are in one by one correspondence and produced by
the same producers.
just loop over them from 0 to .size()

Hi Vincenzo,

TrackingTools/TrackRefitter is in TRK purview, if I'm not mistaken
May I suggest that after operational functionality is restored in this PR,
someone follows up with a more appropriate implementation.

Maybe a JIRA ticket will help this happen.
Please let me know.

    --slava


Reply to this email directly or view it on GitHub
#13445 (comment).


// Get the RecTrack collection from the event
Handle<reco::TrackCollection> tracks;
event.getByToken(theTracksToken, tracks);

// Association map between Trajectory and Track
auto_ptr<TrajTrackAssociationCollection> trajTrackMap(new TrajTrackAssociationCollection(trajectoryCollectionRefProd, tracks));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto_ptr is deprecated. Please use unique_ptr or shared_ptr instead.

@cmsbuild
Copy link
Contributor

Pull request #13445 was updated. @cmsbuild, @cvuosalo, @davidlange6, @slava77 can you please check and sign again.

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/11508/console

@cmsbuild
Copy link
Contributor

@cvuosalo
Copy link
Contributor

@cmsbuild please test
Comparisons got stuck in Queued state

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@cvuosalo
Copy link
Contributor

+1

For #13445 8441d53

Small fix for track-trajectory map in track refitter. There should be no change in monitored quantities.
#13446 is the 81X version of this PR.

The code change is satisfactory, and Jenkins tests against baseline CMSSW_8_0_X_2016-02-23-2300 show no significant differences, as expected.

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_8_0_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @Degano, @smuzaffar

@davidlange6
Copy link
Contributor

+1

cmsbuild added a commit that referenced this pull request Mar 1, 2016
@cmsbuild cmsbuild merged commit 0e27df5 into cms-sw:CMSSW_8_0_X Mar 1, 2016
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

6 participants