]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALLink.h
SetSamplingFraction() removed from constructor.
[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, unsigned int what) ;  // ctor            
29   virtual ~AliEMCALLink(){
30     // dtor
31   }
32   Int_t   Compare(const TObject * obj) const ;
33   const Int_t GetECAL(void) const { return fECALN ; }  
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 IsLinkToHCAL(void) const {if (fWhat) return kTRUE;  else return kFALSE;}
38   Bool_t  IsSortable() const{ return kTRUE; }
39   
40 private:
41   
42   Int_t fECALN ;     // 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)
46   
47   ClassDef(AliEMCALLink,1)  // Auxilliary algorithm class used by AliEMCALTrackSegmentMaker
48     
49 };
50
51 #endif // AliEMCALLINK_H