GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » MCTrack
Re: MCTrack [message #5411 is a reply to message #5410] Thu, 15 November 2007 13:20 Go to previous messageGo to previous message
Mohammad Al-Turany is currently offline  Mohammad Al-Turany
Messages: 518
Registered: April 2004
Location: GSI, Germany
first-grade participant
From: *gsi.de
Hi klaus,

The MCTrack is filled when finishing an event (in your case
after filling the Stack). but your task is trying to access the
MCTrack in the initialization phase of a simulation session
(CbmRunSim!). So either you do this in two steps:

1. in your macro, remove the CbmFastSim and run it. It will
produce an output file(fastsim.root)
In fact, here you just copy the information from your event
generator format to a format similar to the full simulation
(There is not transport at all here)
2. create a new macro (Analysis macro, ie: CbmRunAna), set
input file (output of step 1), add
your task , and you will see the MCTrack and can use them


Or:

if you want to do it in one step, you have to use Stack, instead of MCTrack:
CbmStack *fStack= gMC->GetStack();
and from CbmStack you have access to all info on the fly
before they are filtered(if?) and written out as an array of
MCTracks


regards
Mohammad


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Drc Flow Diagram
Next Topic: stt alligned to PandaRoot nomenclature
Goto Forum:
  


Current Time: Fri Mar 29 09:15:40 CET 2024

Total time taken to generate the page: 0.00869 seconds