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
Ecalpf cluster corrections93 x - taking care of events with flag==5 #19827
Ecalpf cluster corrections93 x - taking care of events with flag==5 #19827
Conversation
A new Pull Request was created by @jainshilpi for master. It involves the following packages: RecoParticleFlow/PFClusterProducer @perrotta, @cmsbuild, @slava77, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild please test |
The tests are being triggered in jenkins. |
@jainshilpi Thank you. |
+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:
|
@slava77 yes this is correct, the behaviour will change after this PR. earlier clusters which were forced
*/ Thanks |
@slava77 , so I checked with Emanuele. This cannot happen in MC. "these are the correspondent “forced” bits of the Selective Readout flags (ZS or FR), |
if (clusFlag!=1 && clusFlag!=3) { | ||
edm::LogWarning("PFClusterEMEnergyCorrector") << "We can only correct regions readout in ZS (flag 1) or FULL readout (flag 3). Flag " << clusFlag << " is not recognized." | ||
if (!ZS_bit && !FR_bit) { | ||
edm::LogWarning("PFClusterEMEnergyCorrector") << "We can only correct regions readout in ZS (flag 1,5) or FULL readout (flag 3,7). Flag " << clusFlag << " is not recognized." |
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.
as defined, this warning will not be made for clusFlag of 2,6, which apparently do not exist based on the description above.
should they be captured here as well?
if ( (!ZS_bit && !FR_bit) || (!ZS_bit && FR_bit) )
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.
... which is actually just if ( !ZS_bit)
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.
actually, values like above 7 should probably still have a warning as well
if ( !ZS_bit || clusFlag > 7)
@jainshilpi |
if (pt<2.5) coridx = 1 + regind; | ||
else if (pt>=2.5 && pt<6.) coridx = 2 + regind; | ||
else if (pt>=6.) coridx = 3 + regind; | ||
} | ||
if (clusFlag!=1 && clusFlag!=3) { | ||
edm::LogWarning("PFClusterEMEnergyCorrector") << "We can only correct regions readout in ZS (flag 1) or FULL readout (flag 3). Flag " << clusFlag << " is not recognized." | ||
if (ZS_bit!=0 || clusFlag > 7) { |
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.
here and above the change is made backwards for values of x in 0 or 1, !x
is the same as x==0
instead of the suggested x!=0
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.
@slava77 I realized I made a stupid mistake. Its corrected now. Thank you
@jainshilpi |
Pull request #19827 was updated. @perrotta, @cmsbuild, @slava77, @davidlange6 can you please check and sign again. |
@cmsbuild please test |
The tests are being triggered in jenkins. |
+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:
|
+1
|
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @smuzaffar |
+1 |
This is taking care of events in which flag==5. These are forces ZS events. So these should go under the ZS category. Similarly, there can be events which have flag==7. Those are
forced FULL readout. So those should go under the FULL readout category. Code has been changed accordingly now.
@rafaellopesdesa @slava77