]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - PHOS/AliPHOSAnalyseTest.C
Algorithm corrected
[u/mrichter/AliRoot.git] / PHOS / AliPHOSAnalyseTest.C
... / ...
CommitLineData
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)){
10 cout << " No EmcRecPoint !!!!! " << endl ;
11 }
12 if((gime->CpvRecPoints()==0)||(gime->CpvRecPoints()->At(0)==0)){
13 cout << " No CpvRecPoint !!!!! " << endl ;
14 }
15 if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){
16 cout << " No TrackSegments !!!! " << endl ;
17 }
18 if((gime->RecParticles()==0)||(gime->RecParticles()->At(0)==0)){
19 cout << " No RecParticles !!!!! " << endl ;
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)){
28 cout << "No EmcRecPoint " << endl ;
29 }
30 if((gime->CpvRecPoints()==0)||(gime->CpvRecPoints()->At(0)==0)){
31 cout << "No CpvRecPoint " << endl ;
32 }
33 if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){
34 cout << "No TrackSegments " << endl ;
35 }
36 if((gime->RecParticles()==0)||(gime->RecParticles()->At(0)==0)){
37 cout << "No RecParticles " << endl ;
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)){
46 cout << "No EmcRecPoint " << endl ;
47 }
48 if((gime->CpvRecPoints()==0)||(gime->CpvRecPoints()->At(0)==0)){
49 cout << "No CpvRecPoint " << endl ;
50 }
51 if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){
52 cout << "No TrackSegments " << endl ;
53 }
54 if((gime->RecParticles()==0)||(gime->RecParticles()->At(0)==0)){
55 cout << "No RecParticles " << endl ;
56 }
57 cout << "AliPHOS:> Split File default reconstruction ended" << endl ;
58 cout << "--------AliPHOS:> Reconstruction OK------------------"<< endl ;
59
60}