File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
DQMOffline/ParticleFlow/plugins Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments