From 3d3a3d2a7681ab73490d94363c213d91fb55f6be Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Thu, 2 Nov 2023 12:57:09 +0100 Subject: [PATCH] Use likelihood fit instead of chi-square fit --- Validation/RecoParticleFlow/plugins/PFJetDQMPostProcessor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Validation/RecoParticleFlow/plugins/PFJetDQMPostProcessor.cc b/Validation/RecoParticleFlow/plugins/PFJetDQMPostProcessor.cc index be379ccf94a90..86d0119066aa4 100644 --- a/Validation/RecoParticleFlow/plugins/PFJetDQMPostProcessor.cc +++ b/Validation/RecoParticleFlow/plugins/PFJetDQMPostProcessor.cc @@ -246,7 +246,7 @@ void PFJetDQMPostProcessor::fitResponse(TH1F* hreso, TF1* fg = new TF1("mygaus", "gaus", fitlow, fithigh); TF1* fg2 = new TF1("fg2", "TMath::Gaus(x,[0],[1],true)*[2]", fitlow, fithigh); - hreso->Fit("mygaus", "RQN"); + hreso->Fit("mygaus", "RQNL"); fg2->SetParameter(0, fg->GetParameter(1)); fg2->SetParameter(1, fg->GetParameter(2)); @@ -259,7 +259,7 @@ void PFJetDQMPostProcessor::fitResponse(TH1F* hreso, // (3) and number of bins (100) fg2->FixParameter(2, ngenjet * 3. / 100.); - hreso->Fit("fg2", "RQN"); + hreso->Fit("fg2", "RQNL"); fitlow = fg2->GetParameter(0) - 1.5 * fg2->GetParameter(1); fitlow = TMath::Max(15. / ptlow, fitlow);