From b26587d9a867a607596936ae813bd2c5351ade12 Mon Sep 17 00:00:00 2001 From: Florian Uhlig <f.uhlig@gsi.de> Date: Wed, 22 Mar 2023 09:29:48 +0100 Subject: [PATCH] Fix compiler warnings Comment set but unused variables in much code. --- fles/mcbm2018/monitor/CbmMcbm2018MonitorMuch.cxx | 12 ++++++------ reco/detectors/much/CbmMuchFindHitsGem.cxx | 5 +++-- sim/detectors/much/qa/CbmMuchDigitizerQa.cxx | 4 ++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/fles/mcbm2018/monitor/CbmMcbm2018MonitorMuch.cxx b/fles/mcbm2018/monitor/CbmMcbm2018MonitorMuch.cxx index c8af561e68..45fe02bce2 100644 --- a/fles/mcbm2018/monitor/CbmMcbm2018MonitorMuch.cxx +++ b/fles/mcbm2018/monitor/CbmMcbm2018MonitorMuch.cxx @@ -1141,9 +1141,9 @@ Bool_t CbmMcbm2018MonitorMuch::DoUnpack(const fles::Timeslice& ts, size_t compon std::vector<Bool_t> vbCopyOnAnyAsicMs(fuNbFebs, kFALSE); std::vector<Bool_t> vbCopySameAdcOnAnyAsicMs(fuNbFebs, kFALSE); std::vector<Bool_t> vbFlagOnAnyAsicMs(fuNbFebs, kFALSE); - Bool_t bCopyOnAnyMs = kFALSE; - Bool_t bCopySameAdcOnAnyMs = kFALSE; - Bool_t bFlagOnAnyMs = kFALSE; + // Bool_t bCopyOnAnyMs = kFALSE; // not used FU 23.03.23 + // Bool_t bCopySameAdcOnAnyMs = kFALSE; // not used FU 23.03.23 + // Bool_t bFlagOnAnyMs = kFALSE; // not used FU 23.03.23 for (UInt_t uAsic = 0; uAsic < fuNbStsXyters; uAsic++) { UInt_t uFebIdx = uAsic / fUnpackParMuch->GetNbAsicsPerFeb(); UInt_t uAsicInFeb = uAsic % fUnpackParMuch->GetNbAsicsPerFeb(); @@ -1161,9 +1161,9 @@ Bool_t CbmMcbm2018MonitorMuch::DoUnpack(const fles::Timeslice& ts, size_t compon vbCopySameAdcOnAnyAsicMs[uFebIdx] = vbCopySameAdcOnAnyAsicMs[uFebIdx] || bHitCopySameAdcInThisMs[uAsic]; vbFlagOnAnyAsicMs[uFebIdx] = vbFlagOnAnyAsicMs[uFebIdx] || bFlagOnInThisMs[uAsic]; - bCopyOnAnyMs |= bHitCopyInThisMs[uAsic]; - bCopySameAdcOnAnyMs |= bHitCopySameAdcInThisMs[uAsic]; - bFlagOnAnyMs |= bFlagOnInThisMs[uAsic]; + // bCopyOnAnyMs |= bHitCopyInThisMs[uAsic]; // not used FU 23.03.23 + // bCopySameAdcOnAnyMs |= bHitCopySameAdcInThisMs[uAsic]; // not used FU 23.03.23 + // bFlagOnAnyMs |= bFlagOnInThisMs[uAsic]; // not used FU 23.03.23 } // for( UInt_t uAsic = 0; uAsic < fuNbStsXyters; uAsic++) for (UInt_t uFebIdx = 0; uFebIdx < fuNbFebs; ++uFebIdx) { diff --git a/reco/detectors/much/CbmMuchFindHitsGem.cxx b/reco/detectors/much/CbmMuchFindHitsGem.cxx index ccdf474694..4f89b5ebf4 100644 --- a/reco/detectors/much/CbmMuchFindHitsGem.cxx +++ b/reco/detectors/much/CbmMuchFindHitsGem.cxx @@ -526,7 +526,8 @@ void CbmMuchFindHitsGem::ExecClusteringPeaks(CbmMuchCluster* cluster, Int_t iClu void CbmMuchFindHitsGem::CreateHits(CbmMuchCluster* cluster, Int_t iCluster, CbmEvent* event) { Int_t nDigis = cluster->GetNofDigis(); - Double_t sumq = 0, sumx = 0, sumy = 0, sumt = 0, sumdx2 = 0, sumdy2 = 0, sumdxy2 = 0, sumdt2 = 0; + Double_t sumq = 0, sumx = 0, sumy = 0, sumdx2 = 0, sumdy2 = 0, sumdxy2 = 0, + sumdt2 = 0; // , sumt =0 // not used FU 22.03.23 Double_t q = 0, x = 0, y = 0, t = 0, z = 0, dx = 0, dy = 0, dxy = 0, dt = 0; Double_t nX = 0, nY = 0, nZ = 0; Int_t address = 0; @@ -588,7 +589,7 @@ void CbmMuchFindHitsGem::CreateHits(CbmMuchCluster* cluster, Int_t iCluster, Cbm sumq += q; sumx += q * x; sumy += q * y; - sumt += q * t; + // sumt += q * t; // not used FU 22.03.23 sumdx2 += q * q * dx * dx; sumdy2 += q * q * dy * dy; sumdxy2 += q * q * dxy * dxy; diff --git a/sim/detectors/much/qa/CbmMuchDigitizerQa.cxx b/sim/detectors/much/qa/CbmMuchDigitizerQa.cxx index 930781f1a2..a4f6384178 100644 --- a/sim/detectors/much/qa/CbmMuchDigitizerQa.cxx +++ b/sim/detectors/much/qa/CbmMuchDigitizerQa.cxx @@ -248,7 +248,7 @@ int CbmMuchDigitizerQa::InitChannelPadInfo() printf("---------------------------------------------------------\n"); } - Int_t nTotSectors = 0; + // Int_t nTotSectors = 0; // not used FU 23.03.23 Int_t nTotChannels = 0; for (Int_t iStation = 0; iStation < fNstations; iStation++) { Int_t nChannels = 0; @@ -293,7 +293,7 @@ int CbmMuchDigitizerQa::InitChannelPadInfo() if (fPadMinLy > padMinLy) fPadMinLy = padMinLy; if (fPadMaxLx < padMaxLx) fPadMaxLx = padMaxLx; if (fPadMaxLy < padMaxLy) fPadMaxLy = padMaxLy; - nTotSectors += nSectors; + // nTotSectors += nSectors; // not used FU 23.03.23 nTotChannels += nChannels; if (fVerbose > 2) { -- GitLab