From ac3142535cf7d168268e1722369445dd29667f03 Mon Sep 17 00:00:00 2001 From: Mircho Rodozov Date: Tue, 10 Oct 2017 14:59:20 +0200 Subject: [PATCH] Fix unused vars warnings in RecoParticleFlow/PFProducer and RecoParticleFlow/PFProducer/plugins/PFPhotonTranslator.cc --- RecoEcal/EgammaCoreTools/src/ClusterShapeAlgo.cc | 1 - RecoParticleFlow/PFProducer/plugins/PFPhotonTranslator.cc | 1 - .../PFProducer/plugins/kdtrees/KDTreeLinkerPSEcal.cc | 8 ++------ 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/RecoEcal/EgammaCoreTools/src/ClusterShapeAlgo.cc b/RecoEcal/EgammaCoreTools/src/ClusterShapeAlgo.cc index c7de09bbd624b..e25188030734f 100644 --- a/RecoEcal/EgammaCoreTools/src/ClusterShapeAlgo.cc +++ b/RecoEcal/EgammaCoreTools/src/ClusterShapeAlgo.cc @@ -560,7 +560,6 @@ double ClusterShapeAlgo::calc_AbsZernikeMoment(const reco::BasicCluster &passedC int n, int m, double R0) { double r,ph,e,Re=0,Im=0,f_nm,result; double TotalEnergy = passedCluster.energy(); - const std::vector< std::pair >& clusterDetIds = passedCluster.hitsAndFractions(); int clusterSize=energyDistribution_.size(); if(clusterSize<3) return 0.0; diff --git a/RecoParticleFlow/PFProducer/plugins/PFPhotonTranslator.cc b/RecoParticleFlow/PFProducer/plugins/PFPhotonTranslator.cc index 501a2df802cca..fe0010403363e 100644 --- a/RecoParticleFlow/PFProducer/plugins/PFPhotonTranslator.cc +++ b/RecoParticleFlow/PFProducer/plugins/PFPhotonTranslator.cc @@ -715,7 +715,6 @@ void PFPhotonTranslator::createOneLegConversions(const edm::OrphanHandle OneLegConvVector; OneLegConvVector.push_back(pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]); - const reco::CaloClusterPtrVector& clu=scPtrVec; std::vector tr=OneLegConvVector; std::vectortrackPositionAtEcalVec; std::vectorinnPointVec; diff --git a/RecoParticleFlow/PFProducer/plugins/kdtrees/KDTreeLinkerPSEcal.cc b/RecoParticleFlow/PFProducer/plugins/kdtrees/KDTreeLinkerPSEcal.cc index be89fc977d44f..cdb52595ebd8a 100644 --- a/RecoParticleFlow/PFProducer/plugins/kdtrees/KDTreeLinkerPSEcal.cc +++ b/RecoParticleFlow/PFProducer/plugins/kdtrees/KDTreeLinkerPSEcal.cc @@ -26,13 +26,9 @@ KDTreeLinkerPSEcal::~KDTreeLinkerPSEcal() void KDTreeLinkerPSEcal::insertTargetElt(reco::PFBlockElement *psCluster) { - const reco::PFClusterRef& clusterref = psCluster->clusterRef(); - // This test is more or less done in PFBlockAlgo.h. In others cases, it should be switch on. - // if (!((clusterref->layer() == PFLayer::PS1) || - // (clusterref->layer() == PFLayer::PS2))) - // return; - + //if (!((psCluster->clusterRef()->layer() == PFLayer::PS1) || (psCluster->clusterRef()->layer() == PFLayer::PS2))) + // return; targetSet_.insert(psCluster); }