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

Hcal noise filters update #8685

Merged
merged 4 commits into from Apr 21, 2015

Conversation

igv4321
Copy link
Contributor

@igv4321 igv4321 commented Apr 9, 2015

Modifying HCAL noise filters per request from the HCAL noise group.
More details can be gathered from
https://indico.cern.ch/event/381507/contribution/1/material/slides/0.pdf

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 9, 2015

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

Hcal noise filters update

It involves the following packages:

CommonTools/RecoAlgos
DataFormats/METReco
RecoMET/METProducers
SLHCUpgradeSimulations/Configuration

@civanch, @nclopezo, @cvuosalo, @mdhildreth, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@rappoccio, @ahinzmann, @abbiendi, @mmarionncern, @jhgoh, @Martin-Grunewald, @jdolen, @nhanvtran, @schoef, @mariadalfonso, @TaiSakuma 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 you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@slava77
Copy link
Contributor

slava77 commented Apr 9, 2015

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 9, 2015

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 9, 2015

@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

if(energy>=threshold) total+=energy;
}
return total;
}

float HcalNoiseHPD::recHitEnergyFailR45(float threshold) const
float HcalNoiseHPD::recHitEnergyFailR45(const float threshold) const
Copy link
Contributor

Choose a reason for hiding this comment

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

these changes from float to const float don't make any difference. Perhaps you meant to change to const float &?

Copy link
Contributor

Choose a reason for hiding this comment

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

[I don't recall asking for this change, so, just my 2c notes on this]

const float& doesn't make much sense, it's less efficient than what it is now.
declaring something that's not supposed to be changed as a const is a good practice (in this case for the scope of the function, not for the users of the function).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is kind of in the spirit "Use const whenever possible" -- see item 21 in Scott Meyers' "Effective C++" book.

@davidlange6
Copy link
Contributor

+1

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

7 participants