Skip to content

Commit

Permalink
Merge pull request #31781 from perrotta/removeAfewDeadAssignments
Browse files Browse the repository at this point in the history
Clean up a few dead assignments from CalibCalorimetry/HcalAlgos and RecoMuon/TrackingTools
  • Loading branch information
cmsbuild committed Oct 20, 2020
2 parents 6286c1a + ab1d3e4 commit bb76a8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CalibCalorimetry/HcalAlgos/src/HcalLogicalMapGenerator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2021,7 +2021,7 @@ void HcalLogicalMapGenerator::buildHOXMap(const HcalTopology* topo,
ihtr_fi = HO_htr_fi_eta1234_sipm[phmod6][4][(irm - 1) / 2][sidear];
itb = 0;
fpga = "top";
mytype = 3;
// mytype = 3;
ih = 2;
ihtr = ihslotho[php2mod18ov6][ih];
ispigot = ihtr < 9 ? (ihtr - 2) * 2 + itb : (ihtr - 13) * 2 + itb;
Expand Down
1 change: 0 additions & 1 deletion CalibCalorimetry/HcalAlgos/src/HcalPedestalAnalysis.cc
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,6 @@ void HcalPedestalAnalysis::Trendings(map<HcalDetId, map<int, PEDBUNCH> >& toolT,
_meot->second[i].second.second[4]->GetYaxis()->SetTitle("Distant correlation");
_meot->second[i].second.second[4]->Write(); */
// chi2
j = 0;
for (sample_it = _meot->second[i].second.first[4].begin(); sample_it != _meot->second[i].second.first[4].end();
++sample_it) {
Chi2->Fill(*sample_it);
Expand Down
10 changes: 3 additions & 7 deletions RecoMuon/TrackingTools/src/MuonErrorMatrix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -428,19 +428,15 @@ double MuonErrorMatrix::Term(const AlgebraicSymMatrix55 &curv, int i, int j) {
} else {
double si = curv(i, i);
double sj = curv(j, j);

if (si <= 0 || sj <= 0) {
//check validity
edm::LogError("MuonErrorMatrix") << "invalid term in the error matrix.\n si: " << si << " sj: " << sj
<< ". result will be corrupted\n"
<< curv;
return 0;
}

si = sqrt(si);
sj = sqrt(sj);
//check validity

return result = curv(i, j) / (si * sj);
result = curv(i, j) / sqrt(si * sj);
return result;
}
//by default
return 0;
Expand Down

0 comments on commit bb76a8f

Please sign in to comment.