]>
Commit | Line | Data |
---|---|---|
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 | 28 | ClassImp(AliHLTITStrack) |
9582ea1a | 29 | |
30 | //____________________________________________________________________________ | |
4aa41877 | 31 | AliHLTITStrack::AliHLTITStrack() |
f644512a | 32 | :AliITStrackV2() |
9582ea1a | 33 | { |
34 | //------------------------------------------------------------------ | |
35 | //Constructor | |
36 | //------------------------------------------------------------------ | |
37 | } | |
38 | ||
39 | //____________________________________________________________________________ | |
4aa41877 | 40 | AliHLTITStrack::AliHLTITStrack(AliESDtrack& t) |
f644512a | 41 | :AliITStrackV2(t) |
9f91c2b5 | 42 | { |
9582ea1a | 43 | //------------------------------------------------------------------ |
f644512a | 44 | //Constructor |
9582ea1a | 45 | //------------------------------------------------------------------ |
9582ea1a | 46 | } |
47 | ||
48 | //____________________________________________________________________________ | |
4aa41877 | 49 | AliHLTITStrack::AliHLTITStrack(const AliHLTITStrack& t) |
f644512a | 50 | : AliITStrackV2(t) |
9f91c2b5 | 51 | { |
f644512a | 52 | //------------------------------------------------------------------ |
53 | //Copy constructor | |
54 | //------------------------------------------------------------------ | |
9582ea1a | 55 | } |
56 | ||
8dae289d | 57 | //____________________________________________________________________________ |
58 | AliHLTITStrack& AliHLTITStrack::operator=(const AliHLTITStrack& ) | |
59 | { | |
60 | //------------------------------------------------------------------ | |
61 | //Copy constructor | |
62 | //------------------------------------------------------------------ | |
63 | return *this; | |
64 | } | |
65 | ||
9582ea1a | 66 | //_____________________________________________________________________________ |
4aa41877 | 67 | Int_t AliHLTITStrack::Compare(const TObject *o) const { |
9582ea1a | 68 | //----------------------------------------------------------------- |
69 | // This function compares tracks according to the their curvature | |
70 | //----------------------------------------------------------------- | |
4aa41877 | 71 | AliHLTITStrack *t=(AliHLTITStrack*)o; |
6c23ffed | 72 | Double_t co=t->OneOverPt(); |
73 | Double_t c =OneOverPt(); | |
9582ea1a | 74 | // Double_t co=t->GetSigmaY2()*t->GetSigmaZ2(); |
75 | // Double_t c =GetSigmaY2()*GetSigmaZ2(); | |
76 | if (c>co) return 1; | |
77 | else if (c<co) return -1; | |
78 | return 0; | |
79 | } |