[Gate-users] reading source from a file
sebastien.jan at cea.fr
Thu Aug 23 14:38:02 CEST 2007
You need to develop your specific method in GateGeneralParticleSource
and GateGeneralParticleSourceMessenger (if you want to develop a
The method GateGeneralParticleSource::GeneratePointsInBeam() could be
used as an example.
Finally, your method will return the "particle_position" variable which
will called by
Hope this help
>I have the following problem:
>I would like to read the position, energy and the direction of a
>primary particle from a file and use this to set my "PrimaryVertex".
>In geant4, this could be done in "PrimaryGeneratorAction" as
>Is there a way to do such a thing in Gate?
>I would appreciate ant suggestions/comments.
>Thank you very much,
More information about the Gate-users