]>
Commit | Line | Data |
---|---|---|
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 | ||
9 | Int_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 | } |