GAMOS 5.1.0 User's Guide | ||
---|---|---|
<<< Previous | Generator | Next >>> |
You can also define your event primary particles with a text file. The format of the input file is the following:
Each line corresponds to a primary particle, with the following variables:
EventID
Particle
PosX
PosY
PosZ
MomX
MomY
MomZ
Time
Weight
The lines will be read one by one and all the particles that have the same event ID will be simulated together in an event.
To select this generator you have to use the command
/gamos/generator GmGeneratorFromTextFile
By default the file to be read is called ``generator.txt'', you can see an example at MY_GAMOS_DIR/data/generator.txt. You can change its name with the command
/gamos/setParam GmGeneratorFromTextFile:FileName MY_FILENAME
To change the search path please read the section ``Managing the input data files''.
A file of this type may be created with the user action GmTrackDataTextFileUA using the following list of data:
EventID Particle InitialPosX InitialPosY InitialPosZ InitialMomX InitialMomY InitialMomZ InitialTime InitialWeight
You may skip the first events, by setting the parameter:
/gamos/setParam GmGeneratorFromTextFile:NEventsSkip NEVENTS
<<< Previous | Home | Next >>> |
Generator | Up | Reading your generator particles from a binary file |