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

Retrieve collections from LazyTools #7449

Merged
merged 1 commit into from Jan 30, 2015
Merged

Conversation

shervin86
Copy link
Contributor

EcalClusterLazyTools are widely used in many analysis.
Once the object is built, it has as private members the handles to many collections.
With this modification, it is also possible to retrieve the collections from the object, instead of declaring handles separately.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @shervin86 for CMSSW_7_4_X.

Retrieve collections from LazyTools

It involves the following packages:

RecoEcal/EgammaCoreTools

@cmsbuild, @cvuosalo, @nclopezo, @slava77 can you please review it and eventually sign? Thanks.
@Sam-Harper, @argiro, @lgray 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.

@ghost
Copy link

ghost commented Jan 29, 2015

@cmsbuild please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@@ -90,6 +90,13 @@ class EcalClusterLazyToolsBase {
// std::vector<int> flagsexcl_;
// std::vector<int> severitiesexcl_;

public:
inline const EcalRecHitCollection *getEcalEBRecHitCollection(void){return ebRecHits_;};
Copy link
Contributor

Choose a reason for hiding this comment

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

these are more obviously prompting to suggest that the methods should be const-qualified.
Looking at other methods, there are actually quite a few more methods that should be made const-qualified as well.
This is something to put on the list of possible code cleanup one day.

@slava77
Copy link
Contributor

slava77 commented Jan 30, 2015

+1

for #7449 161a601

new methods added are ~trivial, compiles ok by jenkins

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_4_X IBs unless changes (tests are also fine). This pull request will be automatically merged.

cmsbuild added a commit that referenced this pull request Jan 30, 2015
Retrieve collections from LazyTools
@cmsbuild cmsbuild merged commit aa5e847 into cms-sw:CMSSW_7_4_X Jan 30, 2015
@shervin86 shervin86 deleted the LazyTools branch February 25, 2015 09:27
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