GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » Fairroot » General Discussion » Freezout coordinates
Re: Freezout coordinates [message #14457 is a reply to message #14455] Mon, 25 February 2013 10:45 Go to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *

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.


Read Message
Read Message
Read Message
Read Message
Previous Topic: Continuous Build Server
Next Topic: Maintenance shutdown of CDash Server
Goto Forum:

Current Time: Wed Jul 17 12:28:26 CEST 2024

Total time taken to generate the page: 0.00988 seconds