AliPhysics  vAN-20150427 (e6e7aad)
 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);
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 
102  void SetTrackCuts(Int_t index) { SETBIT(fTrackCutsMap, index); }
107  void SetMatchedClusterIndex(Int_t index) { fClusterIndex = index; }
112  void SetMatchedParticleIndex(Int_t index) { fParticleIndex = index; }
113 
118  void SetGoodTrackLabel(Bool_t isGood) { fGoodMCTrack = isGood; }
123  void SetTPCClusters(Int_t nclusters) { fClustersTPC = nclusters; }
128  void SetTPCCrossedRows(Int_t crossedRows) { fCrossedRowsTPC = crossedRows; }
133  void SetTPCSharedClusters(Int_t nshared) { fSharedClustersTPC = nshared; }
138  void SetTPCFindableClusters(Int_t nfindable) { fFindableClustersTPC = nfindable; }
139 
140 
141 protected:
142  Double_t fPVec[3];
143  Long_t fTrackCutsMap;
146  Bool_t fGoodMCTrack;
147  Char_t fClustersTPC;
151 
153  ClassDef(AliReducedReconstructedTrack, 1);
155 };
156 
157 } /* namespace HighPtTracks */
158 
159 #endif /* ALIREDUCEDRECONSTRUCTEDTRACK_H */
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.