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
Small miniAOD improvements #20367
Small miniAOD improvements #20367
Conversation
…t for bulk conversion via std::transform
@smuzaffar |
The code-checks are being triggered in jenkins. |
A new Pull Request was created by @gpetruc (Giovanni Petrucciani) for master. It involves the following packages: DataFormats/PatCandidates @perrotta, @cmsbuild, @monttj, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins. |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/PR-20367/485 Code check has found code style and quality issues which could be resolved by applying a patch in https://cmssdt.cern.ch/SDT/code-checks/PR-20367/485/git-diff.patch You can run |
class ReduceMantissaToNbitsRounding { | ||
public: | ||
ReduceMantissaToNbitsRounding(int bits) : | ||
shift(23-bits), mask((0xFFFFFFFF >> (shift)) << (shift)), |
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.
it looks like this duplicates the functionality of inline static float reduceMantissaToNbitsRounding(const float &f)
please remove the other implementation or see how the code duplication can be reduced
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.
is the solution in 9f31d22 ok for you?
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.
yes, it looks OK.
Thank you.
The code-checks are being triggered in jenkins. |
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/PR-20367/488 Code check has found code style and quality issues which could be resolved by applying a patch in https://cmssdt.cern.ch/SDT/code-checks/PR-20367/488/git-diff.patch You can run |
The code-checks are being triggered in jenkins. |
@cmsbuild please test |
The tests are being triggered in jenkins. |
+code-checks |
+1 The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic: |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
@@ -193,7 +193,7 @@ namespace pat { | |||
void hcalIsoDeposit(const IsoDeposit &dep) { setIsoDeposit(pat::HcalIso, dep); } | |||
void userIsoDeposit(const IsoDeposit &dep, uint8_t index=0) { setIsoDeposit(IsolationKeys(UserBaseIso + index), dep); } | |||
|
|||
const PFIsolation& miniPFIsolation() { return miniPFIsolation_; } | |||
const PFIsolation& miniPFIsolation() const { return miniPFIsolation_; } |
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.
please make a backport for this part to 93X and 92X.
ok will do tomorrow
Il 06 Set 2017 22:06, "Slava Krutelyov" <notifications@github.com> ha
scritto:
… ***@***.**** commented on this pull request.
------------------------------
In DataFormats/PatCandidates/interface/Lepton.h
<#20367 (comment)>:
> @@ -193,7 +193,7 @@ namespace pat {
void hcalIsoDeposit(const IsoDeposit &dep) { setIsoDeposit(pat::HcalIso, dep); }
void userIsoDeposit(const IsoDeposit &dep, uint8_t index=0) { setIsoDeposit(IsolationKeys(UserBaseIso + index), dep); }
- const PFIsolation& miniPFIsolation() { return miniPFIsolation_; }
+ const PFIsolation& miniPFIsolation() const { return miniPFIsolation_; }
please make a backport for this part to 93X and 92X.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#20367 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEbbR38MdTq3OhU1gECZ1uP0KhH4SrH7ks5sfvs_gaJpZM4PL2ox>
.
|
merge |
const
in the miniPFIsolation method declarationwill push the code-checks to this branch later (to not obscure the content of the PR)
@arizzi @peruzzim @emanueledimarco