From c8c956ebc1d901cbccfffa05199e1651a8e4834c Mon Sep 17 00:00:00 2001 From: Florian Uhlig <f.uhlig@gsi.de> Date: Mon, 18 Jan 2021 14:58:22 +0100 Subject: [PATCH] Fix compiler warnings Comment unused variables and parameters. --- MQ/unpacker/CbmDeviceUnpackTofMcbm2018.cxx | 2 +- .../monitor/CbmMcbm2018MonitorMuch.cxx | 2 +- .../monitor/CbmMcbm2018MonitorMuchLite.cxx | 2 +- .../monitor/CbmMcbm2018MonitorSts.cxx | 2 +- reco/L1/L1Algo/L1Algo.cxx | 12 +++++++----- reco/L1/L1Algo/L1CATrackFinder.cxx | 19 +++++++++++-------- 6 files changed, 22 insertions(+), 17 deletions(-) diff --git a/MQ/unpacker/CbmDeviceUnpackTofMcbm2018.cxx b/MQ/unpacker/CbmDeviceUnpackTofMcbm2018.cxx index 298665fcf0..1573c663a2 100644 --- a/MQ/unpacker/CbmDeviceUnpackTofMcbm2018.cxx +++ b/MQ/unpacker/CbmDeviceUnpackTofMcbm2018.cxx @@ -45,7 +45,7 @@ struct InitTaskError : std::runtime_error { using namespace std; //static Int_t iMess=0; -const Int_t DetMask = 0x001FFFFF; +//const Int_t DetMask = 0x001FFFFF; CbmDeviceUnpackTofMcbm2018::CbmDeviceUnpackTofMcbm2018() : fNumMessages(0) diff --git a/fles/mcbm2018/monitor/CbmMcbm2018MonitorMuch.cxx b/fles/mcbm2018/monitor/CbmMcbm2018MonitorMuch.cxx index f13405c175..9e38a2ff6b 100644 --- a/fles/mcbm2018/monitor/CbmMcbm2018MonitorMuch.cxx +++ b/fles/mcbm2018/monitor/CbmMcbm2018MonitorMuch.cxx @@ -1409,7 +1409,7 @@ Bool_t CbmMcbm2018MonitorMuch::DoUnpack(const fles::Timeslice& ts, /// Module P-N coincidences //Bool_t bSameModulePNsides = kFALSE; // Double_t dBestDtMatch = 1e9; // ns - std::vector<stsxyter::FinalHit>::iterator itBestMatch; + // comment unused variable, FU, 18.01.21 std::vector<stsxyter::FinalHit>::iterator itBestMatch; // UInt_t uFebB = uFebIdxB % fUnpackParMuch->GetNbFebsPerCrob(); // UInt_t uCrobIdxB = ( uFebIdxB / fUnpackParMuch->GetNbFebsPerCrob() ) % fUnpackParMuch->GetNbCrobsPerDpb(); // UInt_t uDpbIdxB = ( uFebIdxB / fUnpackParMuch->GetNbFebsPerCrob() ) / fUnpackParMuch->GetNbCrobsPerDpb(); diff --git a/fles/mcbm2018/monitor/CbmMcbm2018MonitorMuchLite.cxx b/fles/mcbm2018/monitor/CbmMcbm2018MonitorMuchLite.cxx index 694977d370..863a373926 100644 --- a/fles/mcbm2018/monitor/CbmMcbm2018MonitorMuchLite.cxx +++ b/fles/mcbm2018/monitor/CbmMcbm2018MonitorMuchLite.cxx @@ -1014,7 +1014,7 @@ Bool_t CbmMcbm2018MonitorMuchLite::DoUnpack(const fles::Timeslice& ts, if (0 < fvmHitsInMs.size()) { // ULong64_t ulLastHitTime = ( *( fvmHitsInMs.rbegin() ) ).GetTs(); std::vector<stsxyter::FinalHit>::iterator itA; - std::vector<stsxyter::FinalHit>::iterator itB; + // comment unused variable, FU, 18.01.21 std::vector<stsxyter::FinalHit>::iterator itB; // std::chrono::steady_clock::time_point tNow = std::chrono::steady_clock::now(); // Double_t dUnixTimeInRun = std::chrono::duration_cast< std::chrono::seconds >(tNow - ftStartTimeUnix).count(); diff --git a/fles/mcbm2018/monitor/CbmMcbm2018MonitorSts.cxx b/fles/mcbm2018/monitor/CbmMcbm2018MonitorSts.cxx index 5256de3817..cd05407887 100644 --- a/fles/mcbm2018/monitor/CbmMcbm2018MonitorSts.cxx +++ b/fles/mcbm2018/monitor/CbmMcbm2018MonitorSts.cxx @@ -1627,7 +1627,7 @@ Bool_t CbmMcbm2018MonitorSts::DoUnpack(const fles::Timeslice& ts, if (0 < fvmHitsInMs.size()) { // ULong64_t ulLastHitTime = ( *( fvmHitsInMs.rbegin() ) ).GetTs(); std::vector<stsxyter::FinalHit>::iterator itA; - std::vector<stsxyter::FinalHit>::iterator itB; + // comment unused variable, FU, 18.01.21 std::vector<stsxyter::FinalHit>::iterator itB; // std::chrono::steady_clock::time_point tNow = std::chrono::steady_clock::now(); // Double_t dUnixTimeInRun = std::chrono::duration_cast< std::chrono::seconds >(tNow - ftStartTimeUnix).count(); diff --git a/reco/L1/L1Algo/L1Algo.cxx b/reco/L1/L1Algo/L1Algo.cxx index c39fa458d6..260c930120 100644 --- a/reco/L1/L1Algo/L1Algo.cxx +++ b/reco/L1/L1Algo/L1Algo.cxx @@ -250,9 +250,9 @@ void L1Algo::SetData(const vector<L1StsHit>& StsHits_, void L1Algo::GetHitCoor(const L1StsHit& _h, fscal& _x, fscal& _y, char iS) { - L1Station& sta = vStations[int(iS)]; - fscal u = _h.u; - fscal v = _h.v; + L1Station& sta = vStations[int(iS)]; + fscal u = _h.u; + fscal v = _h.v; // const fscal &z = (*vStsZPos)[_h.iz]; // fscal x, y; _x = @@ -344,7 +344,7 @@ void L1Algo::StripsToCoor(const fvec& u, } /// full the hit point by hit information: takes hit as input (2 strips) and creates hit_point with all coordinates (x,y,z,u,v, n - event number); -L1HitPoint L1Algo::CreateHitPoint(const L1StsHit& hit, char ista) +L1HitPoint L1Algo::CreateHitPoint(const L1StsHit& hit, char /*ista*/) /// hit and station number { // L1Station& sta = vStations[int(ista)]; @@ -353,7 +353,9 @@ L1HitPoint L1Algo::CreateHitPoint(const L1StsHit& hit, char ista) return L1HitPoint(z, hit.u, hit.v, hit.du, hit.dv, time, hit.t_er); } -void L1Algo::CreateHitPoint(const L1StsHit& hit, char ista, L1HitPoint& point) +void L1Algo::CreateHitPoint(const L1StsHit& hit, + char /*ista*/, + L1HitPoint& point) /// hit and station number { // L1Station& sta = vStations[int(ista)]; diff --git a/reco/L1/L1Algo/L1CATrackFinder.cxx b/reco/L1/L1Algo/L1CATrackFinder.cxx index 4f36661639..0c1e18ae19 100644 --- a/reco/L1/L1Algo/L1CATrackFinder.cxx +++ b/reco/L1/L1Algo/L1CATrackFinder.cxx @@ -81,10 +81,11 @@ inline void L1Algo::f10( // input THitI* hitsl, fvec* HitTime_l, fvec* HitTimeEr, - fvec* Event_l, - fvec* d_x, - fvec* d_y, - fvec* d_xy, + // comment unused parameters, FU, 18.01.21 + fvec* /*Event_l*/, + fvec* /*d_x*/, + fvec* /*d_y*/, + fvec* /*d_xy*/, fvec* d_u, fvec* d_v) { const Tindex& end_lh = start_lh + n1_l; @@ -135,9 +136,10 @@ inline void L1Algo::f11( /// input 1st stage of singlet search // L1TrackPar *T_1, L1TrackPar* T_1, L1FieldRegion* fld_1, - fvec* d_x, - fvec* d_y, - fvec* d_xy, + // comment unused parameters, FU, 18.01.21 + fvec* /*d_x*/, + fvec* /*d_y*/, + fvec* /*d_xy*/, fvec* d_u, fvec* d_v) { L1Station& stal = vStations[istal]; @@ -447,7 +449,8 @@ inline void L1Algo::f20( // input vector<THitI>& hitsl_2, #endif // DOUB_PERFORMANCE vector<THitI>& hitsm_2, - fvec* Event, + // comment unused parameters, FU, 18.01.21 + fvec* /*Event*/, vector<bool>& lmDuplets) { n2 = 0; // number of doublet for (Tindex i1 = 0; i1 < n1; ++i1) // for each singlet -- GitLab