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
Conversation
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. |
@cmsbuild please test |
The tests are being triggered in jenkins. |
@@ -90,6 +90,13 @@ class EcalClusterLazyToolsBase { | |||
// std::vector<int> flagsexcl_; | |||
// std::vector<int> severitiesexcl_; | |||
|
|||
public: | |||
inline const EcalRecHitCollection *getEcalEBRecHitCollection(void){return ebRecHits_;}; |
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.
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.
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. |
Retrieve collections from LazyTools
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.