]>
Commit | Line | Data |
---|---|---|
108615fc | 1 | #ifndef ALIL3TRACK_H |
2 | #define ALIL3TRACK_H | |
3 | ||
4 | #include <string.h> | |
5 | ||
6 | #include "AliL3RootTypes.h" | |
7 | ||
8 | class AliL3Track { | |
9 | ||
10 | private: | |
11 | ||
12 | Int_t fNHits; | |
13 | ||
14 | Int_t fMCid; //Assigned id from MC data. | |
15 | Double_t fKappa; // Curvature | |
16 | Double_t fRadius; // Radius of the helix (projected to a circle) | |
17 | Double_t fCenterX; // x coordinate of the center of the helix (projected to a circle) | |
18 | Double_t fCenterY; // y coordinate of the center of the helix (projected to a circle) | |
19 | Bool_t fFromMainVertex; // true if tracks origin is the main vertex, otherwise false | |
20 | ||
21 | Int_t fRowRange[2]; //Subsector where this track was build | |
22 | Int_t fSector; //Sector # where this track was build | |
23 | ||
24 | //data from momentum fit | |
25 | Int_t fQ; //charge measured fit | |
26 | ||
27 | //track parameters: | |
28 | Double_t fPhi0; //azimuthal angle of the first point | |
29 | Double_t fPsi; //azimuthal angle of the momentum | |
30 | Double_t fR0; //radius of the first point | |
31 | Double_t fTanl; //tan of dipangle at (r,phi,z) | |
32 | Double_t fZ0; //z coordinate of the first point | |
33 | Double_t fPt; //transverse momentum | |
34 | Double_t fLength; | |
35 | ||
36 | Double_t fPterr; | |
37 | Double_t fPsierr; | |
38 | Double_t fZ0err; | |
39 | Double_t fTanlerr; | |
40 | ||
41 | Double_t fFirstPoint[3]; | |
42 | Double_t fLastPoint[3]; | |
43 | Double_t fPoint[3]; | |
44 | Double_t fPointPsi; //azimuthal angle of the momentum at Point | |
45 | Bool_t fIsPoint; //Helix crosses the X-plane | |
46 | Bool_t IsPoint(Bool_t ispoint) {fIsPoint = ispoint;return fIsPoint;} | |
47 | ||
48 | Bool_t fIsLocal; //Track given in local coordinates. | |
49 | ||
50 | UInt_t fHitNumbers[174]; //Array of hit numbers for this track | |
51 | ||
52 | protected: | |
53 | ||
54 | static Float_t BFACT; | |
55 | static Float_t bField; | |
56 | static Double_t pi; | |
57 | ||
58 | public: | |
59 | ||
60 | AliL3Track(); | |
61 | virtual ~AliL3Track(); | |
62 | ||
63 | virtual void Set(AliL3Track* track); | |
64 | ||
65 | Bool_t CalculateReferencePoint(Double_t angle);//Calculate Reference Point | |
66 | Bool_t CalculateEdgePoint(Double_t angle);//Calculate crossing point with line | |
67 | Bool_t CalculatePoint(Double_t xplane);//Calculate crossing point with X-plane | |
68 | Bool_t IsPoint() {return fIsPoint;} | |
69 | void CalculateHelix(); | |
70 | Double_t GetDistance(Double_t x0,Double_t x1){return 0;} | |
71 | ||
72 | Bool_t IsLocal() {return fIsLocal;} | |
73 | ||
74 | // getter | |
75 | Double_t GetFirstPointX() {return fFirstPoint[0];} | |
76 | Double_t GetFirstPointY() {return fFirstPoint[1];} | |
77 | Double_t GetFirstPointZ() {return fFirstPoint[2];} | |
78 | Double_t GetLastPointX() {return fLastPoint[0];} | |
79 | Double_t GetLastPointY() {return fLastPoint[1];} | |
80 | Double_t GetLastPointZ() {return fLastPoint[2];} | |
81 | ||
82 | Double_t GetPointPsi() {return fPointPsi;} | |
83 | Double_t GetPointX() {return fPoint[0];} | |
84 | Double_t GetPointY() {return fPoint[1];} | |
85 | Double_t GetPointZ() {return fPoint[2];} | |
86 | ||
87 | Double_t GetPt() const {return fPt;} | |
88 | Double_t GetTgl() const {return fTanl;} | |
89 | Double_t GetPhi0() const {return fPhi0;} | |
90 | Double_t GetPsi() const {return fPsi;} | |
91 | Double_t GetR0() const {return fR0;} | |
92 | Double_t GetZ0() const {return fZ0;} | |
93 | ||
94 | Double_t GetKappa() const { return fKappa;} | |
95 | Double_t GetRadius() const { return fRadius;} | |
96 | Double_t GetCenterX() const { return fCenterX;} | |
97 | Double_t GetCenterY() const { return fCenterY;} | |
98 | ||
99 | Int_t GetNHits() {return fNHits;} | |
100 | Int_t GetNumberOfPoints() const {return fNHits;} | |
101 | Bool_t ComesFromMainVertex() const { return fFromMainVertex;} | |
102 | ||
103 | Double_t GetPx() const { return fPt*cos(fPsi);} | |
104 | Double_t GetPy() const { return fPt*sin(fPsi);} | |
105 | Double_t GetPz() const { return fPt*fTanl;} | |
106 | ||
107 | Double_t GetP() const; | |
108 | Double_t GetPseudoRapidity() const; | |
109 | Double_t GetEta() const; | |
110 | Double_t GetRapidity() const; | |
111 | ||
112 | Int_t GetCharge() const { return fQ;} | |
113 | Int_t GetMCid() const {return fMCid;} | |
114 | Double_t GetLength() const {return fLength;} | |
115 | ||
116 | Int_t GetFirstRow() const {return fRowRange[0];} | |
117 | Int_t GetLastRow() const {return fRowRange[1];} | |
118 | ||
119 | UInt_t *GetHitNumbers() {return fHitNumbers;} | |
120 | ||
121 | // setter | |
122 | void SetMCid(Int_t f) {fMCid = f;} | |
123 | void SetFirstPoint(Double_t f,Double_t g,Double_t h) {fFirstPoint[0]=f; fFirstPoint[1]=g; fFirstPoint[2]=h;} | |
124 | void SetLastPoint(Double_t f,Double_t g,Double_t h) {fLastPoint[0]=f; fLastPoint[1]=g; fLastPoint[2]=h;} | |
125 | ||
126 | void SetHits(Int_t nhits,UInt_t *hits) {memcpy(fHitNumbers,hits,nhits*sizeof(UInt_t));} | |
127 | ||
128 | void SetPhi0(Double_t f) {fPhi0 = f;} | |
129 | void SetPsi(Double_t f) {fPsi = f;} | |
130 | void SetR0(Double_t f) {fR0 = f;} | |
131 | void SetTgl(Double_t f) {fTanl =f;} | |
132 | void SetZ0(Double_t f) {fZ0 = f;} | |
133 | void SetPt(Double_t f) {fPt = f;} | |
134 | void SetLength(Double_t f) {fLength = f;} | |
135 | void SetPterr(Double_t f) {fPterr = f;} | |
136 | void SetPsierr(Double_t f) {fPsierr = f;} | |
137 | void SetZ0err(Double_t f) {fZ0err = f;} | |
138 | void SetTglerr(Double_t f) {fTanlerr = f;} | |
139 | void SetKappa(Double_t f) {fKappa = f;} | |
140 | ||
141 | void SetNHits(Int_t f) {fNHits = f;} | |
142 | ||
143 | void SetRowRange(Int_t f,Int_t g) {fRowRange[0]=f; fRowRange[1]=g;} | |
144 | void SetSector(Int_t f) {fSector = f;} | |
145 | ||
146 | void SetRadius(Double_t f) { fRadius = f; } | |
147 | void SetCenterX(Double_t f) { fCenterX = f; } | |
148 | void SetCenterY(Double_t f) { fCenterY = f; } | |
149 | ||
150 | void SetCharge(Int_t f) { fQ = f; } | |
151 | ||
152 | void ComesFromMainVertex(Bool_t f) { fFromMainVertex = f; } | |
153 | ||
154 | ClassDef(AliL3Track,1) //Conformal mapping track class | |
155 | }; | |
156 | ||
157 | #endif | |
158 |