3 #include "AliITSgeom.h"
4 #include "AliITStrackerV2.h"
7 #include "TStopwatch.h"
10 Int_t AliITSFindTracksV2() {
11 cerr<<"Looking for tracks...\n";
13 TFile *out=TFile::Open("AliITStracksV2.root","new");
14 if (!out->IsOpen()) {cerr<<"Delete old AliITStracksV2.root !\n"; return 1;}
16 TFile *in=TFile::Open("AliTPCtracks.root");
17 if (!in->IsOpen()) {cerr<<"Can't open AliTPCtracks.root !\n"; return 2;}
19 TFile *file=TFile::Open("AliITSclustersV2.root");
20 if (!file->IsOpen()) {cerr<<"Can't open AliITSclustersV2.root !\n";return 3;}
22 AliITSgeom *geom=(AliITSgeom*)file->Get("AliITSgeom");
25 AliITStrackerV2 tracker(geom);
27 //Double_t xyz[]={0.,0.,0.}; tracker.SetVertex(xyz); //primary vertex
28 //Int_t flag[]={1}; //some default flags
29 //flag[0]= 0; tracker.SetupFirstPass(flag); //no constraint
30 //flag[0]=-1; tracker.SetupSecondPass(flag); //skip second pass
32 Int_t rc=tracker.Clusters2Tracks(in,out);
33 timer.Stop(); timer.Print();
35 delete geom; //Thanks to Mariana Bondila