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 */
8 //_________________________________________________________________________
9 // RecPoint implementation for PHOS-EMC
10 // An EmcRecPoint is a cluster of digits
12 //*-- Author: Dmitri Peressounko (RRC KI & SUBATECH)
14 // --- ROOT system ---
19 // --- Standard library ---
21 // --- AliRoot header files ---
23 #include "AliPHOSDigit.h"
24 #include "AliPHOSRecPoint.h"
26 class AliPHOSEmcRecPoint : public AliPHOSRecPoint {
34 AliPHOSEmcRecPoint(Float_t W0, Float_t LocMaxCut) ;
35 AliPHOSEmcRecPoint(const AliPHOSEmcRecPoint & rp) {
36 // cpy ctor requested by Coding Convention
41 virtual ~AliPHOSEmcRecPoint() ;
43 virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) ; // add a digit to the digits list
44 Int_t Compare(const TObject * obj) const; // method for sorting
45 Float_t CoreEnergy() ;
47 void EvalLocalPosition() ; // computes the position in the PHOS module
48 Float_t GetDelta () const { return fDelta ; }
49 Float_t GetDispersion() const ; // computes the dispersion of the shower
50 void GetElipsAxis(Float_t * lambda) ; // computes the axis of shower ellipsoide
51 Float_t * GetEnergiesList() const { return fEnergyList ;} // gets the list of energies making this recpoint
52 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ;
53 Float_t GetLocMaxCut ()const { return fLocMaxCut ; } // gets the cut of the local maximum search
54 Float_t GetLogWeightCut ()const { return fW0 ; } // gets the logarythmic weight for the
55 // center of gravity calculation
56 Float_t GetMaximalEnergy(void) const ; // get the highest energy in the cluster
57 Int_t GetMaximumMultiplicity() const {return fMaxDigit ;} // gets the maximum number of digits allowed
58 Int_t GetMultiplicity(void) const { return fMulDigit ; } // gets the number of digits making this recpoint
59 Int_t GetMultiplicityAtLevel(const Float_t level) const ; // computes multiplicity of digits with
60 // energy above relative level
61 Int_t GetNumberOfLocalMax(Int_t * maxAt, Float_t * maxAtEnergy) const ; // searches for the local maxima
63 Bool_t IsEmc(void) const { return kTRUE ; } // true if the recpoint is in EMC
64 Bool_t IsSortable() const {return kTRUE ; } // says that emcrecpoints are sortable objects
65 void Print(Option_t * opt = "void") ;
67 AliPHOSEmcRecPoint & operator = (const AliPHOSEmcRecPoint & rvalue) {
68 // assignement operator requested by coding convention
76 Bool_t AreNeighbours(AliPHOSDigit * digit1, AliPHOSDigit * digit2 ) const ;
78 Float_t fDelta ; // parameter used to sort the clusters
79 Float_t *fEnergyList ; //[fMulDigit] energy of digits
80 Float_t fLocMaxCut ; // minimum energy difference to distinguish two maxima
81 Float_t fW0 ; // logarithmic weight factor for center of gravity calculation
83 ClassDef(AliPHOSEmcRecPoint,1) // EMC RecPoint (cluster)
87 #endif // AliPHOSEMCRECPOINT_H