]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/ITS/AliHLTITStrack.cxx
L3 becomes HLT
[u/mrichter/AliRoot.git] / HLT / ITS / AliHLTITStrack.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 //-------------------------------------------------------------------------
17 //                Implementation of the HLT ITS track class
18 //
19 //          Origin: Cvetan Cheshkov, CERN, Cvetan.Cheshkov@cern.ch
20 //-------------------------------------------------------------------------
21
22 #include <TMath.h>
23
24 #include "AliHLTITStrack.h"
25
26 ClassImp(AliHLTITStrack)
27
28 //____________________________________________________________________________
29 AliHLTITStrack::AliHLTITStrack()
30               :AliITStrackV2()
31 {
32   //------------------------------------------------------------------
33   //Constructor
34   //------------------------------------------------------------------
35 }
36
37 //____________________________________________________________________________
38 AliHLTITStrack::AliHLTITStrack(AliESDtrack& t)
39               :AliITStrackV2(t)
40 {
41   //------------------------------------------------------------------
42   //Constructor
43   //------------------------------------------------------------------
44 }
45
46 //____________________________________________________________________________
47 AliHLTITStrack::AliHLTITStrack(const AliHLTITStrack& t) 
48               : AliITStrackV2(t)
49 {
50   //------------------------------------------------------------------
51   //Copy constructor
52   //------------------------------------------------------------------
53 }
54
55 //_____________________________________________________________________________
56 Int_t AliHLTITStrack::Compare(const TObject *o) const {
57   //-----------------------------------------------------------------
58   // This function compares tracks according to the their curvature
59   //-----------------------------------------------------------------
60   AliHLTITStrack *t=(AliHLTITStrack*)o;
61   Double_t co=TMath::Abs(t->Get1Pt());
62   Double_t c =TMath::Abs(Get1Pt());
63   //  Double_t co=t->GetSigmaY2()*t->GetSigmaZ2();
64   //  Double_t c =GetSigmaY2()*GetSigmaZ2();
65   if (c>co) return 1;
66   else if (c<co) return -1;
67   return 0;
68 }