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
JER MET uncertainties and METSignifiance re-estimation #16435
JER MET uncertainties and METSignifiance re-estimation #16435
Conversation
Conflicts: PhysicsTools/PatUtils/plugins/CorrectedPATMETProducer.cc
A new Pull Request was created by @mmarionncern for CMSSW_8_1_X. It involves the following packages: PhysicsTools/PatAlgos @cmsbuild, @cvuosalo, @slava77, @monttj, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are listed here #13028 |
@cmsbuild please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
@@ -298,5 +307,7 @@ class SmearedJetProducerT : public edm::stream::EDProducer<> { | |||
std::mt19937 m_random_generator; | |||
|
|||
GreaterByPt<T> jetPtComparator; | |||
|
|||
int _nomVar; |
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.
leading underscore is frowned upon.
Please change to m_nomVar
to be more in style with all other member data
@@ -20,16 +20,18 @@ Description: [one line class summary] | |||
|
|||
metsig::METSignificance::METSignificance(const edm::ParameterSet& iConfig) { | |||
|
|||
edm::ParameterSet cfgParams = iConfig.getParameter<edm::ParameterSet>("parameters"); | |||
// if(iConfig.exists("parameters")) { |
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.
is this commented out code needed?
Please remove or add comments inline in the code why the commented out block is relevant
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.
looks like this commented out "if" is also the reason for the unnecessary re-indentation of the code in metsig::METSignificance::METSignificance
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.
not needed anymore, forgot to remove it during the development period, going to be removed
@@ -234,7 +243,7 @@ class SmearedJetProducerT : public edm::stream::EDProducer<> { | |||
} | |||
|
|||
double dPt = jet.pt() - genJet->pt(); | |||
smearFactor = 1 + (jer_sf - 1.) * dPt / jet.pt(); | |||
smearFactor = 1 + _nomVar*(jer_sf - 1.) * dPt / jet.pt(); |
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'm probably missing something.
What is the purpose of this "101" shift?
For +/-101 we get the same NOMINAL jet_sf value and you will smear by the full +/- |jet_sf -1|
while the systematics on the JER can be smaller or larger
Looking at
https://twiki.cern.ch/twiki/bin/view/CMS/JetResolution#JER_Scaling_factors_and_Uncertai
for eta 0 to 0.5 JER SF is 1.122 +-0.026 or "jer_sf - 1 = 0.122 +-0.026".
So, smearing by +-0.122 in this case is not meaningful, but maybe there is some other use case outside the nominal definition of JER.
Please clarify.
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.
@slava77 Here the total semaring factor is basically smear by 1-0.122 or 1+0.122. This is the same logic as the previous code, but the scale factor is used instead of the uncertainties associated to the scale factor
@mmarionncern Changes in MET are somewhat large Is the "101" variation (vary by 100% of "JER SF -1") now used for these plots? |
Hi Slava, Yes it is expected that the MET uncertainty for JER changes. When we did our validation we saw that these very large tails are coming from events with MET ~ couple of GeV range (mostly event < 1 GeV). This is from Z(mm) relval: We can explicitly check the relval you posted as well and identify the tail events if needed. |
On 11/4/16 12:22 PM, Zeynep Demiragli wrote:
Is it from using the new "101" variation type or is it from other As I mentioned inline in the code, the meaning of "101" variation does
|
This is indeed using the new 101 definition. For the Type1 MET we defined the JER uncertainty as the JER variation itself. For the Smeared MET JER variation is the variation on the JER SF uncertainty. |
On 11/4/16 1:30 PM, Zeynep Demiragli wrote:
I understand the logic. Since the deltas looked too large IMO, e.g genJet: 84.109 1.62808 2.9893 recJet: 105.08 1.60761 3.00653 jer_sf 1.115 From your description, I would expect to see here 1.03
|
On 11/14/16 2:04 AM, mmarionncern wrote:
Just to clarify: I expect that jets used in analysis for their central The deltas that you propose in this PR suggest that they should serve @schoef ?
|
I think we agree that the prescription makes sense: In the smeared case, propagate the JER smearing uncertainty and in the unsmeared case take a suitable difference to the smeared case as a proxy to the data/MC mismatch. To answer your question, JER SF are on a much different timescale than JEC and have a much smaller impact for most analysis. Hence, algorithmically, it makes sense to implement the "101" uncertainty for the unsmeared MET. We've had plenty of use cases in the past. You are right about the lack of documentation though, we'll prepare material and (at least) discuss it during the next MET meeting. It should eventually go to the supporting AN for the MET paper. Robert |
On 11/14/16 4:15 AM, schoef wrote:
Hi Robert Thank you for the clarification. Have we really had experience with a large fraction of phase space of Looking at JME-13-004 (fig 36 or Fig 38 for JER and Fig 44 for JEC At pt~30 GeV JER is about 20%. For 100 GeV JER is about 10% In both cases the "101" prescription is larger than the JEC uncertainty Clearly, the averaging doesn't work for events (from background) which Did I get the motivation and caveats for the "101" prescription more or
|
+1
|
The tests are being triggered in jenkins. |
Comparison job queued. |
Regarding 80X PR test problems: looks like the same issue is not appearing in 81X. |
@davidlange6 |
This PR enables the re-computation of the MET significance for the corrected METs on PAT, and enable the JER uncertainty propagation to the MET when the jets are not smeared.
Packages touched:
Format and content changes :
No real changes of performances/miniAOD size is expected. the MET significance changes only has an effect when the MET is recomputed on top of miniAOD, but the covariance matrix is not recomputed, which means that CPU ressources stays basically the same. The jet smearing used to compute the JER variation is small and does not reduce significantly the processing rate