From 184d0d840212508215ebc40996aac71790417a74 Mon Sep 17 00:00:00 2001 From: "se.gorbunov" <se.gorbunov@gsi.de> Date: Mon, 8 Jan 2024 19:12:22 +0000 Subject: [PATCH] warning fixes in Ca --- core/eventdisplay/CbmTsPointSetArrayDraw.cxx | 2 +- reco/L1/CbmL1.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/eventdisplay/CbmTsPointSetArrayDraw.cxx b/core/eventdisplay/CbmTsPointSetArrayDraw.cxx index 6eb88be814..f26c23f9b0 100644 --- a/core/eventdisplay/CbmTsPointSetArrayDraw.cxx +++ b/core/eventdisplay/CbmTsPointSetArrayDraw.cxx @@ -88,7 +88,7 @@ void CbmTsPointSetArrayDraw::GotoEvent(uint32_t uEventIdx) int nofPoints = fTsPointList->GetEntriesFast(); int nPoints = 0; LOG(debug3) << " Fill TofUhit from " << nofPoints << " hits in Ts."; - for (Int_t iP = 0; iP < event->GetNofData(ECbmDataType::kTofUHit); ++iP) { + for (size_t iP = 0; iP < event->GetNofData(ECbmDataType::kTofUHit); ++iP) { Int_t iPId = event->GetIndex(ECbmDataType::kTofUHit, iP); // make this generic!! CbmTofHit* tHit = dynamic_cast<CbmTofHit*>(fTsPointList->At(iPId)); LOG(debug3) << "Add Hit " << iP << ", " << iPId << ", " << tHit << " at " << nPoints; diff --git a/reco/L1/CbmL1.h b/reco/L1/CbmL1.h index a47d7442a6..7b187d3c59 100644 --- a/reco/L1/CbmL1.h +++ b/reco/L1/CbmL1.h @@ -250,7 +250,7 @@ class CbmL1 : public FairTask { void SetGlobalMode() { fTrackingMode = ca::Framework::TrackingMode::kGlobal; } /// Sets misalignment of the detector - void SetMisalignment(ca::EDetectorID det, float dx, float dy, float dt) { fvMisalignment[det] = {dx, dy, dt}; } + void SetMisalignment(ca::EDetectorID det, float dx, float dy, float dt) { fvMisalignment[det] = {{dx, dy, dt}}; } void SetMisalignmentMvd(float dx, float dy, float dt) { SetMisalignment(ca::EDetectorID::kMvd, dx, dy, dt); } void SetMisalignmentSts(float dx, float dy, float dt) { SetMisalignment(ca::EDetectorID::kSts, dx, dy, dt); } @@ -430,7 +430,9 @@ class CbmL1 : public FairTask { ca::InitManager fInitManager; ///< Tracking parameters data manager std::shared_ptr<ca::DataManager> fpIODataManager = nullptr; ///< Input-output data manager - cbm::ca::DetIdArr_t<std::array<float, 3>> fvMisalignment{{0.}}; ///< Misalignment + + cbm::ca::DetIdArr_t<std::array<float, 3>> fvMisalignment = {{{{0.}}}}; ///< Misalignment + // (so many braces are needed to satisfy the clang compiler) public: // ** Basic data members ** @@ -451,7 +453,7 @@ class CbmL1 : public FairTask { double fTargetY{1.e10}; ///< target position Y double fTargetZ{1.e10}; ///< target position Z - int fNStations = 0; ///< number of total active detector stations + int fNStations = 0; ///< number of total active detector stations Int_t fPerformance = 0; ///< performance mode: 0 - w\o perf. 1 - L1-Efficiency definition. 2 - QA-Eff.definition double fTrackingTime = 0.; ///< time of track finding procedure @@ -544,6 +546,4 @@ class CbmL1 : public FairTask { }; - - #endif //_CbmL1_h_ -- GitLab