]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSReconstructionTest.C
L1phase shift corrected
[u/mrichter/AliRoot.git] / PHOS / AliPHOSReconstructionTest.C
index 8807b02743fc03767072bfcbe7cf7a06b56630a1..da28aa01ba0e42ca5c6d67f4b31e8e2ca5d9371d 100644 (file)
@@ -1,16 +1,31 @@
-void AliPHOSReconstructionTest(){
-cout << "AliPHOS:> Single File default reconstruction started" << endl ;
-AliPHOSReconstructioner a("galice.root") ;  //first -single file default reconstruction
-a.ExecuteTask() ;
-cout << "AliPHOS:> Single File default reconstruction finished" << endl ;
-cout << "AliPHOS:> Single File branch TEST reconstruction started" << endl ;
-AliPHOSReconstructioner a("galice.root","test") ;  //another branch single file recontruction
-a.ExecuteTask() ;
-cout << "AliPHOS:> Single File branch TEST reconstruction ended" << endl ;
-cout << "AliPHOS:> Split File default reconstruction started" << endl ;
-AliPHOSReconstructioner a("galice.root","Default",kTRUE) ; //Split file default reconstruction
-a.ExecuteTask() ;
-cout << "AliPHOS:> Split File default reconstruction ended" << endl ;
-cout << "--------AliPHOS:> Reconstruction OK------------------"<< endl ;
+#if !defined(__CINT__) || defined(__MAKECINT__)
+#include <iostream>
 
+#include "TString.h"
+
+#include "PHOS/AliPHOSReconstructor.h"
+#endif
+
+void Go(TString deb = ""){
+  AliPHOSReconstructor * a ;   
+
+  cout << "AliPHOS:> Single File default reconstruction started" << endl ;
+  a = new AliPHOSReconstructor("galice.root") ;  //first -single file default reconstruction
+  a->ExecuteTask(deb.Data()) ;
+  cout << "AliPHOS:> Single File default reconstruction finished" << endl ;
+  // delete a ; 
+
+  cout << "AliPHOS:> Single File branch TEST reconstruction started" << endl ;
+  a = new AliPHOSReconstructor("galice.root","test") ;  //another branch single file recontruction
+  a->ExecuteTask(deb.Data()) ;
+  cout << "AliPHOS:> Single File branch TEST reconstruction ended" << endl ;
+  //delete a ; 
+  
+  cout << "AliPHOS:> Split File default reconstruction started" << endl ;
+  a = new AliPHOSReconstructor("galice.root","Default",kTRUE) ; //Split file default reconstruction
+  a->ExecuteTask(deb.Data()) ;
+  cout << "AliPHOS:> Split File default reconstruction ended" << endl ;
+  //delete a ; 
+
+  cout << "--------AliPHOS:> Reconstruction OK------------------"<< endl ;
 }