Updating limits to cope both with p-A and A-p ZDC timing
[u/mrichter/AliRoot.git] / PHOS / AliPHOSAnalyseTest.C
CommitLineData
8e6be4ca 1#include <iostream>
2
3#include "AliPHOSGetter.h"
4
5void Go(){
6 cout << "AliPHOS:> Single File default reconstruction analysing" << endl ;
7 AliPHOSGetter* gime=AliPHOSGetter::GetInstance("galice.root") ;
8 gime->Event(0,"SDR") ;
9 if((gime->EmcRecPoints()==0)||(gime->EmcRecPoints()->At(0)==0)){
8cfb382b 10 cout << " No EmcRecPoint !!!!! " << endl ;
8e6be4ca 11 }
12 if((gime->CpvRecPoints()==0)||(gime->CpvRecPoints()->At(0)==0)){
8cfb382b 13 cout << " No CpvRecPoint !!!!! " << endl ;
8e6be4ca 14 }
15 if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){
8cfb382b 16 cout << " No TrackSegments !!!! " << endl ;
8e6be4ca 17 }
18 if((gime->RecParticles()==0)||(gime->RecParticles()->At(0)==0)){
8cfb382b 19 cout << " No RecParticles !!!!! " << endl ;
8e6be4ca 20 }
21 cout << "AliPHOS:> Single File default analysing finished" << endl ;
22
23
24 cout << "AliPHOS:> Single File branch TEST analyzing started" << endl ;
25 gime=AliPHOSGetter::GetInstance("galice.root","test") ;
26 gime->Event(0,"SDR") ;
27 if((gime->EmcRecPoints()==0)||(gime->EmcRecPoints()->At(0)==0)){
8cfb382b 28 cout << "No EmcRecPoint " << endl ;
8e6be4ca 29 }
30 if((gime->CpvRecPoints()==0)||(gime->CpvRecPoints()->At(0)==0)){
8cfb382b 31 cout << "No CpvRecPoint " << endl ;
8e6be4ca 32 }
33 if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){
8cfb382b 34 cout << "No TrackSegments " << endl ;
8e6be4ca 35 }
36 if((gime->RecParticles()==0)||(gime->RecParticles()->At(0)==0)){
8cfb382b 37 cout << "No RecParticles " << endl ;
8e6be4ca 38 }
39 cout << "AliPHOS:> Single File branch TEST reconstruction ended" << endl ;
40
41
42 cout << "AliPHOS:> Split File default reconstruction started" << endl ;
43 gime=AliPHOSGetter::GetInstance("galice.root","Default",kTRUE) ;
44 gime->Event(0,"SDR") ;
45 if((gime->EmcRecPoints()==0)||(gime->EmcRecPoints()->At(0)==0)){
8cfb382b 46 cout << "No EmcRecPoint " << endl ;
8e6be4ca 47 }
48 if((gime->CpvRecPoints()==0)||(gime->CpvRecPoints()->At(0)==0)){
8cfb382b 49 cout << "No CpvRecPoint " << endl ;
8e6be4ca 50 }
51 if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){
8cfb382b 52 cout << "No TrackSegments " << endl ;
8e6be4ca 53 }
54 if((gime->RecParticles()==0)||(gime->RecParticles()->At(0)==0)){
8cfb382b 55 cout << "No RecParticles " << endl ;
8e6be4ca 56 }
57 cout << "AliPHOS:> Split File default reconstruction ended" << endl ;
58 cout << "--------AliPHOS:> Reconstruction OK------------------"<< endl ;
59
8cfb382b 60}