]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSLink.cxx
A change in AliPHOSGeometry.h
[u/mrichter/AliRoot.git] / PHOS / AliPHOSLink.cxx
CommitLineData
d15a28e7 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// Auxiliary class, used ONLY by AliPHOSTrackSegmentMaker
18//*-- Author : Dmitri Peressounko SUBATECH
19//////////////////////////////////////////////////////////////////////////////
20
21// --- ROOT system ---
22
23// --- Standard library ---
24
25// --- AliRoot header files ---
26
27#include "AliPHOSLink.h"
28
29ClassImp(AliPHOSLink)
30//____________________________________________________________________________
31 AliPHOSLink::AliPHOSLink(Float_t r, Int_t Emc, Int_t Ppsd)
32{
33 fR = r ;
34 fEmcN = Emc ;
35 fPpsdN = Ppsd ;
36}
37
38//____________________________________________________________________________
39Int_t AliPHOSLink::Compare(TObject * obj)
40{
41 Int_t rv ;
42
43 AliPHOSLink * link = (AliPHOSLink *) obj ;
44
45 if(this->fR < link->GetR() )
46 rv = -1 ;
47 else
48 rv = 1 ;
49
50 return rv ;
51}