]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDfindTracks.C
Fixed bug in calculating detector no. of extra hit
[u/mrichter/AliRoot.git] / TRD / AliTRDfindTracks.C
1 void AliTRDfindTracks() {
2
3 //////////////////////////////////////////////////////////////////////////
4 //
5 // Reads TRD clusters from file, finds tracks, and stores them in the file 
6 //
7 //////////////////////////////////////////////////////////////////////////
8
9
10   // Dynamically link some shared libs
11   if (gClassTable->GetID("AliRun") < 0) {
12     gROOT->LoadMacro("loadlibs.C");
13     loadlibs();
14     cout << "Loaded shared libraries" << endl;
15   }       
16
17   Char_t *alifile = "AliTRDclusters.root"; 
18
19   cerr<<"got this far"<<endl;
20
21   AliTRDtracker *Tracker =
22     new AliTRDtracker("TheOnlyTRDtrackerSoFar","UniqueVariationOfIt");
23
24
25   Tracker->GetEvent(alifile);
26
27   Int_t inner, outer, delta=60;
28   for(Int_t i=0; i<1; i++) {
29     outer=179-i; inner=outer-delta;
30     Tracker->MakeSeeds(inner,outer);
31   }
32
33   Tracker->FindTracks();
34
35   Tracker->WriteTracks();
36
37
38 }