]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/ITS/AliHLTITStrack.cxx
adjusting output size estimator: input multiplier set from 100 to more realistice...
[u/mrichter/AliRoot.git] / HLT / ITS / AliHLTITStrack.cxx
1 // $Id$
2
3 /**************************************************************************
4  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  *                                                                        *
6  * Author: The ALICE Off-line Project.                                    *
7  * Contributors are mentioned in the code where appropriate.              *
8  *                                                                        *
9  * Permission to use, copy, modify and distribute this software and its   *
10  * documentation strictly for non-commercial purposes is hereby granted   *
11  * without fee, provided that the above copyright notice appears in all   *
12  * copies and that both the copyright notice and this permission notice   *
13  * appear in the supporting documentation. The authors make no claims     *
14  * about the suitability of this software for any purpose. It is          *
15  * provided "as is" without express or implied warranty.                  *
16  **************************************************************************/
17
18 //-------------------------------------------------------------------------
19 //                Implementation of the HLT ITS track class
20 //
21 //          Origin: Cvetan Cheshkov, CERN, Cvetan.Cheshkov@cern.ch
22 //-------------------------------------------------------------------------
23
24 #include <TMath.h>
25
26 #include "AliHLTITStrack.h"
27
28 ClassImp(AliHLTITStrack)
29
30 //____________________________________________________________________________
31 AliHLTITStrack::AliHLTITStrack()
32               :AliITStrackV2()
33 {
34   //------------------------------------------------------------------
35   //Constructor
36   //------------------------------------------------------------------
37 }
38
39 //____________________________________________________________________________
40 AliHLTITStrack::AliHLTITStrack(AliESDtrack& t)
41               :AliITStrackV2(t)
42 {
43   //------------------------------------------------------------------
44   //Constructor
45   //------------------------------------------------------------------
46 }
47
48 //____________________________________________________________________________
49 AliHLTITStrack::AliHLTITStrack(const AliHLTITStrack& t) 
50               : AliITStrackV2(t)
51 {
52   //------------------------------------------------------------------
53   //Copy constructor
54   //------------------------------------------------------------------
55 }
56
57 //_____________________________________________________________________________
58 Int_t AliHLTITStrack::Compare(const TObject *o) const {
59   //-----------------------------------------------------------------
60   // This function compares tracks according to the their curvature
61   //-----------------------------------------------------------------
62   AliHLTITStrack *t=(AliHLTITStrack*)o;
63   Double_t co=t->OneOverPt();
64   Double_t c =OneOverPt();
65   //  Double_t co=t->GetSigmaY2()*t->GetSigmaZ2();
66   //  Double_t c =GetSigmaY2()*GetSigmaZ2();
67   if (c>co) return 1;
68   else if (c<co) return -1;
69   return 0;
70 }