From 07a32204f84900ffde98c5190ebeee41d975a313 Mon Sep 17 00:00:00 2001 From: Adrian Meyer-Ahrens <a_meye37@uni-muenster.de> Date: Fri, 5 Aug 2022 15:54:59 +0200 Subject: [PATCH] Remove Unused Variables dist and links --- .../papaframework/PairAnalysisVarManager.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/analysis/PWGDIL/dielectron/papaframework/PairAnalysisVarManager.h b/analysis/PWGDIL/dielectron/papaframework/PairAnalysisVarManager.h index a3c733fb05..b51c654b37 100644 --- a/analysis/PWGDIL/dielectron/papaframework/PairAnalysisVarManager.h +++ b/analysis/PWGDIL/dielectron/papaframework/PairAnalysisVarManager.h @@ -1948,11 +1948,11 @@ inline void PairAnalysisVarManager::CalculateHitTypes(const PairAnalysisTrack* t TClonesArray* hits = fgEvent->GetHits(idet); TClonesArray* pnts = fgEvent->GetPoints(idet); - Int_t links = 0; - Double_t dist = 0.; - *trueH = 0; - *distH = 0; - *fakeH = (mctrk > -1 ? 0 : nhits); + //Int_t links = 0; //Only needed for kTrdDistortion + //Double_t dist = 0.; + *trueH = 0; + *distH = 0; + *fakeH = (mctrk > -1 ? 0 : nhits); if (hits && pnts && mctrk > -1) { for (Int_t ihit = 0; ihit < nhits; ihit++) { @@ -1983,7 +1983,7 @@ inline void PairAnalysisVarManager::CalculateHitTypes(const PairAnalysisTrack* t Bool_t btrueH = kTRUE; Bool_t bfakeH = kTRUE; Int_t nlinks = mtch->GetNofLinks(); - links += nlinks; + //links += nlinks; for (Int_t iLink = 0; iLink < nlinks; iLink++) { // if(nlinks!=1) { fakeH++; continue; } FairMCPoint* pnt = static_cast<FairMCPoint*>(pnts->At(mtch->GetLink(iLink).GetIndex())); @@ -1995,7 +1995,7 @@ inline void PairAnalysisVarManager::CalculateHitTypes(const PairAnalysisTrack* t Int_t lblG = mc->GetMothersLabel(lblM); if (lbl != mctrk && lblM != mctrk && lblG != mctrk) { btrueH = kFALSE; - dist += 1.; + //dist += 1.; } else bfakeH = kFALSE; -- GitLab