AliPhysics  a0db429 (a0db429)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
AliReducedReconstructedTrack.h
Go to the documentation of this file.
1 
8 #ifndef ALIREDUCEDRECONSTRUCTEDTRACK_H
9 #define ALIREDUCEDRECONSTRUCTEDTRACK_H
10 /* Copyright(c) 1998-2015, ALICE Experiment at CERN, All rights reserved. *
11  * See cxx source for full Copyright notice */
12 
13 #include <TObject.h>
14 
15 class TArrayI;
16 class TList;
17 class TVector3;
18 
33 namespace HighPtTracks {
34 
39 class AliReducedReconstructedTrack: public TObject {
40 public:
43 
44  void FillMomentumVector(TVector3 &pvec) const;
51  void SetMomentumVector(Double_t px, Double_t py, Double_t pz){
52  fPVec[0] = px;
53  fPVec[1] = py;
54  fPVec[2] = pz;
55  }
56 
57  Double_t GetPx() const { return fPVec[0]; }
58  Double_t GetPy() const { return fPVec[1]; }
59  Double_t GetPz() const { return fPVec[2]; }
60 
66  Bool_t TestTrackCuts(Int_t index) { return TESTBIT(fTrackCutsMap, index); }
71  Int_t GetClusterIndex() const { return fClusterIndex; }
76  Int_t GetMatchedParticleIndex() const { return fParticleIndex; }
81  Bool_t IsGoodTrack() const {return fGoodMCTrack; }
86  Int_t GetNumberOfTPCClusters() const { return fClustersTPC; }
91  Int_t GetNumberOfTPCCrossedRows() const { return fCrossedRowsTPC; }
102 
103  Double_t Pt() const;
104  Double_t Eta() const;
105  Double_t Phi() const;
106 
113  void GetMomentumVector(Double_t &px, Double_t &py, Double_t &pz) const {
114  px = fPVec[0];
115  py = fPVec[1];
116  pz = fPVec[2];
117  }
118 
123  Char_t Charge() const { return fCharge; }
124 
129  void SetTrackCuts(Int_t index) { SETBIT(fTrackCutsMap, index); }
134  void SetMatchedClusterIndex(Int_t index) { fClusterIndex = index; }
139  void SetMatchedParticleIndex(Int_t index) { fParticleIndex = index; }
140 
145  void SetGoodTrackLabel(Bool_t isGood) { fGoodMCTrack = isGood; }
150  void SetTPCClusters(Int_t nclusters) { fClustersTPC = nclusters; }
155  void SetTPCCrossedRows(Int_t crossedRows) { fCrossedRowsTPC = crossedRows; }
160  void SetTPCSharedClusters(Int_t nshared) { fSharedClustersTPC = nshared; }
165  void SetTPCFindableClusters(Int_t nfindable) { fFindableClustersTPC = nfindable; }
170  void SetCharge(Char_t charge) { fCharge = charge; }
171 
172 
173 protected:
174  Double_t fPVec[3];
175  Char_t fCharge;
176  Long_t fTrackCutsMap;
179  Bool_t fGoodMCTrack;
180  Char_t fClustersTPC;
184 
186  ClassDef(AliReducedReconstructedTrack, 2);
188 };
189 
190 } /* namespace HighPtTracks */
191 
192 #endif /* ALIREDUCEDRECONSTRUCTEDTRACK_H */
Int_t charge
Int_t fClusterIndex
Index of cluster matched to the track.
Char_t fCrossedRowsTPC
Number of TPC crossed rows.
Bool_t fGoodMCTrack
Mark track as good (according to the track label)
void GetMomentumVector(Double_t &px, Double_t &py, Double_t &pz) const
Double_t fPVec[3]
Momentum vector of the particle.
void SetMomentumVector(Double_t px, Double_t py, Double_t pz)
Char_t fSharedClustersTPC
Number of shared clusters in the TPC.
Structure for reconstructed track information.
Int_t fParticleIndex
Index of true particle matched to this track.
Char_t fFindableClustersTPC
Number of findable clusters in the TPC.