]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCCosmicUtils.h
Remove self-assignment
[u/mrichter/AliRoot.git] / TPC / AliTPCCosmicUtils.h
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 //
16 // Static function member
17 // as utils for
18 // AliTPCCombinedTrackfit
19 //
20 // grep "exitreport" in output log to check abnormal termination
21 //
22 //  Xianguo Lu <lu@physi.uni-heidelberg.de>      
23 //
24
25 #ifndef ALITPCCOSMICUTILS_H
26 #define ALITPCCOSMICUTILS_H
27
28 class AliTPCCosmicUtils
29 {
30  public:
31   static AliTPCseed * GetTPCseed(const AliESDtrack *esdtrack);
32     
33   static AliExternalTrackParam *MakeSeed(const AliTPCseed *tseed);
34
35   static void SingleFit(AliExternalTrackParam * trackInOld, AliExternalTrackParam * trackOutOld, const AliTPCseed *tseed, const Bool_t kinward, Int_t &nfit, Int_t &nmiss, Double_t &pchi2, TTreeSRedirector *debugstreamer=0x0);
36
37   static void CombinedFit(AliExternalTrackParam *trackPars[],  const AliTPCseed *seeds[],  Int_t &nfit, Int_t &nmiss, Double_t &pchi2, TTreeSRedirector *debugstreamer=0x0);
38
39   static void DrawSeeds(const AliTPCseed * seeds[], const TString tag, const TString outputformat="png");
40   static void PrintTrackParam(const Int_t id, const AliExternalTrackParam * trackpar, const char *tag="");
41   static Int_t RotateSafe(AliExternalTrackParam *trackPar, const Double_t aa);
42
43  private:
44   static void IniCov(AliExternalTrackParam *trackPar, const Double_t ncl);
45   static void SubCombined(AliExternalTrackParam *trackPar, const AliTPCseed *seeds[], const Int_t tk0, const Int_t tk1, const Double_t eloss, Int_t &nfit, Int_t &nmiss, Double_t &pchi2, TTreeSRedirector *debugstreamer=0x0);
46   static void FitKernel(AliExternalTrackParam *trackPar, const AliTPCseed *tseed, const Int_t rowstart, const Int_t rowstop, const Double_t eloss, Int_t &ksite, Int_t &nfit, Int_t &nmiss, Double_t &pchi2, TTreeSRedirector *debugstreamer, const Bool_t kinicov);
47
48   static const Int_t fgkNRow = 159;           //number of pad rows
49   static const Int_t fgkNclsMin = 40;         //minimum requirement of number of TPC cluster
50   static const Int_t fgkXMin = 80;            //minimum x (tracking system) to use in propagation
51   static const Double_t fgkMass = 0.105658;   //muon mass
52   static const Int_t fgkNiter = 2;            //number of iteration in SingleFit and CombinedFit, 1 is not enough, 3 is the same as 2
53 };
54
55 #endif