]>
Commit | Line | Data |
---|---|---|
53c17fbf | 1 | #ifndef ALITRDTRACKLET_H |
2 | #define ALITRDTRACKLET_H | |
3 | ||
4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
5 | * See cxx source for full Copyright notice */ | |
6 | ||
15ed8ba1 | 7 | /* $Id$ */ |
8 | ||
53c17fbf | 9 | #include <TObject.h> |
10 | ||
15ed8ba1 | 11 | //////////////////////////////////////////////////////////////////////////// |
12 | // // | |
13 | // A TRD tracklet // | |
14 | // // | |
15 | //////////////////////////////////////////////////////////////////////////// | |
16 | ||
53c17fbf | 17 | class AliTRDtracklet : public TObject { |
18 | ||
53c17fbf | 19 | public: |
20 | ||
21 | AliTRDtracklet(); | |
15ed8ba1 | 22 | virtual ~AliTRDtracklet(); |
53c17fbf | 23 | |
31afd4e7 | 24 | void Set(Float_t x, Float_t y, Float_t z, Float_t alpha, Float_t error2) |
25 | { fX = x; | |
26 | fY = y; | |
27 | fZ = z; | |
28 | fAlpha = alpha; | |
29 | fSigma2 = error2; } | |
15ed8ba1 | 30 | void SetP0(Float_t p0) { fP0 = p0; } |
31 | void SetP1(Float_t p1) { fP1 = p1; } | |
32 | void SetN(Int_t n) { fNFound = n; } | |
33 | void SetNCross(Int_t nc) { fNCross = nc; } | |
34 | void SetPlane(Int_t plane) { fPlane = plane; } | |
35 | void SetSigma2(Float_t sigma2) { fExpectedSigma2 = sigma2; } | |
36 | void SetChi2(Float_t chi2) { fChi2 = chi2; } | |
37 | void SetTilt(Float_t tilt) { fTilt = tilt; } | |
38 | void SetMaxPos(Short_t pos, Short_t pos4, Short_t pos5) | |
39 | { fMaxPos = pos; | |
40 | fMaxPos4 = pos4; | |
41 | fMaxPos5 = pos5; } | |
53c17fbf | 42 | |
15ed8ba1 | 43 | Float_t GetX() const { return fX; } |
44 | Float_t GetY() const { return fY; } | |
45 | Float_t GetZ() const { return fZ; } | |
46 | Float_t GetAlpha() const { return fAlpha; } | |
47 | Float_t GetTrackletSigma2() const { return fSigma2; } | |
48 | Float_t GetP0() const { return fP0; } | |
49 | Float_t GetP1() const { return fP1; } | |
50 | Int_t GetN() const { return fNFound; } | |
51 | Int_t GetNCross() const { return fNCross; } | |
52 | Int_t GetPlane() const { return fPlane; } | |
53 | Float_t GetClusterSigma2() const { return fExpectedSigma2; } | |
54 | Float_t GetChi2() const { return fChi2; } | |
55 | Float_t GetTilt() const { return fTilt; } | |
53c17fbf | 56 | |
57 | protected: | |
58 | ||
15ed8ba1 | 59 | Float_t fY; // Y position |
60 | Float_t fZ; // Z position | |
61 | Float_t fX; // X position | |
62 | Float_t fAlpha; // Rotation angle | |
63 | Float_t fSigma2; // Expected error of tracklet position | |
64 | Float_t fP0; // Offset in y | |
65 | Float_t fP1; // Offset in tangent | |
66 | Int_t fNFound; // Number of found clusters | |
67 | Int_t fNCross; // Number of crosses | |
68 | Int_t fPlane; // Plane number | |
69 | Float_t fExpectedSigma2; // Expected sigma of residual distribution of clusters | |
70 | Float_t fChi2; // Chi2 of the tracklet | |
71 | Float_t fTilt; // Tilt factor | |
72 | Short_t fMaxPos; // Time bin with max charge | |
73 | Short_t fMaxPos4; // Time bin with max charge | |
74 | Short_t fMaxPos5; // Time bin with max charge | |
53c17fbf | 75 | |
15ed8ba1 | 76 | ClassDef(AliTRDtracklet,2) // The TRD tracklet in one ROC |
53c17fbf | 77 | |
78 | }; | |
79 | ||
80 | #endif |