]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSFindTracksV2.C
Updated version of the Bari code to work with the HEAD. A new test macros has also...
[u/mrichter/AliRoot.git] / ITS / AliITSFindTracksV2.C
CommitLineData
006b5f7f 1#ifndef __CINT__
14825d5a 2 #include <iostream.h>
006b5f7f 3 #include "AliITStrackerV2.h"
4
5 #include "TFile.h"
6 #include "TStopwatch.h"
7#endif
8
9Int_t AliITSFindTracksV2() {
10 cerr<<"Looking for tracks...\n";
11
12 TFile *out=TFile::Open("AliITStracksV2.root","new");
13 if (!out->IsOpen()) {cerr<<"Delete old AliITStracksV2.root !\n"; return 1;}
14
15 TFile *in=TFile::Open("AliTPCtracks.root");
16 if (!in->IsOpen()) {cerr<<"Can't open AliTPCtracks.root !\n"; return 2;}
17
18 TFile *file=TFile::Open("AliITSclustersV2.root");
19 if (!file->IsOpen()) {cerr<<"Can't open AliITSclustersV2.root !\n";return 3;}
20
21 AliITSgeom *geom=(AliITSgeom*)file->Get("AliITSgeom");
22
23 TStopwatch timer;
24 AliITStrackerV2 tracker(geom);
25 Int_t rc=tracker.Clusters2Tracks(in,out);
26 timer.Stop(); timer.Print();
27
28 file->Close();
29 in->Close();
30 out->Close();
31
32 return rc;
33}