]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/TestSPD.C
Bringing the OB geometry up to date. Macros to produce material budget plots. General...
[u/mrichter/AliRoot.git] / ITS / TestSPD.C
1 Int_t TestSPD(Int_t n = 10,Char_t SlowOrFast='s'){
2    
3    AliLoader::SetDebug(kTRUE);//set it to kTRUE for debug print-out
4    gAlice->SetDebug(100);
5    /**********************************************/
6    /************ G E N E R A T I O N *************/
7    /**********************************************/
8       
9    gROOT->LoadMacro("$(ALICE_ROOT)/macros/grun.C");
10    grun(n,"$(ALICE_ROOT)/ITS/ConfigSPD02.C");
11
12   
13    /**********************************************/
14    /******************* I T S ********************/
15    /**********************************************/
16    //The following part is just core of AliITStestV2.C
17    if (SlowOrFast=='f') {
18       cerr<<"Fast AliITSRecPoint(s) !\n";
19       gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2FastRecPoints.C");
20       AliITSHits2FastRecPoints();
21    } else {
22       cerr<<"Slow AliITSRecPoint(s) !\n";
23       gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2SDigits.C");
24       AliITSHits2SDigits();
25       gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSSDigits2Digits.C");
26       AliITSSDigits2Digits();
27       gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSDigits2RecPoints.C");
28       AliITSDigits2RecPoints();
29    }
30         // The following may not work properly.
31 //   gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClustersV2.C");
32 //   if (rc=AliITSFindClustersV2(SlowOrFast)) return rc;
33
34 //   gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindTracksV2.C");
35 //   if (rc=AliITSFindTracksV2()) return rc;
36
37    ::Info("NewIO test","Everything seems to be OK");   
38    ::Info("NewIO test","You can try now display.C");
39 }