Skip to content

Commit

Permalink
Merge pull request #20876 from mrodozov/fix-unused-warnings-reco-pkgs
Browse files Browse the repository at this point in the history
Fix unused vars warnings in Reco pkgs
  • Loading branch information
cmsbuild authored Oct 11, 2017
2 parents ee08a95 + ac31425 commit 6466ba1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion RecoEcal/EgammaCoreTools/src/ClusterShapeAlgo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<DetId, float> >& clusterDetIds = passedCluster.hitsAndFractions();
int clusterSize=energyDistribution_.size();
if(clusterSize<3) return 0.0;

Expand Down
1 change: 0 additions & 1 deletion RecoParticleFlow/PFProducer/plugins/PFPhotonTranslator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,6 @@ void PFPhotonTranslator::createOneLegConversions(const edm::OrphanHandle<reco::S
std::vector<reco::TrackRef> OneLegConvVector;
OneLegConvVector.push_back(pfSingleLegConv_[conv1legPFCandidateIndex_[iphot]][iConv]);

const reco::CaloClusterPtrVector& clu=scPtrVec;
std::vector<reco::TrackRef> tr=OneLegConvVector;
std::vector<math::XYZPointF>trackPositionAtEcalVec;
std::vector<math::XYZPointF>innPointVec;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 6466ba1

Please sign in to comment.