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
Follow-up of #32699 (Phase 2 Muon HLT) #32713
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32713/20840
|
A new Pull Request was created by @khaosmos93 (Minseok Oh) for master. It involves the following packages: HLTrigger/HLTfilters @perrotta, @Martin-Grunewald, @slava77, @cmsbuild, @fwyzard, @jpata can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
|
||
if (reco::deltaR(muRef1_eta, muRef1_phi, muRef2_eta, muRef2_phi) > minDR_) | ||
if (reco::deltaR2(muRef1.first, muRef1.second, muRef2.first, muRef2.second) > minDR_ * minDR_) |
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.
Default for minDR_
is "-1"
Perhaps, you can define "minDR2" as input parameter (and let its default value as "-1")
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.
@perrotta Thanks a lot for pointing it out!
Instead, would it make sense to just to the following without touching minDR_
?
bool HLT2L1TkMuonL1TkMuonMuRefDR::computeDR(edm::Event& iEvent, l1t::TkMuonRef& r1, l1t::TkMuonRef& r2) const {
if(minDR_ < 0.)
return true;
std::pair<float, float> muRef1 = convertEtaPhi(r1);
std::pair<float, float> muRef2 = convertEtaPhi(r2);
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, even faster.
And maybe also
return (reco::deltaR2(muRef1.first, muRef1.second, muRef2.first, muRef2.second) > minDR_ * minDR_);
<use name="TrackingTools/KalmanUpdators"/> | ||
<use name="TrackingTools/TrajectoryParametrization"/> | ||
<use name="TrackingTools/TrajectoryState"/> | ||
<use name="TrackingTools/TrackAssociator"/> |
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.
Isn't there anything that can be cleaned up from RecoMuon/L2MuonSeedGenerator/BuildFile.xml ?
offseedTsos.globalPosition().eta(), | ||
offseedTsos.globalPosition().phi()); | ||
LogDebug(metlabel) << " -- DR = " << newDr2 << std::endl; | ||
if (newDr2 < dRcone * dRcone && newDr2 < bestDr2) { |
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.
if (newDr2 < dRcone * dRcone && newDr2 < bestDr2) { | |
if (newDr2 < bestDr2 && newDr2 < dRcone * dRcone) { |
can avoid computing the product after the first iteration.
By the way, is it granted that dRcone
is always >=0 here?
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.
I made it return nullptr
if dRcone < 0.
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32713/20845
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-32713/20891
|
please test |
+1 |
-1 Failed Tests: RelVals-INPUT RelVals-INPUT
Comparison SummarySummary:
|
+reconstruction
|
This pull request is fully signed and it will be integrated in one of the next master IBs (but tests are reportedly failing). This pull request will now be reviewed by the release team before it's merged. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
merge |
PR description:
Addressing comments in #32699
PR validation:
Phase-2 muon workflow