1 /****************************************************************************
2 * Origin: I.Belikov, CERN, Jouri.Belikov@cern.ch *
3 ****************************************************************************/
7 #include "AliTPCtracker.h"
10 #include "TStopwatch.h"
13 Int_t AliTPCPropagateBack() {
14 cerr<<"Propagating tracks back through the TPC...\n";
16 TFile *in=TFile::Open("AliTPCtracks.root");
18 cerr<<"Can't open AliTPCtracks.root !\n";
21 TFile *out=TFile::Open("AliTPCBackTracks.root","new");
23 cerr<<"Delete old AliTPCBackTracks.root !\n"; return 2;
25 TFile *file=TFile::Open("AliTPCclusters.root");
26 if (!file->IsOpen()) {
27 cerr<<"Can't open AliTPCclusters.root !\n";return 3;
29 AliTPCParam *param=(AliTPCParam*)file->Get("75x40_100x60_150x60");
30 if (!param) {cerr<<"Can't get TPC parameters !\n"; return 4;}
33 AliTPCtracker *tracker=new AliTPCtracker(param);
34 Int_t rc=tracker->PropagateBack(in,out);
36 timer.Stop(); timer.Print();