Issue in NPSimulation/Scorers/SiliconScorers.cc and .hh
Created by: malabi
An issue was recently reported to me regarding this scorer while used for a gamma-ray detection system, as it returned a wrong strip id assignment and wrong strip multiplicity.
The origin of this problem turned out to be the variable m_Index that is declared as a G4int in the header file but, as used in the cc file (line showed below), can take very large values.
m_Index = aStep->GetTrack()->GetTrackID() + m_DetectorNumber * 1e3 + m_StripLengthNumber * 1e6 + m_StripWidthNumber * 1e9;
The solution is to declare m_Index as a long integer with: int long or G4long.