AliPhysics  a60a912 (a60a912)
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 
40 public:
43 
44  void FillMomentumVector(TVector3 &pvec) const;
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; }
81  Bool_t IsGoodTrack() const {return fGoodMCTrack; }
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; }
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; }
171 
172 
173 protected:
176  Long_t fTrackCutsMap;
184 
186  ClassDef(AliReducedReconstructedTrack, 2);
188 };
189 
190 } /* namespace HighPtTracks */
191 
192 #endif /* ALIREDUCEDRECONSTRUCTEDTRACK_H */
Int_t charge
double Double_t
Definition: External.C:58
char Char_t
Definition: External.C:18
int Int_t
Definition: External.C:63
Int_t fClusterIndex
Index of cluster matched to the track.
Namespace for classes creating trees of events with jets.
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.
bool Bool_t
Definition: External.C:53
Char_t fFindableClustersTPC
Number of findable clusters in the TPC.