X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FDigits2RecParticles.C;h=34e149a446fdaed140edc75cc5eb01b6f992f8be;hb=cbfb95008c018f5454db4fa3b4dd237736323006;hp=98e4d19d7b0c109a0265a5f696e8be743003a90b;hpb=052811cac2852530b602ec0aa29c364fe630d9ed;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/Digits2RecParticles.C b/PHOS/Digits2RecParticles.C index 98e4d19d7b0..34e149a446f 100644 --- a/PHOS/Digits2RecParticles.C +++ b/PHOS/Digits2RecParticles.C @@ -1,4 +1,5 @@ void Digits2RecParticles(){ + gSystem->Setenv("CONFIG_SPLIT_FILE","1") ; TFile * fRootFile = TFile::Open("galice.root","update"); @@ -25,13 +26,18 @@ void Digits2RecParticles(){ fPID->SetShowerProfileCuts(0.3, 1.8, 0.3, 1.8 ) ; //========== Creates the Reconstructioner - AliPHOSReconstructioner * fRec = new AliPHOSReconstructioner(fClu, fTrs, fPID) ; + AliPHOSReconstructor * fRec = new AliPHOSReconstructor(fClu, fTrs, fPID) ; // fRec -> SetDebugReconstruction(kTRUE); gAlice->GetEvent(0) ; gAlice->TreeD()->GetEvent(0) ; + if (gSystem->Getenv("CONFIG_SPLIT_FILE")) + if(gAlice->TreeR() == 0) gAlice->MakeTree("R","Reco.PHOS.root"); + else + if(gAlice->TreeR() == 0) gAlice->MakeTree("R"); + //=========== Do the reconstruction fPHOS->Reconstruction(fRec);