]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/ITS/AliHLTITStrack.cxx
reverting r42022, changes to be committed separately in order to disentangle backporting
[u/mrichter/AliRoot.git] / HLT / ITS / AliHLTITStrack.cxx
CommitLineData
d6e2c707 1// $Id$
2
9582ea1a 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
4aa41877 26#include "AliHLTITStrack.h"
9582ea1a 27
4aa41877 28ClassImp(AliHLTITStrack)
9582ea1a 29
30//____________________________________________________________________________
4aa41877 31AliHLTITStrack::AliHLTITStrack()
f644512a 32 :AliITStrackV2()
9582ea1a 33{
34 //------------------------------------------------------------------
35 //Constructor
36 //------------------------------------------------------------------
37}
38
39//____________________________________________________________________________
4aa41877 40AliHLTITStrack::AliHLTITStrack(AliESDtrack& t)
f644512a 41 :AliITStrackV2(t)
9f91c2b5 42{
9582ea1a 43 //------------------------------------------------------------------
f644512a 44 //Constructor
9582ea1a 45 //------------------------------------------------------------------
9582ea1a 46}
47
48//____________________________________________________________________________
4aa41877 49AliHLTITStrack::AliHLTITStrack(const AliHLTITStrack& t)
f644512a 50 : AliITStrackV2(t)
9f91c2b5 51{
f644512a 52 //------------------------------------------------------------------
53 //Copy constructor
54 //------------------------------------------------------------------
9582ea1a 55}
56
57//_____________________________________________________________________________
4aa41877 58Int_t AliHLTITStrack::Compare(const TObject *o) const {
9582ea1a 59 //-----------------------------------------------------------------
60 // This function compares tracks according to the their curvature
61 //-----------------------------------------------------------------
4aa41877 62 AliHLTITStrack *t=(AliHLTITStrack*)o;
6c23ffed 63 Double_t co=t->OneOverPt();
64 Double_t c =OneOverPt();
9582ea1a 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}