-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Bph mu tk #4699
Bph mu tk #4699
Conversation
Added selections needed by BPH: max muon eta Their defaults are such that they do not change the behaviour of the old version of the module |
A new Pull Request was created by @lucamartini for CMSSW_7_2_X. Bph mu tk It involves the following packages: HLTrigger/Muon @perrotta, @cmsbuild, @nclopezo, @Martin-Grunewald, @fwyzard, @Degano can you please review it and eventually sign? Thanks. |
-1 Please use proper code block indentation, replace fabs(.) by std::abs(.) and move the ESHandle'ing |
Sorry, I meant do it only if if (m_maxDCAMuMu < 100.) { |
Hi, about the ESHandle, there was a discussion on where to put it. Can you specify where you see improper indentation? I don't see anything strange here, but maybe it is my editor tabulation |
// Needed for DCA calculation | ||
edm::ESHandle<MagneticField> bFieldHandle; | ||
iSetup.get<IdealMagneticFieldRecord>().get(bFieldHandle); | ||
|
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 mean to encapsulate this block inside an if-statement as well:
if (m_maxDCAMuMu < 100.) {
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.
Hi,
you want to do this?
// Needed for DCA calculation
edm::ESHandle<MagneticField> bFieldHandle;
if (m_maxDCAMuMu < 100.)
iSetup.get<IdealMagneticFieldRecord>().get(bFieldHandle);
Otherwise bFieldHandle is out of scope
yes... :) |
Concerning indentation, I looked at what github displays: https://github.com/lucamartini/cmssw/blob/BPH-MuTk/HLTrigger/Muon/src/HLTDiMuonGlbTrkFilter.cc probably if you mix tabs and explicit whitespace it looks fine for you but not for others... |
+1 Note: if you need this in 71X as well, make a (backport) PR for 71X. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes (tests are also fine). |
No description provided.