Using VZERO v6
[u/mrichter/AliRoot.git] / macros / TestNewIO.C
CommitLineData
88cb7938 1Int_t TestNewIO(Int_t n = 5,Char_t SlowOrFast='s')
2{
3 Int_t rc=0;
4
b03cb1f2 5 // Debug and log level
6 AliLog::SetGlobalDebugLevel(10);
7 AliLog::SetGlobalLogLevel(10);
8
88cb7938 9 /**********************************************/
10 /************ G E N E R A T I O N *************/
11 /**********************************************/
12
13 gROOT->LoadMacro("$(ALICE_ROOT)/macros/grun.C");
14 grun(n);
15
16
17 /**********************************************/
18 /******************* T P C ********************/
19 /**********************************************/
20 //The following part is just core of AliTPCtest.C
21
22 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCHits2SDigits.C");
23 if (rc=AliTPCHits2SDigits(n)) return rc;
24
25 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCSDigits2Digits.C");
26 if (rc=AliTPCSDigits2Digits(n)) return rc;
27
28 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCFindClusters.C");
29 if (rc=AliTPCFindClusters(n)) return rc;
30
31 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCFindTracks.C");
32 if (rc=AliTPCFindTracks(n)) return rc;
33
34 /**********************************************/
35 /******************* I T S ********************/
36 /**********************************************/
37 //The following part is just core of AliITStestV2.C
38 if (SlowOrFast=='f') {
39 cerr<<"Fast AliITSRecPoint(s) !\n";
40 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2FastRecPoints.C");
41 AliITSHits2FastRecPoints();
42 } else {
43 cerr<<"Slow AliITSRecPoint(s) !\n";
44 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2SDigits.C");
45 AliITSHits2SDigits();
46 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSSDigits2Digits.C");
47 AliITSSDigits2Digits();
48 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSDigits2RecPoints.C");
49 AliITSDigits2RecPoints();
50 }
51 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClustersV2.C");
52 if (rc=AliITSFindClustersV2(SlowOrFast)) return rc;
53
54 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindTracksV2.C");
55 if (rc=AliITSFindTracksV2()) return rc;
56
57
58 /**********************************************/
59 /****************** P H O S *******************/
60 /**********************************************/
61
62 if (gAlice)
63 {
64 delete gAlice->GetRunLoader();
65 delete gAlice;//if everything was OK here it is already NULL
66 gAlice = 0x0;
67 }
68 AliRunLoader* rl =AliRunLoader::Open("galice.root","EVENTFOLDER");
69 AliPHOSReconstructioner r("EVENTFOLDER");
70 r.ExecuteTask("deb");
71 delete rl;
72
73 gROOT->LoadMacro("$(ALICE_ROOT)/TPC/AliTPCComparison.C");
74 if (rc=AliTPCComparison()) return rc;
75
76 gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSComparisonV2.C");
77 if (rc=AliITSComparisonV2()) return rc;
78
79
80
81 ::Info("NewIO test","Everything seems to be OK");
82 ::Info("NewIO test","You can try now display.C and TPC/AliTPCDisplayDigits3Dnew.C");
83}