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