From 9e516b133c3d56a51bcd075fb7920aba59e8890e Mon Sep 17 00:00:00 2001 From: aandvalenzuela Date: Tue, 17 Jan 2023 11:52:42 +0100 Subject: [PATCH] Fix unused variable warnings --- PhysicsTools/Heppy/src/Apc.cc | 15 --------------- .../TopHitFit/src/Fourvec_Constrainer.cc | 3 --- 2 files changed, 18 deletions(-) diff --git a/PhysicsTools/Heppy/src/Apc.cc b/PhysicsTools/Heppy/src/Apc.cc index 8271acefa747c..4cea54fb4cc6f 100644 --- a/PhysicsTools/Heppy/src/Apc.cc +++ b/PhysicsTools/Heppy/src/Apc.cc @@ -22,23 +22,8 @@ namespace heppy { const double ht = accumulate(et.begin(), et.end(), 0.); // jets are pt-sorted - double firstjet_phi = atan2(py[0], px[0]); - - double apcjet(0.), apcmet(0.), apcjetmet(0.); double apcjetmetmin(0.); - for (size_t i = 0; i < et.size(); i++) { - double jet_phi = atan2(py[i], px[i]); - double met_phi = atan2(mety, metx); - - double dphisignaljet = fabs(deltaPhi(jet_phi, firstjet_phi)); - double dphimet = fabs(deltaPhi(jet_phi, met_phi)); - - apcjet += et[i] * cos(dphisignaljet / 2.0); - apcmet += et[i] * sin(dphimet / 2.0); - apcjetmet += et[i] * cos(dphisignaljet / 2.0) * sin(dphimet / 2.0); - } - std::vector apcjetvector; std::vector apcjetmetvector; for (size_t j = 0; j < et.size(); j++) { diff --git a/TopQuarkAnalysis/TopHitFit/src/Fourvec_Constrainer.cc b/TopQuarkAnalysis/TopHitFit/src/Fourvec_Constrainer.cc index 7f821cb86c117..35238ef18ee41 100644 --- a/TopQuarkAnalysis/TopHitFit/src/Fourvec_Constrainer.cc +++ b/TopQuarkAnalysis/TopHitFit/src/Fourvec_Constrainer.cc @@ -1637,15 +1637,12 @@ namespace hitfit { int nobjs = ev.nobjs(); int n_measured_vars = nobjs * 3; int n_unmeasured_vars = 0; - int n_constraints = _constraints.size(); if (use_kt) { n_measured_vars += 2; if (ev.has_neutrino()) n_unmeasured_vars = 1; - else - n_constraints += 2; } Matrix G_i(n_measured_vars, n_measured_vars);