From 8e6be4ca502b1c1d939f817a189e5063315fa820 Mon Sep 17 00:00:00 2001 From: schutz Date: Mon, 26 Aug 2002 11:36:10 +0000 Subject: [PATCH] Made the 2 macros compilable --- EMCAL/AliEMCALAnalyseTest.C | 13 +++-- EMCAL/AliEMCALReconstructionTest.C | 30 ++++++---- PHOS/AliPHOSAnalyseTest.C | 90 ++++++++++++++++-------------- PHOS/AliPHOSReconstructionTest.C | 41 +++++++++----- 4 files changed, 102 insertions(+), 72 deletions(-) diff --git a/EMCAL/AliEMCALAnalyseTest.C b/EMCAL/AliEMCALAnalyseTest.C index 10f19e8812d..203aa1e5f41 100644 --- a/EMCAL/AliEMCALAnalyseTest.C +++ b/EMCAL/AliEMCALAnalyseTest.C @@ -1,4 +1,9 @@ -void AliEMCALAnalyseTest(){ +#include + +#include "EMCAL/AliEMCALGetter.h" + + +void Go(){ cout << "AliEMCAL:> Single File default reconstruction analysing" << endl ; @@ -9,8 +14,8 @@ void AliEMCALAnalyseTest(){ cout << " No TowerRecPoint !!!!! " << endl ; } - if((gime->PreShowerRecPoints()==0)||(gime->CpvRecPoints()->At(0)==0)){ - cout << " No CpvRecPoint !!!!! " << endl ; + if((gime->PreShowerRecPoints()==0)||(gime->PreShowerRecPoints()->At(0)==0)){ + cout << " No PreShowerRecPoint !!!!! " << endl ; } // if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){ @@ -34,7 +39,7 @@ void AliEMCALAnalyseTest(){ } if((gime->PreShowerRecPoints()==0)||(gime->PreShowerRecPoints()->At(0)==0)){ - cout << "No CpvRecPoint " << endl ; + cout << "No PreShowerRecPoint " << endl ; } // if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){ diff --git a/EMCAL/AliEMCALReconstructionTest.C b/EMCAL/AliEMCALReconstructionTest.C index 5d85a86db17..d0d95b9c107 100644 --- a/EMCAL/AliEMCALReconstructionTest.C +++ b/EMCAL/AliEMCALReconstructionTest.C @@ -1,21 +1,29 @@ -void AliEMCALReconstructionTest(){ +#include - cout << "AliEMCAL:> Single File default reconstruction started" << endl ; +#include "TString.h" + +#include "EMCAL/AliEMCALReconstructioner.h" - AliEMCALReconstructioner a("galice.root") ; //first -single file default reconstruction - a.ExecuteTask() ; +void Go(TString deb = ""){ + AliEMCALReconstructioner * a ; + + cout << "AliEMCAL:> Single File default reconstruction started" << endl ; + a = new AliEMCALReconstructioner("galice.root") ; //first -single file default reconstruction + a->ExecuteTask(deb.Data()) ; cout << "AliEMCAL:> Single File default reconstruction finished" << endl ; - + // delete a ; + cout << "AliEMCAL:> Single File branch TEST reconstruction started" << endl ; - AliEMCALReconstructioner a("galice.root","test") ; //another branch single file recontruction - a.ExecuteTask() ; + a = new AliEMCALReconstructioner("galice.root","test") ; //another branch single file recontruction + a->ExecuteTask(deb.Data()) ; cout << "AliEMCAL:> Single File branch TEST reconstruction ended" << endl ; + //delete a ; cout << "AliEMCAL:> Split File default reconstruction started" << endl ; - AliEMCALReconstructioner a("galice.root","Default",kTRUE) ; //Split file default reconstruction - a.ExecuteTask() ; + a = new AliEMCALReconstructioner("galice.root","Default",kTRUE) ; //Split file default reconstruction + a->ExecuteTask(deb.Data()) ; cout << "AliEMCAL:> Split File default reconstruction ended" << endl ; - + //delete a ; + cout << "--------AliEMCAL:> Reconstruction OK------------------"<< endl ; - } diff --git a/PHOS/AliPHOSAnalyseTest.C b/PHOS/AliPHOSAnalyseTest.C index 99bd22602aa..62188836766 100644 --- a/PHOS/AliPHOSAnalyseTest.C +++ b/PHOS/AliPHOSAnalyseTest.C @@ -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 + +#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 ; + } diff --git a/PHOS/AliPHOSReconstructionTest.C b/PHOS/AliPHOSReconstructionTest.C index 8807b02743f..1bc0278c90d 100644 --- a/PHOS/AliPHOSReconstructionTest.C +++ b/PHOS/AliPHOSReconstructionTest.C @@ -1,16 +1,29 @@ -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 ; +#include +#include "TString.h" + +#include "PHOS/AliPHOSReconstructioner.h" + +void Go(TString deb = ""){ + AliPHOSReconstructioner * a ; + + cout << "AliPHOS:> Single File default reconstruction started" << endl ; + a = new AliPHOSReconstructioner("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 AliPHOSReconstructioner("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 AliPHOSReconstructioner("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 ; } -- 2.39.3