Skip to content

Commit 7a82a40

Browse files
committed
Fixing clang warning
1 parent f6b4414 commit 7a82a40

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

DQMOffline/ParticleFlow/plugins/PFAnalyzer.h

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -516,30 +516,6 @@ class PFAnalyzer : public DQMEDAnalyzer {
516516
if (partType) {
517517
return 0;
518518
}
519-
if (pfCand.particleId() == reco::PFCandidate::ParticleType::gamma) {
520-
double energy = 0;
521-
for (unsigned iele = 0; iele < pfCand.elementsInBlocks().size(); ++iele) {
522-
// first get the block
523-
reco::PFBlockRef blockRef = pfCand.elementsInBlocks()[iele].first;
524-
//
525-
unsigned elementIndex = pfCand.elementsInBlocks()[iele].second;
526-
// check it actually exists
527-
if (blockRef.isNull())
528-
continue;
529-
530-
// then get the elements of the block
531-
const edm::OwnVector<reco::PFBlockElement>& elements = (*blockRef).elements();
532-
533-
const reco::PFBlockElement& pfbe(elements[elementIndex]);
534-
if (pfbe.type() == reco::PFBlockElement::PS1) {
535-
reco::PFClusterRef clusterref = pfbe.clusterRef();
536-
if (!clusterref.isNull()) {
537-
const reco::PFCluster& cluster = *clusterref;
538-
energy += cluster.energy();
539-
}
540-
}
541-
}
542-
}
543519
return pfCand.pS1Energy() + pfCand.pS2Energy();
544520
}
545521

0 commit comments

Comments
 (0)