]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSAnalyseTest.C
Fixing compilation warnings
[u/mrichter/AliRoot.git] / PHOS / AliPHOSAnalyseTest.C
index 99bd22602aac294b9ca0e41a3dc47ba53db2770a..6218883676693f25b710b3320758412eb86b89d3 100644 (file)
@@ -1,56 +1,60 @@
-void AliPHOSAnalyseTest(){
-cout << "AliPHOS:> Single File default reconstruction analysing" << endl ;
-AliPHOSGetter* gime=AliPHOSGetter::GetInstance("galice.root") ;  
-gime->Event(0,"SDR") ;
-if((gime->EmcRecPoints()==0)||(gime->EmcRecPoints()->At(0)==0)){
+#include <iostream>
+
+#include "AliPHOSGetter.h"
+
+void Go(){
+  cout << "AliPHOS:> Single File default reconstruction analysing" << endl ;
+  AliPHOSGetter* gime=AliPHOSGetter::GetInstance("galice.root") ;  
+  gime->Event(0,"SDR") ;
+  if((gime->EmcRecPoints()==0)||(gime->EmcRecPoints()->At(0)==0)){
     cout << "        No EmcRecPoint  !!!!! " << endl ;
-}    
-if((gime->CpvRecPoints()==0)||(gime->CpvRecPoints()->At(0)==0)){
+  }    
+  if((gime->CpvRecPoints()==0)||(gime->CpvRecPoints()->At(0)==0)){
     cout << "        No CpvRecPoint  !!!!! " << endl ;
-}    
-if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){
+  }    
+  if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){
     cout << "        No TrackSegments !!!! " << endl ;
-}    
-if((gime->RecParticles()==0)||(gime->RecParticles()->At(0)==0)){
+  }    
+  if((gime->RecParticles()==0)||(gime->RecParticles()->At(0)==0)){
     cout << "        No RecParticles !!!!! " << endl ;
-}    
-cout << "AliPHOS:> Single File default analysing finished" << endl ;
-
-
-cout << "AliPHOS:> Single File branch TEST analyzing started" << endl ;
-gime=AliPHOSGetter::GetInstance("galice.root","test") ;  
-gime->Event(0,"SDR") ;
-if((gime->EmcRecPoints()==0)||(gime->EmcRecPoints()->At(0)==0)){
+  }    
+  cout << "AliPHOS:> Single File default analysing finished" << endl ;
+  
+  
+  cout << "AliPHOS:> Single File branch TEST analyzing started" << endl ;
+  gime=AliPHOSGetter::GetInstance("galice.root","test") ;  
+  gime->Event(0,"SDR") ;
+  if((gime->EmcRecPoints()==0)||(gime->EmcRecPoints()->At(0)==0)){
     cout << "No EmcRecPoint " << endl ;
-}    
-if((gime->CpvRecPoints()==0)||(gime->CpvRecPoints()->At(0)==0)){
+  }    
+  if((gime->CpvRecPoints()==0)||(gime->CpvRecPoints()->At(0)==0)){
     cout << "No CpvRecPoint " << endl ;
-}    
-if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){
+  }    
+  if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){
     cout << "No TrackSegments " << endl ;
-}    
-if((gime->RecParticles()==0)||(gime->RecParticles()->At(0)==0)){
+  }    
+  if((gime->RecParticles()==0)||(gime->RecParticles()->At(0)==0)){
     cout << "No RecParticles " << endl ;
-}    
-cout << "AliPHOS:> Single File branch TEST reconstruction ended" << endl ;
-
-
-cout << "AliPHOS:> Split File default reconstruction started" << endl ;
-gime=AliPHOSGetter::GetInstance("galice.root","Default",kTRUE) ;  
-gime->Event(0,"SDR") ;
-if((gime->EmcRecPoints()==0)||(gime->EmcRecPoints()->At(0)==0)){
+  }    
+  cout << "AliPHOS:> Single File branch TEST reconstruction ended" << endl ;
+  
+  
+  cout << "AliPHOS:> Split File default reconstruction started" << endl ;
+  gime=AliPHOSGetter::GetInstance("galice.root","Default",kTRUE) ;  
+  gime->Event(0,"SDR") ;
+  if((gime->EmcRecPoints()==0)||(gime->EmcRecPoints()->At(0)==0)){
     cout << "No EmcRecPoint " << endl ;
-}    
-if((gime->CpvRecPoints()==0)||(gime->CpvRecPoints()->At(0)==0)){
+  }    
+  if((gime->CpvRecPoints()==0)||(gime->CpvRecPoints()->At(0)==0)){
     cout << "No CpvRecPoint " << endl ;
-}    
-if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){
+  }    
+  if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){
     cout << "No TrackSegments " << endl ;
-}    
-if((gime->RecParticles()==0)||(gime->RecParticles()->At(0)==0)){
+  }    
+  if((gime->RecParticles()==0)||(gime->RecParticles()->At(0)==0)){
     cout << "No RecParticles " << endl ;
-}    
-cout << "AliPHOS:> Split File default reconstruction ended" << endl ;
-cout << "--------AliPHOS:> Reconstruction OK------------------"<< endl ;
-
+  }    
+  cout << "AliPHOS:> Split File default reconstruction ended" << endl ;
+  cout << "--------AliPHOS:> Reconstruction OK------------------"<< endl ;
+  
 }