]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSPropagateBackV2.C
Changes towards a concept of global Alice track. Back propagation of reconstructed...
[u/mrichter/AliRoot.git] / ITS / AliITSPropagateBackV2.C
1 #ifndef __CINT__
2   #include <iostream.h>
3   #include "AliITStrackerV2.h"
4
5   #include "TFile.h"
6   #include "TStopwatch.h"
7 #endif
8
9 Int_t AliITSPropagateBackV2() {
10    cerr<<"Propagating tracks back through the ITS...\n";
11
12    TFile *in=TFile::Open("AliITStracksV2.root");
13    if (!in->IsOpen()) {cerr<<"Can't open AliITStracksV2.root !\n"; return 1;}
14
15    TFile *out=TFile::Open("AliTPCtracks.root","update");
16    if (!out->IsOpen()) {
17       cerr<<"Can't open AliTPCtracks.root !\n"; return 2;
18    }
19    TFile *file=TFile::Open("AliITSclustersV2.root");
20    if (!file->IsOpen()) {
21       cerr<<"Can't open AliITSclustersV2.root !\n";return 3;
22    }
23    AliITSgeom *geom=(AliITSgeom*)file->Get("AliITSgeom");
24
25    TStopwatch timer;
26    AliITStrackerV2 tracker(geom);
27    Int_t rc=tracker.PropagateBack(in,out);
28    timer.Stop(); timer.Print();
29
30    file->Close();
31    in->Close();
32    out->Close();
33
34    return rc;
35 }