]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFtrack.h
dfd18bc386f732c90c5c14432f33fff9d3b93617
[u/mrichter/AliRoot.git] / TOF / AliTOFtrack.h
1 #ifndef ALITOFTRACK_H
2 #define ALITOFTRACK_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 //----------------------------------------------------------------------------//
8 //                                                                            //
9 //   Description: class for handling ESD extracted tracks for TOF matching.   //
10 //                                                                            //
11 //----------------------------------------------------------------------------//
12
13 #include "TMath.h"
14 #include "TVector2.h"
15
16 #include "AliKalmanTrack.h"
17
18 #include "AliTOFGeometry.h"
19
20 class TObject;
21
22 class AliESDtrack;
23
24 class AliTOFtrack : public AliKalmanTrack {
25
26 public:
27
28    AliTOFtrack();
29    AliTOFtrack(const AliTOFtrack& t);
30    AliTOFtrack(const AliESDtrack& t);
31    AliTOFtrack& operator=(const AliTOFtrack &source); // ass. op.
32
33    Int_t    GetSector() const {
34      return Int_t(TVector2::Phi_0_2pi(GetAlpha())/AliTOFGeometry::GetAlpha())%AliTOFGeometry::NSectors();}
35
36    Int_t    GetSeedLabel() const { return fSeedLab; }
37    Int_t    GetSeedIndex() const { return fSeedInd; }
38    void     SetSeedLabel(Int_t lab) { fSeedLab=lab; }
39    void     SetSeedIndex(Int_t ind) { fSeedInd=ind; }
40   
41    Int_t Compare(const TObject *o) const;
42
43    Double_t GetYat(Double_t xk, Bool_t & skip) const;
44    Bool_t   PropagateTo(Double_t xr, Double_t x0=8.72, Double_t rho=5.86e-3);
45    Bool_t   PropagateToInnerTOF();
46    Bool_t   Rotate(Double_t angle) {
47      return AliExternalTrackParam::Rotate(GetAlpha()+angle);
48    }
49
50 protected:
51    Double_t GetBz() const;
52    Bool_t Update(const AliCluster */*c*/, Double_t /*chi2*/, Int_t /*idx*/) {
53      return 0;
54    }
55    Double_t GetPredictedChi2(const AliCluster */*c*/) const {return 0.;}
56    
57    Int_t    fSeedInd;     // ESD seed track index  
58    Int_t    fSeedLab;     // track label taken from seeding  
59    AliTOFGeometry *fTOFgeometry; // pointer to the TOF geometry
60
61  private:
62
63    void GetPropagationParameters(Double_t *param);
64    
65    ClassDef(AliTOFtrack,1) // TOF reconstructed tracks
66
67 };                     
68
69 #endif