GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » General » MCTrack
MCTrack [message #5410] Thu, 15 November 2007 12:47 Go to previous message
Klaus Götzen is currently offline  Klaus Götzen
Messages: 293
Registered: June 2006
Location: GSI
first-grade participant
From: *ikf.physik.uni-frankfurt.de
Hi!

I somehow stumbling always about the same problems... my question is, where and when the MCTrack array is created and filled, so that I can access that from a task.
What I'd like to do is to access the MCTrack array of a simulated event, without running a transport code. My simple idea would be to init an arbitrary event generator, which produces the tracks and somehow stores these primaries.
A code snippet form my macro looks like:
.
.
.

CbmRunSim *fRun = new CbmRunSim();

fRun->SetOutputFile("fastsim.root");

CbmPrimaryGenerator* primGen = new CbmPrimaryGenerator();
fRun->SetGenerator(primGen);

CbmEvtGenGenerator* evtGen = new CbmEvtGenGenerator("output.evt");
primGen->AddGenerator(evtGen);

primGen->DoTracking(kFALSE);


CbmFastSim* fastSim = new CbmFastSim();
fRun->AddTask(fastSim);

.
.
.

but in my task CbmFastSim MCTrack is not accessible, I get the message

-E- CbmRootManager Branch: MCTrack not found in Tree
-W- CbmFastSim::Init: No MCStack array!

Most likely this is no big deal to solve. Somebody has a hint for me?

Cheers,
Klaus
 
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 13:54:33 CET 2024

Total time taken to generate the page: 0.00708 seconds