Skip to content
Snippets Groups Projects
Commit 086b8a55 authored by audrey.chatillon's avatar audrey.chatillon
Browse files

[GaseousDetectorScorerers] time for each step is the mean of time at the...

[GaseousDetectorScorerers] time for each step is the mean of time at the begining and at the end of each step
parent 5e5b8aa1
No related branches found
No related tags found
No related merge requests found
Pipeline #384979 passed
...@@ -78,7 +78,7 @@ G4bool PS_GaseousDetector::ProcessHits(G4Step* aStep, G4TouchableHistory*) { ...@@ -78,7 +78,7 @@ G4bool PS_GaseousDetector::ProcessHits(G4Step* aStep, G4TouchableHistory*) {
int trackID = aStep->GetTrack()->GetTrackID(); int trackID = aStep->GetTrack()->GetTrackID();
double step_posZ = aStep->GetPostStepPoint()->GetPosition().z(); // z coordinate at the end of the step. double step_posZ = aStep->GetPostStepPoint()->GetPosition().z(); // z coordinate at the end of the step.
t_Energy = aStep->GetTotalEnergyDeposit(); 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_ParticleName.push_back(particlename);
t_TrackID.push_back(trackID); t_TrackID.push_back(trackID);
t_StepPosZ.push_back(step_posZ); t_StepPosZ.push_back(step_posZ);
......
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