next-exp / nexus

Geant4 simulation framework of the NEXT Collaboration
5 stars 55 forks source link

Fix Trajectory visualization bug #158

Closed jurenag closed 2 years ago

jurenag commented 2 years ago

As pointed out by issue #9, the trajectories of photons and geantinos cannot be visualized from the very beginning. With this commit, the creation of the first trajectory point within Trajectory class constructor is added, thus resolving the incompleteness of the visualized trajectories, which actually affected every trajectory regardless its track.

Resolves: #9

Find below the effects of this change on the configuration given by macros/nexus_example1.init.mac , after executing run/beamOn 100

Before this commit: image

After this commit: image