]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSEmcRecPoint.h
Corrections to comply with coding convention
[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 //  RecPoint implementation for PHOS-EMC 
10 //  An EmcRecPoint is a cluster of digits   
11 //           
12 //*-- Author: Dmitri Peressounko (RRC KI & SUBATECH)
13
14 // --- ROOT system ---
15
16 #include "TObject.h"
17 #include "TArrayI.h"
18  
19 // --- Standard library ---
20
21 // --- AliRoot header files ---
22
23 #include "AliPHOSDigit.h"
24 #include "AliPHOSRecPoint.h"
25
26 class AliPHOSEmcRecPoint : public AliPHOSRecPoint  {
27
28 public:
29
30   AliPHOSEmcRecPoint(){
31     // default ctor
32   } ;                    
33   AliPHOSEmcRecPoint(Float_t W0, Float_t LocMaxCut) ;
34   virtual ~AliPHOSEmcRecPoint() ;  
35
36   virtual void  AddDigit(AliPHOSDigit & digit, Float_t Energy) ;  // add a digit to the digits list  
37   Int_t       Compare(TObject * obj) ;                         // method for sorting  
38   
39   Float_t     GetDelta (){ 
40     // gets the fDelta data member 
41     return fDelta ; }    
42   Float_t     GetDispersion() ;                               // computes the dispersion of the shower
43   void        GetElipsAxis(Float_t * lambda) ;                // computes the axis of shower ellipsoide
44   Float_t *   GetEnergiesList(){
45     // gets the list of energies makink this recpoint
46     return fEnergyList ;} 
47   virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ; 
48   Float_t     GetLocMaxCut () {
49     // gets the cut of the local maximum search 
50     return fLocMaxCut ; }
51   Float_t     GetLogWeightCut (){
52     // gets the logarythmic weight for the center of gravity calculation
53     return fW0 ; }
54   Float_t     GetMaximalEnergy(void) ;                        // get the highest energy in the cluster
55   Int_t       GetMaximumMultiplicity() { 
56     // gets the maximum number of digits allowed
57     return   fMaxDigit ; } 
58   Int_t       GetMultiplicity(void) const { 
59     // gets the number of digits making this recpoint
60     return fMulDigit ; } 
61   Int_t       GetMultiplicityAtLevel(const Float_t level) ;   // computes multiplicity of digits with energy above relative level
62   Int_t       GetNumberOfLocalMax(Int_t *  maxAt, Float_t * maxAtEnergy) ; // searches for the local maxima 
63  
64   Float_t     GetTotalEnergy(void) const { 
65     // gets the total amplitude of this recpoint (in EMC RecPoint Amp = Energy)
66     return fAmp ; }    
67   void        GetLocalPosition(TVector3 &Lpos) ;  // computes the position in the PHOS module 
68   Bool_t      IsEmc(void) {
69     // true if the recpoint is in EMC
70     return kTRUE ; } 
71   Bool_t      IsSortable() const { 
72     // says that emcrecpoints are sortable objects 
73     return kTRUE ; } 
74   void        Print(Option_t * opt = "void") ; 
75
76 private:
77
78   Bool_t AreNeighbours(AliPHOSDigit * digit1, AliPHOSDigit * digit2 ) ;
79
80   Float_t  fDelta ;          // parameter used to sort the clusters    
81   Float_t  *fEnergyList ;    //[fMulDigit] energy of digits
82   Float_t  fLocMaxCut ;      // minimum energy difference to distinguish two maxima 
83   Float_t  fW0 ;             // logarithmic weight factor for center of gravity calculation
84   
85   ClassDef(AliPHOSEmcRecPoint,1)  // EMC RecPoint (cluster)
86
87 };
88
89 #endif // AliPHOSEMCRECPOINT_H