AliPhysics  v5-06-24-01 (8abab03)
 All Classes Namespaces Files Functions Variables 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  }
61  Bool_t TestTrackCuts(Int_t index) { return TESTBIT(fTrackCutsMap, index); }
66  Int_t GetClusterIndex() const { return fClusterIndex; }
71  Int_t GetMatchedParticleIndex() const { return fParticleIndex; }
76  Bool_t IsGoodTrack() const {return fGoodMCTrack; }
81  Int_t GetNumberOfTPCClusters() const { return fClustersTPC; }
86  Int_t GetNumberOfTPCCrossedRows() const { return fCrossedRowsTPC; }
97 
98  Double_t Pt() const;
99  Double_t Eta() const;
100  Double_t Phi() const;
101 
106  Char_t Charge() const { return fCharge; }
107 
112  void SetTrackCuts(Int_t index) { SETBIT(fTrackCutsMap, index); }
117  void SetMatchedClusterIndex(Int_t index) { fClusterIndex = index; }
122  void SetMatchedParticleIndex(Int_t index) { fParticleIndex = index; }
123 
128  void SetGoodTrackLabel(Bool_t isGood) { fGoodMCTrack = isGood; }
133  void SetTPCClusters(Int_t nclusters) { fClustersTPC = nclusters; }
138  void SetTPCCrossedRows(Int_t crossedRows) { fCrossedRowsTPC = crossedRows; }
143  void SetTPCSharedClusters(Int_t nshared) { fSharedClustersTPC = nshared; }
148  void SetTPCFindableClusters(Int_t nfindable) { fFindableClustersTPC = nfindable; }
153  void SetCharge(Char_t charge) { fCharge = charge; }
154 
155 
156 protected:
157  Double_t fPVec[3];
158  Char_t fCharge;
159  Long_t fTrackCutsMap;
162  Bool_t fGoodMCTrack;
163  Char_t fClustersTPC;
167 
169  ClassDef(AliReducedReconstructedTrack, 2);
171 };
172 
173 } /* namespace HighPtTracks */
174 
175 #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)
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.