From 5db0fbe0c6e2ce300fd1eebd9a3e01cec140bb80 Mon Sep 17 00:00:00 2001 From: Frank Gaede <frank.gaede@desy.de> Date: Mon, 11 Jan 2016 16:13:03 +0000 Subject: [PATCH] - do not set the endpoint to the start point of the particle --- DDG4/src/Geant4ParticleGenerator.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/DDG4/src/Geant4ParticleGenerator.cpp b/DDG4/src/Geant4ParticleGenerator.cpp index 0544b97ac..17742a8d9 100644 --- a/DDG4/src/Geant4ParticleGenerator.cpp +++ b/DDG4/src/Geant4ParticleGenerator.cpp @@ -145,9 +145,10 @@ void Geant4ParticleGenerator::operator()(G4Event*) { p->vsx = vtx->x; p->vsy = vtx->y; p->vsz = vtx->z; - p->vex = vtx->x; - p->vey = vtx->y; - p->vez = vtx->z; + //fg: do not set the endpoint to the start point of the particle + // p->vex = vtx->x; + // p->vey = vtx->y; + // p->vez = vtx->z; inter->particles.insert(make_pair(p->id,p)); vtx->out.insert(p->id); printout(INFO,name(),"Particle [%d] %s %.3f GeV direction:(%6.3f %6.3f %6.3f)", -- GitLab