]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALLink.h
Added sort method.
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALLink.h
1 #ifndef ALIEMCALLINK_H
2 #define ALIEMCALLINK_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 AliEMCALTrackSegmentMaker 
10 //  Links recpoints
11 // into tracksegments                
12 //*-- Author: Dmitri Peressounko (SUBATECH)
13 //*-- Author: Adapted from PHOS by Y. Schutz (SUBATECH)
14
15 // --- ROOT system ---
16
17 #include "TObject.h"
18
19 // --- Standard library ---
20
21 // --- AliRoot header files ---
22
23 class AliEMCALLink : public  TObject
24 {
25   
26 public:
27   
28   AliEMCALLink( Float_t prod, Int_t ec, Int_t rp) ;  // ctor            
29   virtual ~AliEMCALLink(){
30     // dtor
31   }
32   Int_t   Compare(const TObject * obj) const ;
33   const Int_t   GetECA(void) const { return fECAN ; }  
34   const Int_t   GetOther(void) const { return fOtherN ; } 
35   const Float_t GetProd(void) const { return fProd ; }   
36   Bool_t        IsSortable() const{ return kTRUE; }
37   
38 private:
39   
40   Int_t fECAN ;        // ECAL index
41   Int_t fOtherN ;      // index of the linked recpoint 
42   Float_t fProd ;      // Scalar produc of the direction of the 2 recpoints
43   
44   ClassDef(AliEMCALLink,1)  // Auxilliary algorithm class used by AliEMCALTrackSegmentMaker
45     
46 };
47
48 #endif // AliEMCALLINK_H