Made more robust
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALAnalyseTest.C
CommitLineData
d8d3b5b8 1#if !defined(__CINT__) || defined(__MAKECINT__)
8e6be4ca 2#include <iostream>
3
4#include "EMCAL/AliEMCALGetter.h"
d8d3b5b8 5#endif
8e6be4ca 6
7
8void Go(){
6ddf6724 9
10 cout << "AliEMCAL:> Single File default reconstruction analysing" << endl ;
11
12 AliEMCALGetter* gime=AliEMCALGetter::GetInstance("galice.root") ;
13 gime->Event(0,"SDR") ;
14
15 if((gime->TowerRecPoints()==0)||(gime->TowerRecPoints()->At(0)==0)){
16 cout << " No TowerRecPoint !!!!! " << endl ;
17 }
18
8e6be4ca 19 if((gime->PreShowerRecPoints()==0)||(gime->PreShowerRecPoints()->At(0)==0)){
20 cout << " No PreShowerRecPoint !!!!! " << endl ;
6ddf6724 21 }
22
23// if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){
24// cout << " No TrackSegments !!!! " << endl ;
25// }
26
27// if((gime->RecParticles()==0)||(gime->RecParticles()->At(0)==0)){
28// cout << " No RecParticles !!!!! " << endl ;
29// }
30
31 cout << "AliEMCAL:> Single File default analysing finished" << endl ;
32
33
34 cout << "AliEMCAL:> Single File branch TEST analyzing started" << endl ;
35
36 gime=AliEMCALGetter::GetInstance("galice.root","test") ;
37 gime->Event(0,"SDR") ;
38
39 if((gime->TowerRecPoints()==0)||(gime->TowerRecPoints()->At(0)==0)){
40 cout << "No TowerRecPoint " << endl ;
41 }
42
43 if((gime->PreShowerRecPoints()==0)||(gime->PreShowerRecPoints()->At(0)==0)){
8e6be4ca 44 cout << "No PreShowerRecPoint " << endl ;
6ddf6724 45 }
46
47// if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){
48// cout << "No TrackSegments " << endl ;
49// }
50
51// if((gime->RecParticles()==0)||(gime->RecParticles()->At(0)==0)){
52// cout << "No RecParticles " << endl ;
53// }
54
55 cout << "AliEMCAL:> Single File branch TEST reconstruction ended" << endl ;
56
57
58 cout << "AliEMCAL:> Split File default reconstruction started" << endl ;
59
60 gime=AliEMCALGetter::GetInstance("galice.root","Default",kTRUE) ;
61 gime->Event(0,"SDR") ;
62
63 if((gime->TowerRecPoints()==0)||(gime->TowerRecPoints()->At(0)==0)){
64 cout << "No TowerRecPoint " << endl ;
65 }
66 if((gime->PreShowerRecPoints()==0)||(gime->PreShowerRecPoints()->At(0)==0)){
67 cout << "No PreShowerRecPoint " << endl ;
68 }
69
70 // if((gime->TrackSegments()==0)||(gime->TrackSegments()->At(0)==0)){
71// cout << "No TrackSegments " << endl ;
72// }
73
74// if((gime->RecParticles()==0)||(gime->RecParticles()->At(0)==0)){
75// cout << "No RecParticles " << endl ;
76// }
77
78 cout << "AliEMCAL:> Split File default reconstruction ended" << endl ;
79
80 cout << "--------AliEMCAL:> Reconstruction OK------------------"<< endl ;
81
82}