]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSLink.h
New configurale version. V1 is now the default.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSLink.h
1 #ifndef ALIPHOSLINK_H
2 #define ALIPHOSLINK_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 //_________________________________________________________________________
9 //  Algorithm class used only by AliPHOSTrackSegmentMaker 
10 //                  
11 //*-- Author: Dmitri Peressounko (SUBATECH)
12
13 // --- ROOT system ---
14
15 #include "TObject.h"
16
17 // --- Standard library ---
18
19 // --- AliRoot header files ---
20
21 class AliPHOSLink : public  TObject{
22   
23 public:
24   
25   AliPHOSLink( Float_t r, Int_t EMC, Int_t PPSD) ;  // ctor            
26   virtual ~AliPHOSLink(){
27     // dtor
28   }
29   Int_t   Compare(TObject * obj) ;
30   Int_t   GetEmc(void) { 
31     // returns the index of EMC
32     return fEmcN; 
33   }
34   Int_t   GetPpsd(void) { 
35     // returns the index of PPSD
36     return fPpsdN ; 
37   }
38   Float_t GetR(void) { 
39     // returns the distance between EMC and PPSD
40     return fR ; 
41   } 
42   Bool_t  IsSortable() const{ 
43     // tells if this is a sortable object 
44     return kTRUE ; 
45   }
46   
47 private:
48   
49   Int_t fEmcN ;  // Emc index
50   Int_t fPpsdN ; // Ppsd index 
51   Float_t fR ;   // Distance between EMC and PPSD RecPoints in a track segment 
52   
53   ClassDef(AliPHOSLink,1)  // Auxilliary algorithm class used by AliPHOSTrackSegmentMaker
54
55 };
56
57 #endif // AliPHOSLINK_H