Skip to content
Snippets Groups Projects
Commit df38a54b authored by Apar Agarwal's avatar Apar Agarwal Committed by Pierre-Alain Loizeau
Browse files

Changes now accommodate odd number of pads in a sector

parent 511c2dad
No related branches found
No related tags found
No related merge requests found
/* 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--------------------------------------------------------
......
set(GEOMETRY_VERSION c7d89e005b1f1d0baed271e5fe292886a13201c3)
set(GEOMETRY_VERSION 8fbf605d896cda44147236453e6026a424291900)
set(GEOMETRY_SRC_URL "https://git.cbm.gsi.de/CbmSoft/cbmroot_geometry.git")
......
set(PARAMETER_VERSION 6e29512b5db4315f7307573460093546f70f079b)
set(PARAMETER_VERSION 8e6118215398a0517712af64557100cf3fae2fde)
set(PARAMETER_SRC_URL "https://git.cbm.gsi.de/CbmSoft/cbmroot_parameter.git")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment