AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMFTCATrack.h
Go to the documentation of this file.
1 #ifndef AliMFTCATrack_H
2 #define AliMFTCATrack_H
3 
4 #include "TObject.h"
5 #include "TClonesArray.h"
6 
7 #include "AliMFTConstants.h"
8 
9 class AliMFTCACell;
10 
11 //_________________________________________________________________________________
12 class AliMFTCATrack : public TObject {
13 
14 public:
15 
16  AliMFTCATrack();
18 
21 
22  virtual void Clear(Option_t *);
23  void AddCell(AliMFTCACell *cell);
24  void SetGID(Int_t gid) { fGID = gid; }
25  const Int_t GetGID() const { return fGID; }
26  const Int_t GetNcells() const { return fNcells; }
27  const Int_t GetCellGID(Int_t ic) const { return fCellGIDarray[ic]; }
28  AliMFTCACell* GetCell(Int_t ic) const { return (AliMFTCACell*)fCells->At(ic); }
29  const Int_t GetLastCellGID() const { return fCellGIDarray[fNcells-1]; }
30  const Int_t GetStartLayer() const { return fStartLayer; }
31  void SetStartLayer(Int_t sl) { fStartLayer = sl; }
32  void SetMCflag(UChar_t mcf) { fMCflag = mcf; }
33  const UChar_t GetMCflag() { return fMCflag; }
34  void SetVertX(Double_t x) { fVertX = x; }
35  void SetVertY(Double_t y) { fVertY = y; }
36  void SetVertZ(Double_t z) { fVertZ = z; }
37  void SetTheta(Double_t the) { fTheta = the; }
38  void SetPhi(Double_t phi) { fPhi = phi; }
39  const Double_t GetVertX() { return fVertX; }
40  const Double_t GetVertY() { return fVertY; }
41  const Double_t GetVertZ() { return fVertZ; }
42  const Double_t GetTheta() { return fTheta; }
43  const Double_t GetPhi() { return fPhi; }
44  void SetChiSqX(Double_t chisq) { fChiSqX = chisq; }
45  void SetChiSqY(Double_t chisq) { fChiSqY = chisq; }
46  const Double_t GetChiSqX() { return fChiSqX; }
47  const Double_t GetChiSqY() { return fChiSqY; }
48  Double_t AddCellToChiSq(AliMFTCACell *cell);
49  void SetMCindex(Int_t index) { fMCindex = index; }
50  const Int_t GetMCindex() { return fMCindex; }
51  void SetChargeSign(Short_t sign) { fChargeSign = sign; }
52  const Short_t GetChargeSign() { return fChargeSign; }
53  void SetCellGID(Int_t index, Int_t gid) { fCellGIDarray[index] = gid; };
54  void EvalSignedPt();
55  const Double_t GetPt() { return fPt; }
56 
57 private:
58  static const Int_t fNDetMax = AliMFTConstants::fNMaxPlanes;
59 
60  Int_t fGID; // Track global identifier
61  Int_t fNcells; // Number of cells in the track
62  Int_t fStartLayer; // Upstream start layer (RunBackward)
63  Int_t fCellGIDarray[fNDetMax]; // Array of cell global identifier
64 
65  TClonesArray *fCells;
66 
67  UChar_t fMCflag; // MC classification of the track:
68  // 0 = default (not set)
69  // 1 = clean
70  // 2 = good
71  // 3 = fake
72  // 4 = noise
73 
74  Double_t fVertX; // x at z vertex [cm]
75  Double_t fVertY; // y at z vertex [cm]
76  Double_t fVertZ; // z vertex [cm]
77  Double_t fTheta; // theta fit [deg]
78  Double_t fPhi; // phi fit [deg]
79  Double_t fChiSqX; // reduced ChiSq en xz
80  Double_t fChiSqY; // reduced ChiSq en yz
81  Int_t fMCindex; // MC track index for clean tracks
82  Short_t fChargeSign; // estimated sign of the charge
83  Double_t fPt ; // Pt evaluated from sagitta measurement
84 
86 
87 };
88 
89 #endif
90 
91 
Double_t fChiSqX
Definition: AliMFTCATrack.h:79
const Double_t GetPhi()
Definition: AliMFTCATrack.h:43
ClassDef(AliMFTCATrack, 2)
void SetChiSqX(Double_t chisq)
Definition: AliMFTCATrack.h:44
const Int_t GetGID() const
Definition: AliMFTCATrack.h:25
const Double_t GetVertZ()
Definition: AliMFTCATrack.h:41
void SetStartLayer(Int_t sl)
Definition: AliMFTCATrack.h:31
void SetChargeSign(Short_t sign)
Definition: AliMFTCATrack.h:51
Int_t fCellGIDarray[fNDetMax]
Definition: AliMFTCATrack.h:63
AliMFTCATrack & operator=(const AliMFTCATrack &)
static const Int_t fNMaxPlanes
const Int_t GetNcells() const
Definition: AliMFTCATrack.h:26
void SetPhi(Double_t phi)
Definition: AliMFTCATrack.h:38
const Double_t GetVertY()
Definition: AliMFTCATrack.h:40
AliTPCfastTrack * track
void SetMCindex(Int_t index)
Definition: AliMFTCATrack.h:49
Double_t fVertY
Definition: AliMFTCATrack.h:75
const Double_t GetPt()
Definition: AliMFTCATrack.h:55
Double_t fPhi
Definition: AliMFTCATrack.h:78
Double_t fPt
Definition: AliMFTCATrack.h:83
void SetMCflag(UChar_t mcf)
Definition: AliMFTCATrack.h:32
TClonesArray * fCells
Definition: AliMFTCATrack.h:65
const Double_t GetTheta()
Definition: AliMFTCATrack.h:42
const Short_t GetChargeSign()
Definition: AliMFTCATrack.h:52
void EvalSignedPt()
Estimate the charge sign.
void SetCellGID(Int_t index, Int_t gid)
Definition: AliMFTCATrack.h:53
void SetVertZ(Double_t z)
Definition: AliMFTCATrack.h:36
Double_t fChiSqY
Definition: AliMFTCATrack.h:80
AliMFTCACell * GetCell(Int_t ic) const
Definition: AliMFTCATrack.h:28
Double_t fTheta
Definition: AliMFTCATrack.h:77
const Double_t GetVertX()
Definition: AliMFTCATrack.h:39
UChar_t fMCflag
Array of cells.
Definition: AliMFTCATrack.h:67
Double_t fVertX
Definition: AliMFTCATrack.h:74
const Int_t GetMCindex()
Definition: AliMFTCATrack.h:50
const Int_t GetStartLayer() const
Definition: AliMFTCATrack.h:30
Double_t AddCellToChiSq(AliMFTCACell *cell)
Short_t fChargeSign
Definition: AliMFTCATrack.h:82
const UChar_t GetMCflag()
Definition: AliMFTCATrack.h:33
static const Int_t fNDetMax
Definition: AliMFTCATrack.h:58
void SetChiSqY(Double_t chisq)
Definition: AliMFTCATrack.h:45
void SetVertY(Double_t y)
Definition: AliMFTCATrack.h:35
const Double_t GetChiSqX()
Definition: AliMFTCATrack.h:46
const Int_t GetCellGID(Int_t ic) const
Definition: AliMFTCATrack.h:27
const Int_t GetLastCellGID() const
Definition: AliMFTCATrack.h:29
Double_t fVertZ
Definition: AliMFTCATrack.h:76
Double_t phi
Definition: AliFMDv1.cxx:88
void AddCell(AliMFTCACell *cell)
void SetGID(Int_t gid)
Definition: AliMFTCATrack.h:24
const Double_t GetChiSqY()
Definition: AliMFTCATrack.h:47
virtual void Clear(Option_t *)
void SetTheta(Double_t the)
Definition: AliMFTCATrack.h:37
void SetVertX(Double_t x)
Definition: AliMFTCATrack.h:34