Re: Freezout coordinates [message #14457 is a reply to message #14455] |
Mon, 25 February 2013 10:45 |
Mohammad Al-Turany
Messages: 518 Registered: April 2004 Location: GSI, Germany
|
first-grade participant |
From: *gsi.de
|
|
Hi,
Ok, You can create your own PrimaryGenerator which inherits from FairPrimaryGenerator and overwrite the virtual method AddTrack or write you own AddTrack method and call it from your own ReadEvent in your generator. So in Summary you need 4-Classes to do this.
1. Your Generator in which you read the freezout coordinates in ReadEvent0
2. Subclass of the FairPrimaryGenerator that has an AddTrack method or what ever you call it that push your variable into the stack, this method you call from your ReadEvent()
3. Your own MCTrack which keep your parameter in the Tree
4. Your own Stack which holds the variable during simulation
Doing that you have to create your primary generator in the simulation macro and not the FairPrimaryGenerator.
Hope this will help you.
Cheers,
Mohammad
|
|
|