3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 //_________________________________________________________________________
9 // Algorithm class used only by AliEMCALTrackSegmentMaker
12 //*-- Author: Dmitri Peressounko (SUBATECH)
13 //*-- Author: Adapted from PHOS by Y. Schutz (SUBATECH)
15 // --- ROOT system ---
19 // --- Standard library ---
21 // --- AliRoot header files ---
23 class AliEMCALLink : public TObject
28 AliEMCALLink( Float_t prod, Int_t ec, Int_t rp, unsigned int what) ; // ctor
29 virtual ~AliEMCALLink(){
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 const Bool_t IsLinkToPRE(void) const {if (fWhat) return kFALSE; else return kTRUE;}
37 const Bool_t IsLinkToHCA(void) const {if (fWhat) return kTRUE; else return kFALSE;}
38 Bool_t IsSortable() const{ return kTRUE; }
42 Int_t fECAN ; // ECAL index
43 Int_t fOtherN ; // index of the linked recpoint
44 Float_t fProd ; // Scalar produc of the direction of the 2 recpoints
45 unsigned int fWhat ; // PRE (=0) or HCAL (=1)
47 ClassDef(AliEMCALLink,1) // Auxilliary algorithm class used by AliEMCALTrackSegmentMaker
51 #endif // AliEMCALLINK_H