]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSEmcRecPoint.h
eb29637e0767a481f33c81972d282f7f7b2cc210
[u/mrichter/AliRoot.git] / PHOS / AliPHOSEmcRecPoint.h
1 #ifndef ALIPHOSEMCRECPOINT_H
2 #define ALIPHOSEMCRECPOINT_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 //  Rec Point in the EM calorimeter of PHOS     //
10 //                                              //
11 //  Author Dmitri Peressounko RRC KI            //
12 //   comment: contains list of AliPHOSDigit's * //  
13 //     and evaluates a few average values       //
14 //////////////////////////////////////////////////
15
16 // --- ROOT system ---
17
18 #include "TObject.h"
19
20 // --- Standard library ---
21
22 // --- AliRoot header files ---
23
24 #include "AliPHOSDigit.h"
25 #include "AliPHOSRecPoint.h"
26
27 class AliPHOSEmcRecPoint : public AliPHOSRecPoint  {
28
29 public:
30
31   AliPHOSEmcRecPoint(){} ;                    
32   AliPHOSEmcRecPoint(Float_t W0, Float_t LocMaxCut) ;
33   virtual ~AliPHOSEmcRecPoint() ; 
34   void        AddDigit(AliDigitNew & digit, Float_t Energy) ;  // add a digit to the digits list  
35   Int_t       Compare(TObject * obj) ;                         // method for sorting  
36   
37   Float_t     GetDelta (){ return fDelta ; }    
38   Float_t     GetDispersion() ;                               // computes the dispersion of the shower
39   void        GetElipsAxis(Float_t * lambda) ;                // computes the axis of shower ellipsoide
40   Float_t *   GetEnergiesList(){return fEnergyList ;} 
41   virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ; 
42   Float_t     GetLocMaxCut () {return fLocMaxCut ; }
43   Float_t     GetLogWeightCut (){return fW0 ; }
44   Float_t     GetMaximalEnergy(void) ;                        // get the highest energy in the cluster
45   Int_t       GetMaximumMultiplicity() { return   fMaxDigit ; } 
46   Int_t       GetMultiplicity(void) const { return fMulDigit ; } 
47   Int_t       GetMultiplicityAtLevel(const Float_t level) ;   // computes multiplicity of digits with energy above relative level
48   Int_t       GetNumberOfLocalMax(Int_t *  maxAt, Float_t * maxAtEnergy) ; // searches for the local maxima 
49  
50   Float_t     GetTotalEnergy(void) const { return fAmp ; }    // in EMC RecPoint Amp = Energy
51   void        GetLocalPosition(TVector3 &Lpos) ;              // computes the position in the PHOS module 
52   Bool_t      IsEmc(void) {return kTRUE ; } 
53   Bool_t IsSortable() const { return kTRUE ; } 
54   void Print(Option_t * opt = "void") ; 
55
56 private:
57
58   Bool_t AreNeighbours(AliPHOSDigit * digit1, AliPHOSDigit * digit2 ) ;
59
60   Float_t  fDelta ;        // parameter used to sort the clusters   
61   Float_t  fLocMaxCut ;    // parameter used for local maximum searc
62   Float_t * fEnergyList ;  // energy of digits
63   Float_t fW0 ;            // logarithmic weight factor for center of gravity calculation
64
65 public: 
66
67 ClassDef(AliPHOSEmcRecPoint,1)  // EMC RecPoint, version 1
68
69 };
70
71 #endif // AliPHOSEMCRECPOINT_H