]>
Commit | Line | Data |
---|---|---|
cc80f89e | 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 | $Log$ | |
18 | Revision 1.1.4.2 2000/04/10 11:34:02 kowal2 | |
19 | ||
20 | Clusters handling in a new data structure | |
21 | ||
22 | */ | |
23 | ||
24 | /////////////////////////////////////////////////////////////////////////////// | |
25 | // // | |
26 | // Time Projection Chamber clusters objects // | |
27 | // | |
28 | // Origin: Marian Ivanov , GSI Darmstadt | |
29 | // // | |
30 | //Begin_Html | |
31 | /* | |
32 | <img src="gif/AliTPCCluster.gif"> | |
33 | */ | |
34 | //End_Html | |
35 | // // | |
36 | // // | |
37 | /////////////////////////////////////////////////////////////////////////////// | |
38 | ||
39 | #include "AliCluster.h" | |
40 | ||
41 | ClassImp(AliCluster) | |
42 | //_____________________________________________________________________________ | |
43 | Int_t AliCluster::Compare(TObject * o) | |
44 | { | |
45 | // | |
46 | // compare two clusters according y coordinata | |
47 | AliCluster *cl= (AliCluster *)o; | |
48 | if (fY<cl->fY) return -1; | |
49 | if (fY==cl->fY) return 0; | |
50 | return 1; | |
51 | } | |
52 | ||
53 | Bool_t AliCluster::IsSortable() const | |
54 | { | |
55 | // | |
56 | //make AliCluster sortabale | |
57 | return kTRUE; | |
58 | } | |
59 | ||
60 | ClassImp(AliDigitCluster) | |
61 | ClassImp(AliDifCluster) |