X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSReconstructionTest.C;h=da28aa01ba0e42ca5c6d67f4b31e8e2ca5d9371d;hb=0e1c4f917cd7da8689c166c34f7fe24c22130055;hp=8807b02743fc03767072bfcbe7cf7a06b56630a1;hpb=8cfb382bc3c6d6582848351a35ce057741586625;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSReconstructionTest.C b/PHOS/AliPHOSReconstructionTest.C index 8807b02743f..da28aa01ba0 100644 --- a/PHOS/AliPHOSReconstructionTest.C +++ b/PHOS/AliPHOSReconstructionTest.C @@ -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 +#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 ; }