AliRoot Core  ee782a0 (ee782a0)
AliTPCCombinedTrackfit.h
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  * *
4  * Author: The ALICE Off-line Project. *
5  * Contributors are mentioned in the code where appropriate. *
6  * *
7  * Permission to use, copy, modify and distribute this software and its *
8  * documentation strictly for non-commercial purposes is hereby granted *
9  * without fee, provided that the above copyright notice appears in all *
10  * copies and that both the copyright notice and this permission notice *
11  * appear in the supporting documentation. The authors make no claims *
12  * about the suitability of this software for any purpose. It is *
13  * provided "as is" without express or implied warranty. *
14  **************************************************************************/
15 
86 
87 /*
88 //in [cm]
89 const Double_t _TPCZMIN = -250;
90 const Double_t _TPCZMAX = 250;
91 const Double_t _TPCINR = 84.8;
92 const Double_t _TPCOUR = 246.6;
93 */
94 
95 #ifndef ALITPCCOMBINEDTRACKFIT_H
96 #define ALITPCCOMBINEDTRACKFIT_H
97 
98 class TTreeSRedirector;
99 
101 {
102  public:
103  AliTPCCombinedTrackfit(const Int_t dlev=0, const TString tag="test");
104 
106 
107  Bool_t CombineESDtracks(AliESDtrack * &trk0, AliESDtrack *&trk1);
108  Bool_t CombineTPCseeds(AliTPCseed * &seed0, AliTPCseed *&seed1);
109  void Print() const ;
110  //--------- getters ------------
111 
112  Int_t GetStatus()const{return fStatus;}
113  Int_t GetFitNcls()const{return fFitNcls;}
114  Int_t GetMissNcls()const{return fMissNcls;}
115  Double_t GetChi2PerCluster()const{return fPreChi2;}
116  Double_t GetLeverArm()const {return fLeverArm;}
117  TVector3 GetInnerClusterUp()const {return fInnerClusterUp;}
118  TVector3 GetInnerClusterLow()const {return fInnerClusterLow;}
119  Double_t ImpactParameter() const;
120  Double_t MinPhi()const;
121 
124  AliTPCseed * GetTPCseedUp() const {return fSeedUp;}
125  AliTPCseed * GetTPCseedLow() const {return fSeedLow;}
126 
128 
129  private:
138  };
139 
142 
143  void IniCombineESDtracks();
144  Bool_t GetTPCseeds(const AliESDtrack *trk0, const AliESDtrack *trk1);
145  Bool_t CheckNcls();
146  Bool_t CheckLeverArm();
147  Bool_t AnaSeeds(Bool_t &kswap);
148 
149  void CombineTPCseeds(Bool_t &kswap);
150  void Update();
151 
153  Int_t fDebugLevel;
154 
155  AliTPCseed * fSeedUp;
156  AliTPCseed * fSeedLow;
159 
160  Int_t fStatus;
161 
162  TVector3 fInnerClusterUp;
163  TVector3 fInnerClusterLow;
164  Double_t fLeverArm;
165 
166  Int_t fFitNcls;
167  Int_t fMissNcls;
168  Double_t fPreChi2;
169 
170  static const Double_t fgkCutLeverArm = 350;
171  static const Double_t fgkMaxChi2 = 10;
172 };
173 
174 #endif
static const Double_t fgkMaxChi2
max. chi2/ncls
static const Double_t fgkCutLeverArm
minimum lever arm 350 ~ 250 * sqrt(2)
Bool_t CombineESDtracks(AliESDtrack *&trk0, AliESDtrack *&trk1)
TTreeSRedirector * fStreamer
! debug streamer
Float_t p[]
Definition: kNNTest.C:133
AliTPCseed * fSeedUp
TPC seed of upper track.
Bool_t GetTPCseeds(const AliESDtrack *trk0, const AliESDtrack *trk1)
TVector3 fInnerClusterUp
xyz of the inner most TPC trackpoint of the Upper track
Combine cosmic track pairs (upper, lower) and do track fitting.
Bool_t CombineTPCseeds(AliTPCseed *&seed0, AliTPCseed *&seed1)
AliTPCCombinedTrackfit & operator=(const AliTPCCombinedTrackfit &p)
AliExternalTrackParam * fTrackparLow
track param of lower track
Double_t GetChi2PerCluster() const
Bool_t AnaSeeds(Bool_t &kswap)
AliTPCseed * GetTPCseedUp() const
Double_t fPreChi2
Predicted chi2/nfit over the two propagation.
TVector3 GetInnerClusterUp() const
Double_t fLeverArm
transverse difference between upper most and lower most clusters
AliTPCCombinedTrackfit(const Int_t dlev=0, const TString tag="test")
AliExternalTrackParam * GetTrackParamLow() const
AliExternalTrackParam * GetTrackParamUp() const
Int_t fStatus
status for CombineESDtracks/CombineTPCseeds: 0-successful, otherwise fail
Int_t fFitNcls
number of TPC clusters successful in propagation (mean of the two propagation: upwards and downwards)...
TVector3 GetInnerClusterLow() const
AliTPCseed * fSeedLow
TPC seed of lower track.
TTreeSRedirector * GetStreamer() const
AliExternalTrackParam * fTrackparUp
track param of upper track
Int_t fMissNcls
number of TPC clusters fail in propagation (sum of the two propagation)
TVector3 fInnerClusterLow
xyz of the inner most TPC trackpoint of the Lower track
AliTPCseed * GetTPCseedLow() const