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

Do not reset rechit flag inside the module #16006

Merged
merged 1 commit into from Oct 1, 2016

Conversation

igv4321
Copy link
Contributor

@igv4321 igv4321 commented Sep 28, 2016

Bug fix: do not reset rechit flag inside the HcalHitReconstructor module. The flag may be already set. In particular, 1 or 3 pulse fit flag is set for "Method 2" by the algorithm creating the rechit.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @igv4321 (Igor Volobouev) for CMSSW_8_1_X.

It involves the following packages:

RecoLocalCalo/HcalRecProducers

@cmsbuild, @cvuosalo, @slava77, @davidlange6 can you please review it and eventually sign? Thanks.
@mariadalfonso this is something you requested to watch as well.
@slava77, @smuzaffar you are the release manager for this.

cms-bot commands are list here #13028

@slava77
Copy link
Contributor

slava77 commented Sep 28, 2016

@cmsbuild please test

... at some point it makes sense to combine in one PR

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 28, 2016

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/15414/console

@igv4321
Copy link
Contributor Author

igv4321 commented Sep 28, 2016

Maybe for your convenience and speed of testing... But the three short PRs I recently submitted are all independent and logically disconnected. If one of them fails some tests or if we have additional discussion about it, it would be still nice to integrate the others as soon as possible.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@@ -554,7 +554,8 @@ void HcalHitReconstructor::produce(edm::Event& e, const edm::EventSetup& eventSe
auxflag+=((i->sample(fTS2).capid())<<28);
(rec->back()).setAuxHBHE(auxflag);

(rec->back()).setFlags(0); // this sets all flag bits to 0
// (rec->back()).setFlags(0); Don't want to do this because the algorithm
// can already set some flags
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of keeping the old revision (code that was there since rev 1)
it would be more appropriate to just say something in line:

// set flags in addition to those (possibly) already set by the reco_ algorithm

Also, the original design was apparently more factorized: all flags are set in one place.
Can this be preserved in case some rework of hit flagging needs to be done?
(This is not a particularly strong requirement here though.)
Some rework of flagging has been among lingering topics to review/revisit for calo rechit.

@igv4321
Copy link
Contributor Author

igv4321 commented Sep 30, 2016

In this particular case, I prefer to comment out the old code and make a note why it was commented out -- just in case somebody might think that it would be a good idea to reset the flags here. It is, indeed, possible to keep flagging in one place -- but that would require changes in the rechit itself because the information previously carried (very economically) by flags would have to be carried in a separate field.

@slava77
Copy link
Contributor

slava77 commented Sep 30, 2016

@cmsbuild please test
the last attempt didn't make it through comparisons

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 30, 2016

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/15477/console

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@slava77
Copy link
Contributor

slava77 commented Sep 30, 2016

type bugfix

@slava77
Copy link
Contributor

slava77 commented Sep 30, 2016

+1

for #16006 8973261

  • bug fix to correct flag setting/propagation from the hcal reco algo
  • jenkins tests pass and comparisons with baseline show differences only in HBHE flags (downstream monitored products are not affected). The only changes are in flag29, corresponding to HBHEPulseFitBit, as expected.

E.g. 136.731 (2016B single photon PD)
wf136 731_hb_flags
wf136 731_he_flags
All "phase-0 HCAL" workflows are affected (including 2023 D1). Phase-1 HCAL workflows are not affected due to a different implementation.

Apparently, nobody looked at this flag since it was introduced in May 2015.

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_8_1_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @smuzaffar

@davidlange6
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 2d6ca14 into cms-sw:CMSSW_8_1_X Oct 1, 2016
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

4 participants