diff --git a/NPSimulation/Scorers/GaseousDetectorScorers.cc b/NPSimulation/Scorers/GaseousDetectorScorers.cc index a98c7dd6b84f989e544b74957233134881f52862..13e899cbeecbe7bc751ef066d55970e034674cc3 100644 --- a/NPSimulation/Scorers/GaseousDetectorScorers.cc +++ b/NPSimulation/Scorers/GaseousDetectorScorers.cc @@ -78,7 +78,7 @@ G4bool PS_GaseousDetector::ProcessHits(G4Step* aStep, G4TouchableHistory*) { int trackID = aStep->GetTrack()->GetTrackID(); double step_posZ = aStep->GetPostStepPoint()->GetPosition().z(); // z coordinate at the end of the step. t_Energy = aStep->GetTotalEnergyDeposit(); - t_Time = aStep->GetPreStepPoint()->GetGlobalTime(); // DeltaT [ns] since the begining of the simulated event up to the begining of the step + t_Time = 0.5*(aStep->GetPreStepPoint()->GetGlobalTime()+aStep->GetPostStepPoint()->GetGlobalTime()); // DeltaT [ns] since the begining of the simulated event up to the begining of the step t_ParticleName.push_back(particlename); t_TrackID.push_back(trackID); t_StepPosZ.push_back(step_posZ);