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