]>
Commit | Line | Data |
---|---|---|
d54804bf | 1 | // $Id$ |
ce565086 | 2 | // ************************************************************************** |
fbb9b71b | 3 | // This file is property of and copyright by the ALICE HLT Project * |
d54804bf | 4 | // ALICE Experiment at CERN, All rights reserved. * |
5 | // * | |
6 | // Primary Authors: Sergey Gorbunov <sergey.gorbunov@kip.uni-heidelberg.de> * | |
7 | // Ivan Kisel <kisel@kip.uni-heidelberg.de> * | |
8 | // for The ALICE HLT Project. * | |
9 | // * | |
10 | // Permission to use, copy, modify and distribute this software and its * | |
11 | // documentation strictly for non-commercial purposes is hereby granted * | |
12 | // without fee, provided that the above copyright notice appears in all * | |
13 | // copies and that both the copyright notice and this permission notice * | |
14 | // appear in the supporting documentation. The authors make no claims * | |
15 | // about the suitability of this software for any purpose. It is * | |
16 | // provided "as is" without express or implied warranty. * | |
ce565086 | 17 | // * |
d54804bf | 18 | //*************************************************************************** |
19 | ||
20 | #include "AliHLTTPCCAGBHit.h" | |
21 | ||
fbb9b71b | 22 | bool AliHLTTPCCAGBHit::Compare( const AliHLTTPCCAGBHit &a, const AliHLTTPCCAGBHit &b ) |
d54804bf | 23 | { |
24 | //* Comparison function for sorting hits | |
fbb9b71b | 25 | if ( a.fISlice < b.fISlice ) return 1; |
26 | if ( a.fISlice > b.fISlice ) return 0; | |
27 | if ( a.fIRow < b.fIRow ) return 1; | |
28 | if ( a.fIRow > b.fIRow ) return 0; | |
29 | return ( a.fZ < b.fZ ); | |
d54804bf | 30 | } |