From 9fb0a37694d59e2be05c9a4ce74cbfd4d8dc465b Mon Sep 17 00:00:00 2001 From: moukaddam <mhd.moukaddam@gmail.com> Date: Wed, 27 Sep 2017 22:38:23 +0100 Subject: [PATCH] adding comments --- NPSimulation/Scorers/SiliconScorers.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NPSimulation/Scorers/SiliconScorers.cc b/NPSimulation/Scorers/SiliconScorers.cc index c4567d9b8..4f97f40ff 100644 --- a/NPSimulation/Scorers/SiliconScorers.cc +++ b/NPSimulation/Scorers/SiliconScorers.cc @@ -42,16 +42,16 @@ G4bool PS_Silicon_Images::ProcessHits(G4Step* aStep, G4TouchableHistory*){ t_DetectorNbr = aStep->GetPreStepPoint()->GetTouchableHandle()->GetCopyNumber(m_Level); t_Position = aStep->GetPreStepPoint()->GetPosition(); - + // Interaction coordinates (used to fill the InteractionCoordinates branch) + // N.B: Theta and phi are calculated with respect to (0,0,0) t_X = t_Position.x(); t_Y = t_Position.y(); t_Z = t_Position.z(); t_Theta = t_Position.theta(); t_Phi = t_Position.phi(); - + // transforming the position to the local volume t_Position = aStep->GetPreStepPoint()->GetTouchableHandle()->GetHistory()->GetTopTransform().TransformPoint(t_Position); - t_PixelFront = m_ImageFront->GetPixelAtCoordinate(t_Position.x(),t_Position.y()); t_PixelBack = m_ImageBack->GetPixelAtCoordinate(t_Position.x(),t_Position.y()); -- GitLab