GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » AddFriend
AddFriend [message #4725] Sun, 22 July 2007 22:12 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *
during the weekend I simulated many events, and the output of my simulation macro was composed by several files (bigdata_mega_X.root).

Then I launched my reconstruction, I added all the files with the fRun->AddFile() function, in order to have only one file with the output (full_bigdata_mega.root).

Then I wanted to launch my macro, and to use even the MCTrack information. In mý macro I put the following lines:

TFile* f = new TFile("$DATA/panda/kick/full_bigdata_mega.root"); TTree *t=(TTree *) f->Get("cbmsim") ;

Fist of all I get several warnings, telling me that the size of the friend is less than the original file (of course, but the sum of friends corresponds to the total size of the first file), then the analysis run smoothly, but when it exceeds the number of events of the first friend (so when it has to move to the next one), I have an error (illegal pointer to class...), so the friend mechanism has failed.

What I did wrong? Or is there some bug?

P.S. If I try to create one reconstruction file per each "son" of the first file, the first one is ok (bigdata_mega) but from the 2ns one (bigdata_mega_1) the analysis crashes (-E- CbmRootManager Branch: EventHeader. not found in Tree).

[Updated on: Sun, 22 July 2007 22:16]

Report message to a moderator

Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon8.gif
Previous Topic: Dashboard oflline
Next Topic: cbmRunAna.cxx AddFile AddFriend
Goto Forum:

Current Time: Fri Dec 03 11:17:30 CET 2021

Total time taken to generate the page: 0.02198 seconds