-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Remove const and mutable since they're not required. #1369
Remove const and mutable since they're not required. #1369
Conversation
@Dr15Jones please review |
A new Pull Request was created by @vkuznet (Valentin Kuznetsov) for CMSSW_7_0_X. Remove const and mutable since they're not required. It involves the following packages: FastSimulation/TrackingRecHitProducer @cmsbuild, @nclopezo, @giamman, @lveldere can you please review it and eventually sign? Thanks. |
Unfortunately, those are virtual functions from the base class ClusterParameterEstimator So the fix would be to remove const from the base class and change all inheriting classes. |
I wanted to know if it is appropriate approach in this case. If I modify base class, then SiClusterTranslator.cc will not compile, see its produce method But I'm not sure that the produce method logic is correct in context of EventSetup. It extracts StripCPE/FastCPE objects from EventSetup, clear up their internal maps and refill it again. On Nov 7, 2013, at ,Nov 7, 8:54 AM, Chris Jones wrote:
|
It looks to me like the design of the base class ClusterParameterEstimator directly conflicts with CMS' rules about data products not being allowed to change. |
@vkuznet this does not merge anymore. Can you update it? |
mmm... it still does not merge in the last IB... |
is it possible to see merge problem somehow? I can try to re-apply changes again within fresh branch. |
Giulio, I regenerated all changes in separate branch, I think it would be easier if we close this one (without merging of course) and I submit new pull request from another branch. Possibly I didn't rebase and it cause merging problem in this branch. Here is new branch with the same set of changes: https://github.com/vkuznet/cmssw/compare/ThreadSafe2_FastSimulation_TrackingRecHitProducer?expand=1 |
As far as I can tell from code, there is no need to use const/mutable within a class for selected methods.