3 #include "AliITSgeom.h"
4 #include "AliITStrackerV2.h"
7 #include "TStopwatch.h"
10 Int_t AliITSPropagateBackV2(Int_t nev=1) {
11 cerr<<"Propagating tracks back through the ITS...\n";
13 TFile *in=TFile::Open("AliITStracksV2.root");
14 if (!in->IsOpen()) {cerr<<"Can't open AliITStracksV2.root !\n"; return 1;}
16 TFile *out=TFile::Open("AliTPCtracks.root","update");
18 cerr<<"Can't open AliTPCtracks.root !\n"; return 2;
20 TFile *file=TFile::Open("AliITSclustersV2.root");
21 if (!file->IsOpen()) {
22 cerr<<"Can't open AliITSclustersV2.root !\n";return 3;
24 AliITSgeom *geom=(AliITSgeom*)file->Get("AliITSgeom");
28 AliITStrackerV2 tracker(geom);
29 for (Int_t i=0; i<nev; i++) {
30 cerr<<"Processing event number : "<<i<<endl;
31 tracker.SetEventNumber(i);
32 rc=tracker.PropagateBack(in,out);
34 timer.Stop(); timer.Print();