]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCcluster.cxx
New analysis for electron identification
[u/mrichter/AliRoot.git] / TPC / AliTPCcluster.cxx
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 /* $Id$ */
17
18 //-----------------------------------------------------------------
19 //           Implementation of the TPC cluster class
20 //
21 // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
22 //-----------------------------------------------------------------
23
24 #include "AliTPCcluster.h"
25
26 ClassImp(AliTPCcluster)
27 //
28 AliTPCcluster::AliTPCcluster(Int_t *lab, Float_t *hit):
29   AliCluster(0,hit,0.,0.,lab),
30   fQ(0.)
31 {
32   //
33   // constructor
34   //
35   fQ=hit[4];
36 }
37  
38 //____________________________________________________________________________
39 Double_t AliTPCcluster::SigmaY2(Double_t r, Double_t tgl, Double_t pt)
40 {
41   //
42   // Parametrised error of the cluster reconstruction (pad direction)
43   //
44   // Sigma rphi
45   const Float_t kArphi=0.41818e-2;
46   const Float_t kBrphi=0.17460e-4;
47   const Float_t kCrphi=0.30993e-2;
48   const Float_t kDrphi=0.41061e-3;
49
50   pt=TMath::Abs(pt)*1000.;
51   Double_t x=r/pt;
52   tgl=TMath::Abs(tgl);
53   Double_t s=kArphi - kBrphi*r*tgl + kCrphi*x*x + kDrphi*x;
54   if (s<0.4e-3) s=0.4e-3;
55   s*=1.3; //Iouri Belikov
56
57   return s;
58 }
59
60
61 //____________________________________________________________________________
62 Double_t AliTPCcluster::SigmaZ2(Double_t r, Double_t tgl)
63 {
64   //
65   // Parametrised error of the cluster reconstruction (drift direction)
66   //
67   // Sigma z
68   const Float_t kAz=0.39614e-2;
69   const Float_t kBz=0.22443e-4;
70   const Float_t kCz=0.51504e-1;
71
72
73   tgl=TMath::Abs(tgl);
74   Double_t s=kAz - kBz*r*tgl + kCz*tgl*tgl;
75   if (s<0.4e-3) s=0.4e-3;
76   s*=1.3; //Iouri Belikov
77
78   return s;
79 }
80