Skip to content
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

[L1-UPGRADE] [CLANG]Fixes warnings reported by clang 14 #40530

Merged
merged 1 commit into from Jan 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 0 additions & 6 deletions L1Trigger/L1THGCal/src/backend/HGCalHistoClusteringImpl_SA.cc
Expand Up @@ -60,12 +60,6 @@ std::vector<l1thgcfirmware::HGCalMulticluster> HGCalHistoClusteringImplSA::clust
// Leaving in some redundant functionality in case we need
// EnergySplit option

//Loop over target seeds and divide up the clusters energy
double totalTargetSeedEnergy = 0;
for (const auto& energy : targetSeedsEnergy) {
totalTargetSeedEnergy += energy.second;
}

for (const auto& energy : targetSeedsEnergy) {
double seedWeight = 1;
if (mapSeedMulticluster[energy.first].size() == 0) {
Expand Down
9 changes: 0 additions & 9 deletions L1Trigger/L1TTrackMatch/plugins/L1TrackerEtMissProducer.cc
Expand Up @@ -80,10 +80,6 @@ void L1TrackerEtMissProducer::produce(edm::StreamID, edm::Event& iEvent, const e

float sumPx = 0;
float sumPy = 0;
float etTot = 0;
double sumPx_PU = 0;
double sumPy_PU = 0;
double etTot_PU = 0;

int numqualitytracks = 0;
int numassoctracks = 0;
Expand All @@ -106,11 +102,6 @@ void L1TrackerEtMissProducer::produce(edm::StreamID, edm::Event& iEvent, const e
numassoctracks++;
sumPx += pt * cos(phi);
sumPy += pt * sin(phi);
etTot += pt;
} else { // PU sums
sumPx_PU += pt * cos(phi);
sumPy_PU += pt * sin(phi);
etTot_PU += pt;
}
} // end loop over tracks

Expand Down