From: hristov Date: Tue, 21 May 2002 16:26:07 +0000 (+0000) Subject: Find correctly TreeK in case CONFIG_SPLIT_FILE is set (Y.Schutz) X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=50a6540a3bb9c8ec0b1447201610b29e5d272ab0 Find correctly TreeK in case CONFIG_SPLIT_FILE is set (Y.Schutz) --- diff --git a/STEER/AliRun.cxx b/STEER/AliRun.cxx index 8ea4a47ca2a..cd47246c96c 100644 --- a/STEER/AliRun.cxx +++ b/STEER/AliRun.cxx @@ -15,6 +15,9 @@ /* $Log$ +Revision 1.83 2002/04/04 13:16:17 jchudoba +add possibility to write sdigits, digits and rec. points into separate files + Revision 1.82 2002/03/12 11:06:03 morsch Add particle status code to argument list of SetTrack(..). @@ -902,18 +905,18 @@ Int_t AliRun::GetEvent(Int_t event) // Get the stack from the header, set fStack to 0 if it // fails to get event - if (fStack) delete fStack; - fStack = fHeader->Stack(); - if (fStack) { - if (!fStack->GetEvent(event)) fStack = 0; - } - // TFile *file = fTreeE->GetCurrentFile(); char treeName[20]; file->cd(); + if (fStack) delete fStack; + fStack = fHeader->Stack(); + if (fStack) { + if (!fStack->GetEvent(event)) fStack = 0; + } + // Get Hits Tree header from file sprintf(treeName,"TreeH%d",event); fTreeH = (TTree*)gDirectory->Get(treeName);