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
Fix deltaR calculation in HLT widejet module #14587
Conversation
A new Pull Request was created by @duanders (Dustin Anderson) for CMSSW_8_0_X. It involves the following packages: HLTrigger/JetMET @Martin-Grunewald, @perrotta, @cmsbuild, @fwyzard, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are list here #13028 |
please test |
need a 81X PR as well! |
The tests are being triggered in jenkins. |
@@ -128,11 +129,11 @@ HLTFatJetMassFilter<jetType>::hltFilter(edm::Event& iEvent, const edm::EventSetu | |||
|
|||
// apply radiation recovery | |||
for ( recojet = recojets.begin() ; recojet != recojets.end() ; recojet++) { | |||
double DeltaR1 = sqrt(pow(recojet->phi()-j1.phi(), 2.)+pow(recojet->eta()-j1.eta(),2.)); | |||
double DeltaR2 = sqrt(pow(recojet->phi()-j2.phi(), 2.)+pow(recojet->eta()-j2.eta(),2.)); | |||
if(DeltaR1 < DeltaR2 && DeltaR1 < fatJetDeltaR_) { |
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.
@duanders from the code, I think the bug you are trying to fix is that |phi2 - phi1| does not properly wrap around π , right ?
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.
@fwyzard yes that's right.
+1 |
I think this should be simple and safe enough to enter directly as bugfix in 8.0.x - @davidlange6 what do you say ? |
This pull request is fully signed and it will be integrated in one of the next CMSSW_8_0_X IBs after it passes the integration tests. This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @Degano, @smuzaffar |
it can go into 80x, but would like an 81x request too. (also for the second request from @duanders ) |
Modifies HLTFatJetMassFilter so that it computes DeltaR correctly. (The current behavior does not treat DeltaPhi modulo 2 pi.)