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
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions RecoEcal/EgammaCoreTools/interface/EcalClusterLazyTools.h
Expand Up @@ -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.

inline const EcalRecHitCollection *getEcalEERecHitCollection(void){return eeRecHits_;};
inline const EcalRecHitCollection *getEcalESRecHitCollection(void){return esRecHits_;};
inline const EcalIntercalibConstants& getEcalIntercalibConstants(void){return icalMap;};
inline const edm::ESHandle<EcalLaserDbService>& getLaserHandle(void){return laser;};

}; // class EcalClusterLazyToolsBase

template<class EcalClusterToolsImpl>
Expand Down