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

fix bug in the jetIDcleaning module #12346

Merged
merged 4 commits into from Nov 25, 2015
Merged

Conversation

safarzad
Copy link
Contributor

fix bug in the jetIDcleaning module

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @safarzad for CMSSW_8_0_X.

fix bug in the jetIDcleaning module

It involves the following packages:

HLTrigger/JetMET

@Martin-Grunewald, @perrotta, @cmsbuild, @fwyzard can you please review it and eventually sign? Thanks.
@Martin-Grunewald this is something you requested to watch as well.
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.
If you are a L2 or a release manager you can ask for tests by saying 'please test' or '@cmsbuild, please test' 'please test with cms-sw/cmsdist#PR' in the first line of a comment.
@Degano you are the release manager for this.
You can merge this pull request by typing 'merge' in the first line of your comment.

@cmsbuild
Copy link
Contributor

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

@safarzad
Copy link
Contributor Author

I made this PR from CMSSW800_pre1 release hope works

@Martin-Grunewald
Copy link
Contributor

You still did not remove "usePt" from the .h header file...

@cmsbuild
Copy link
Contributor

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

@Martin-Grunewald
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/9605/console

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

reco::CaloMET cleanmet = met->front();
cleanmet.setP4(cleanmet.p4() + p4_diff);
reco::CaloMET cleanmet ;
cleanmet.setP4(p4_diff);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Batool,

thanks for putting up the PR!
Two questions/suggestions came to my mind after taking a look at the proposed changes:

  • what about renaming p4_diff to e.g. cleanmetp4 (L96/99)? With the proposed code changes, it has a different meaning than before. It would be good to change the name, then.
  • Does the change from reco::CaloMET cleanmet = met->front(); to initializing a fresh object reco::CaloMET cleanmet ; before setting the p4 loose any information that might be useful to have? The way you propose is definitely cleaner, I am just wondering...

Cheers,
Henning

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the proponent please address these issues?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

I do not see any issue here, it is about renaming a collection that I do not think make any differences at the end in physiscs.

The second part is not clear for me which information will be missing, but in general the idea here is to have a new collection that does not inherent from original caloMET collection

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

Is there anything left that I must to do to merge this PR?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kirschen
please comment!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, my comments are no showstoppers, but I thought we could follow up quickly. To clarify a bit what I was aiming at:

  1. Renaming:
    Sure, it does not change physics, but why should one retain misleading/wrong variable names?
  2. Usability of cleanmet:
    If I understand correctly, the "cleanmet" here will contain only the p4-vector information, but none of the CaloMET-specifics that are usually added in https://github.com/cms-sw/cmssw/blob/6b16de370881dd8ef339d34811b3d1e176c02b80/RecoMET/METAlgorithms/src/CaloSpecificAlgo.cc called from https://github.com/cms-sw/cmssw/blob/6b16de370881dd8ef339d34811b3d1e176c02b80/RecoMET/METProducers/src/CaloMETProducer.cc
    So the output here uses the CaloMET data format, but only contains a small fraction of the information that is usually associated with this object. However, I guess putting the minimal information here is still better than the old behavior before the PR (retaining the old detail information before JetId-cleaning, which is incorrect when removing jets).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Martin,

If I make a small modification from p4_diff to p4_Clean do we need to go trough the whole test procedures?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@safarzad
Please address the comments from @kirschen and submit the corrections to the branch of this PR.
[We'll then request jenkins automatic testing in any case, as the PR can not be integrated without.]

@Martin-Grunewald
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/9892/console

@cmsbuild
Copy link
Contributor

-1
Tested at: de6bbe6
When I ran the RelVals I found an error in the following worklfows:
1001.0 step3

runTheMatrix-results/1001.0_RunMinBias2011A+RunMinBias2011A+TIER0EXP+ALCAEXP+ALCAHARVD1+ALCAHARVD2+ALCAHARVD3+ALCAHARVD4/step3_RunMinBias2011A+RunMinBias2011A+TIER0EXP+ALCAEXP+ALCAHARVD1+ALCAHARVD2+ALCAHARVD3+ALCAHARVD4.log

you can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-12346/9892/summary.html

@safarzad
Copy link
Contributor Author

@safarzad
Copy link
Contributor Author

To find out what is the error I checked this (i think it is that you are referring right?) but there is no error just processing the event. Can you clarify?
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-12346/9892/runTheMatrix-results/1001.0_RunMinBias2011A+RunMinBias2011A+TIER0EXP+ALCAEXP+ALCAHARVD1+ALCAHARVD2+ALCAHARVD3+ALCAHARVD4/step3_RunMinBias2011A+RunMinBias2011A+TIER0EXP+ALCAEXP+ALCAHARVD1+ALCAHARVD2+ALCAHARVD3+ALCAHARVD4.log


From: cmsbuild [notifications@github.com]
Sent: 23 November 2015 12:31
To: cms-sw/cmssw
Cc: Batool Safarzadeh Samani
Subject: Re: [cmssw] fix bug in the jetIDcleaning module (#12346)

-1
Tested at: de6bbe6de6bbe6
When I ran the RelVals I found an error in the following worklfows:
1001.0 step3

runTheMatrix-results/1001.0_RunMinBias2011A+RunMinBias2011A+TIER0EXP+ALCAEXP+ALCAHARVD1+ALCAHARVD2+ALCAHARVD3+ALCAHARVD4/step3_RunMinBias2011A+RunMinBias2011A+TIER0EXP+ALCAEXP+ALCAHARVD1+ALCAHARVD2+ALCAHARVD3+ALCAHARVD4.log

you can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-12346/9892/summary.html


Reply to this email directly or view it on GitHubhttps://github.com//pull/12346#issuecomment-158910144.

@Martin-Grunewald
Copy link
Contributor

The log file seems cut off (the usual end of run messages are missing).

@Martin-Grunewald
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@Martin-Grunewald
Copy link
Contributor

+1

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_8_0_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @Degano, @smuzaffar

@cmsbuild
Copy link
Contributor

@davidlange6
Copy link
Contributor

+1

cmsbuild added a commit that referenced this pull request Nov 25, 2015
fix bug in the jetIDcleaning module
@cmsbuild cmsbuild merged commit 6833c72 into cms-sw:CMSSW_8_0_X Nov 25, 2015
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

5 participants