]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/Digits2RecParticles.C
selection of the active detector modified in 3 very simple macros
[u/mrichter/AliRoot.git] / PHOS / Digits2RecParticles.C
index 98e4d19d7b0c109a0265a5f696e8be743003a90b..9186a1297d3eece62fa8712856b6ad2703e650c9 100644 (file)
@@ -1,4 +1,5 @@
 void Digits2RecParticles(){
+  gSystem->Setenv("CONFIG_SPLIT_FILE","1") ;   
 
   TFile * fRootFile = TFile::Open("galice.root","update");
 
@@ -32,6 +33,11 @@ void Digits2RecParticles(){
 
   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);