GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Accessing for splitted simulation file
Accessing for splitted simulation file [message #8424] Wed, 06 May 2009 10:23 Go to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *kph.uni-mainz.de
Dear all,

I have a question for MC file accessing.
Few simulation *.root files, which is produced as a simulation file, are splitted in pandaroot, automatically, because of a large amount of data size.

After running the simulation, I have total three files.
simulation.mc.root
simulation.mc_1.root
simulation.mc_2.root

How can I aceess all three files in digitization and reconstruction stage?

Thank you!


Re: Accessing for splitted simulation file [message #8433 is a reply to message #8424] Wed, 06 May 2009 12:01 Go to previous messageGo to next message
Ralf Kliemt is currently offline  Ralf Kliemt
Messages: 507
Registered: May 2007
Location: GSI, Darmstadt
first-grade participant

From: *to.infn.it
Hello,

As far as I recall you should use
fRun->AddFriend(file);
with every file subsequently. I think there was a even message about that in the forums earlier, but I cannot find it.

Kind regards, Ralf.
Re: Accessing for splitted simulation file [message #8435 is a reply to message #8424] Wed, 06 May 2009 12:09 Go to previous messageGo to next message
donghee is currently offline  donghee
Messages: 385
Registered: January 2009
Location: Germnay
first-grade participant
From: *kph.uni-mainz.de
Thank you for you idea.


I think that addfriend() is slightly different concept, because it would have an extra information.

I assume that I need some kind of TChain class with the function of tchain->add();

I will try it, which you mentioned.

Thank you!
Re: Accessing for splitted simulation file [message #8438 is a reply to message #8435] Wed, 06 May 2009 12:20 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *to.infn.it
If I remember well it should be:

fRun->AddFile(namefile)
Previous Topic: Error: dlopen error when running the root macro to execute MC
Next Topic: Visualization of any kind of event.
Goto Forum:
  


Current Time: Sat Apr 27 22:44:57 CEST 2024

Total time taken to generate the page: 0.01345 seconds