]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/Digits2RecParticles.C
Coverity 18557 solved by non-implemented private copy constructor and assignment...
[u/mrichter/AliRoot.git] / PHOS / Digits2RecParticles.C
index 98e4d19d7b0c109a0265a5f696e8be743003a90b..34e149a446fdaed140edc75cc5eb01b6f992f8be 100644 (file)
@@ -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);