GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Prolem reading UrQMD files
icon5.gif  Prolem reading UrQMD files [message #5030] Fri, 07 September 2007 17:15 Go to next message
Jens Sören Lange is currently offline  Jens Sören Lange
Messages: 193
Registered: June 2005
first-grade participant
From: *physik.uni-giessen.de
Hi all,

I am trying to read UrQMD event generator files from /d/panda02/urqmd_smm (generated by Aida) and run with run_sim.C.

---

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

CbmUrqmdGenerator* urqmdGen = new CbmUrqmdGenerator("./pbarC_3_GeV.root");
primGen->AddGenerator(urqmdGen);

---

but I get

**** GTRIGI: IEVENT= 1 IDEVT= 1 Random Seeds = 4357 0
-E CbmUrqmdGenerator: Wrong event header
-E CbmPrimaryGenerator: ReadEvent failed for generator
StopRun() exiting not safetly oopps !!!@@@!!!

---

Additional observations:

a.) I also tried with other files (e.g. pbarAu_4_05_GeV_1.root), same effect.

b.) I can open the files with root and TBrowser and see that everything seems to be fine inside (except obviously the event header).

c.) filename is definitely correct (if I give the wrong filename, then I get a message "file not found"). So it means, the file is definitely opened.

Any idea?

Soeren


Re: Prolem reading UrQMD files [message #5032 is a reply to message #5030] Fri, 07 September 2007 19:02 Go to previous messageGo to next message
asanchez is currently offline  asanchez
Messages: 350
Registered: March 2006
first-grade participant
From: *gsi.de
hi Soeren have you tried to read the file with the whole path
and to use the CbmUrqmdSmmGenerator?

Tstring inFile = "/d/panda02/urqmd_smm/pbarC_3_GeV.root";

CbmUrqmdSmmGenerator* urqmdGen = new CbmUrqmdSmmGenerator(inFile);
primGen->AddGenerator(urqmdGen);


At least for me, it is working like that.

best regrads
Alicia.
Re: Prolem reading UrQMD files [message #5033 is a reply to message #5032] Fri, 07 September 2007 19:35 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: 207.23.241*
Yes,
PndUrqmdSmmGenerator is the correct generator for Aida files (in libPGen).
CbmUrqmdGenerator is for the "standard" UrQmd output files, while we have a TParticle structure that can be browsed in ROOT.
Previous Topic: Problem with a symbol lookup
Next Topic: stt not compiling
Goto Forum:
  


Current Time: Fri Nov 29 15:07:19 CET 2024

Total time taken to generate the page: 0.00784 seconds