diff --git a/core/detectors/much/CbmMuchSectorRadial.cxx b/core/detectors/much/CbmMuchSectorRadial.cxx index e0f9527f44029fa3e2a9e47a4542c0b73a7a76a8..dba77394a7501227428216f51a53c7e4c13e827c 100644 --- a/core/detectors/much/CbmMuchSectorRadial.cxx +++ b/core/detectors/much/CbmMuchSectorRadial.cxx @@ -1,6 +1,6 @@ /* Copyright (C) 2012-2020 Petersburg Nuclear Physics Institute named by B.P.Konstantinov of National Research Centre "Kurchatov Institute", Gatchina SPDX-License-Identifier: GPL-3.0-only - Authors: Evgeny Kryshen [committer], Florian Uhlig */ + Authors: Evgeny Kryshen [committer], Florian Uhlig , Apar Agarwal */ /** CbmMuchSectorRadial.cxx *@author E.Kryshen <e.kryshen@gsi.de> @@ -37,10 +37,10 @@ CbmMuchSectorRadial::CbmMuchSectorRadial(Int_t detId, Int_t secId, Double_t r1, , fPhi2(0.) , fPadDphi((r2 - r1) / r1) { - if (phi2 < phi1) LOG(error) << "Panic!"; - fNChannels = 2 * TMath::Ceil((phi2 - phi1) / 2 / fPadDphi); - fPhi1 = (phi1 + phi2) / 2 - fNChannels / 2 * fPadDphi; - fPhi2 = (phi1 + phi2) / 2 + fNChannels / 2 * fPadDphi; + if (phi2 < phi1) LOG(error) << "Error in description of module paramaters (phi1 > phi2)"; + fNChannels = TMath::Ceil(((phi2 - phi1) / fPadDphi) - DBL_EPSILON); + fPhi1 = phi1; + fPhi2 = phi2; } // -----------------o-------------------------------------------------------- diff --git a/external/InstallGeometry.cmake b/external/InstallGeometry.cmake index 9726a335ca5bcd6d10e26bdf376df19437cd2357..274b8bc6b0a8add8897c92fcbf1b4dd05fc3c80e 100644 --- a/external/InstallGeometry.cmake +++ b/external/InstallGeometry.cmake @@ -1,5 +1,5 @@ -set(GEOMETRY_VERSION c7d89e005b1f1d0baed271e5fe292886a13201c3) +set(GEOMETRY_VERSION 8fbf605d896cda44147236453e6026a424291900) set(GEOMETRY_SRC_URL "https://git.cbm.gsi.de/CbmSoft/cbmroot_geometry.git") diff --git a/external/InstallParameter.cmake b/external/InstallParameter.cmake index 166b5b99afb342c3ab82370affbed272b9e3c172..4c016d35558ea683438c400e89092a3e31c0b803 100644 --- a/external/InstallParameter.cmake +++ b/external/InstallParameter.cmake @@ -1,4 +1,4 @@ -set(PARAMETER_VERSION 6e29512b5db4315f7307573460093546f70f079b) +set(PARAMETER_VERSION 8e6118215398a0517712af64557100cf3fae2fde) set(PARAMETER_SRC_URL "https://git.cbm.gsi.de/CbmSoft/cbmroot_parameter.git")