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

Bph mu tk #4699

Merged
merged 12 commits into from
Jul 19, 2014
Merged

Bph mu tk #4699

merged 12 commits into from
Jul 19, 2014

Conversation

lucamartini
Copy link

No description provided.

@lucamartini
Copy link
Author

Added selections needed by BPH:

max muon eta
max dimuon rapidity
max invariant mass
dimuon charge
max distance of closest approach
max delta eta between the two muons

Their defaults are such that they do not change the behaviour of the old version of the module

@cmsbuild
Copy link
Contributor

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.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.

@Martin-Grunewald
Copy link
Contributor

-1

Please use proper code block indentation, replace fabs(.) by std::abs(.) and move the ESHandle'ing
of the magfield into the code block when the magfield is actually accessed.

@Martin-Grunewald
Copy link
Contributor

Sorry, I meant do it only if if (m_maxDCAMuMu < 100.) {
as only then the magfield is actually needed....

@lucamartini
Copy link
Author

Hi, about the ESHandle, there was a discussion on where to put it.
If we put it inside "if (m_maxDCAMuMu < 100.) {" that means it is inside the "for" loops, so the get method is accessed n * (n-1) times instead of once.

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);

Copy link
Contributor

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.) {

Copy link
Author

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

@Martin-Grunewald
Copy link
Contributor

yes... :)

@Martin-Grunewald
Copy link
Contributor

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...

@lucamartini lucamartini reopened this Jul 18, 2014
@cmsbuild
Copy link
Contributor

Pull request #4699 was updated. @perrotta, @cmsbuild, @nclopezo, @Martin-Grunewald, @fwyzard, @Degano can you please check and sign again.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@Martin-Grunewald
Copy link
Contributor

+1

Note: if you need this in 71X as well, make a (backport) PR for 71X.

@cmsbuild
Copy link
Contributor

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).

ktf added a commit that referenced this pull request Jul 19, 2014
@ktf ktf merged commit ab20e9a into cms-sw:CMSSW_7_2_X Jul 19, 2014
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