Skip to content

Commit

Permalink
Fix unused variable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aandvalenzuela committed Jan 17, 2023
1 parent d212a35 commit 9e516b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
15 changes: 0 additions & 15 deletions PhysicsTools/Heppy/src/Apc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<double> apcjetvector;
std::vector<double> apcjetmetvector;
for (size_t j = 0; j < et.size(); j++) {
Expand Down
3 changes: 0 additions & 3 deletions TopQuarkAnalysis/TopHitFit/src/Fourvec_Constrainer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9e516b1

Please sign in to comment.