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

Add consumes interface for SimHitTPAssociationProducer. #7971

Merged

Conversation

wmtan
Copy link
Contributor

@wmtan wmtan commented Feb 26, 2015

Add the consumes interface for SimHitTPAssociationProducer.
Also changed one loop to a range for loop for consistency, clarity and maintainability.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @wmtan for CMSSW_7_5_X.

Add consumes interface

It involves the following packages:

SimGeneral/TrackingAnalysis

@cmsbuild, @civanch, @nclopezo, @mdhildreth can you please review it and eventually sign? Thanks.
@battibass, @makortel, @abbiendi, @GiacomoSguazzoni, @rovere, @VinInn, @appeltel, @cerati, @trocino, @dgulhan 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.

@wmtan wmtan changed the title Add consumes interface Add consumes interface for SimHitTPAssociationProducer. Feb 26, 2015
@cmsbuild
Copy link
Contributor

@civanch
Copy link
Contributor

civanch commented Feb 27, 2015

+1

@cmsbuild
Copy link
Contributor

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

edm::Handle<edm::PSimHitContainer> PSimHitCollectionH;
iEvent.getByLabel(*psit, PSimHitCollectionH);
iEvent.getByLabel(psit, PSimHitCollectionH);
Copy link
Contributor

Choose a reason for hiding this comment

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

Forgive my ignorance, but aren't we supposed to switch to getByToken in addition to declaring the consumes in the constructor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. However, I am doing the consumes migration centrally for many packages. Working in this mode at this scale, it is much faster to just do the consumes part so I don't have to be switching gears. If the powers that be wish, I can do the migration to getByToken after the consumes part is finished.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

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

@davidlange6
Copy link
Contributor

I agree with Marco. Is easiest to make both migrations at once unless the code is particularly complex.

@davidlange6
Copy link
Contributor

+1

cmsbuild added a commit that referenced this pull request Feb 27, 2015
Add consumes interface for  SimHitTPAssociationProducer.
@cmsbuild cmsbuild merged commit ba30e8d into cms-sw:CMSSW_7_5_X Feb 27, 2015
@wmtan wmtan deleted the ConsumesSimHitTPAssociationProducer branch February 27, 2015 17:21
@wmtan wmtan restored the ConsumesSimHitTPAssociationProducer branch February 27, 2015 20:16
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

5 participants