]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITStestV2.C
Updated code for tracking V2 (from Y. Belikov)
[u/mrichter/AliRoot.git] / ITS / AliITStestV2.C
index 91160ce7dc7e76224bd7369a4174dc7f08948975..afe92577aec9c66298ad83ad2e68127a22fd02bb 100644 (file)
@@ -1,4 +1,4 @@
-Int_t AliITStestV2() {
+Int_t AliITStestV2(Char_t SlowOrFast='s') {
    Int_t rc=0;
 
    if (gAlice) {delete gAlice; gAlice=0;}
@@ -15,6 +15,18 @@ Int_t AliITStestV2() {
    delete gAlice; gAlice=0;
    in->Close();
 
+   if (SlowOrFast=='f') {
+      cerr<<"Fast AliITSRecPoint(s) !\n";
+      gROOT->LoadMacro("$(ALICE_ROOT)/ITS/ITSHitsToFastPoints.C");
+      ITSHitsToFastPoints();
+   } else {
+      cerr<<"Slow AliITSRecPoint(s) !\n";
+      gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSHits2Digits.C");
+      AliITSHits2Digits();
+      gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClusters.C");
+      AliITSFindClusters();
+   }
+
    gROOT->LoadMacro("$(ALICE_ROOT)/ITS/AliITSFindClustersV2.C");
    if (rc=AliITSFindClustersV2()) return rc;