]>
Commit | Line | Data |
---|---|---|
d15a28e7 | 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 | ||
6ad0bfa0 | 6 | /* $Id$ */ |
7 | ||
b2a60966 | 8 | //_________________________________________________________________________ |
9 | // RecPoint implementation for PHOS-EMC | |
10 | // An EmcRecPoint is a cluster of digits | |
11 | // | |
12 | //*-- Author: Dmitri Peressounko (RRC KI & SUBATECH) | |
d15a28e7 | 13 | |
14 | // --- ROOT system --- | |
15 | ||
16 | #include "TObject.h" | |
17 | ||
18 | // --- Standard library --- | |
19 | ||
20 | // --- AliRoot header files --- | |
21 | ||
22 | #include "AliPHOSDigit.h" | |
23 | #include "AliPHOSRecPoint.h" | |
24 | ||
25 | class AliPHOSEmcRecPoint : public AliPHOSRecPoint { | |
26 | ||
27 | public: | |
28 | ||
9f616d61 | 29 | AliPHOSEmcRecPoint(){} ; |
d15a28e7 | 30 | AliPHOSEmcRecPoint(Float_t W0, Float_t LocMaxCut) ; |
b2a60966 | 31 | virtual ~AliPHOSEmcRecPoint(){} |
32 | ||
d15a28e7 | 33 | void AddDigit(AliDigitNew & digit, Float_t Energy) ; // add a digit to the digits list |
9f616d61 | 34 | Int_t Compare(TObject * obj) ; // method for sorting |
d15a28e7 | 35 | |
36 | Float_t GetDelta (){ return fDelta ; } | |
9f616d61 | 37 | Float_t GetDispersion() ; // computes the dispersion of the shower |
38 | void GetElipsAxis(Float_t * lambda) ; // computes the axis of shower ellipsoide | |
d15a28e7 | 39 | Float_t * GetEnergiesList(){return fEnergyList ;} |
9f616d61 | 40 | virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ; |
d15a28e7 | 41 | Float_t GetLocMaxCut () {return fLocMaxCut ; } |
42 | Float_t GetLogWeightCut (){return fW0 ; } | |
9f616d61 | 43 | Float_t GetMaximalEnergy(void) ; // get the highest energy in the cluster |
d15a28e7 | 44 | Int_t GetMaximumMultiplicity() { return fMaxDigit ; } |
45 | Int_t GetMultiplicity(void) const { return fMulDigit ; } | |
9f616d61 | 46 | Int_t GetMultiplicityAtLevel(const Float_t level) ; // computes multiplicity of digits with energy above relative level |
6ad0bfa0 | 47 | Int_t GetNumberOfLocalMax(Int_t * maxAt, Float_t * maxAtEnergy) ; // searches for the local maxima |
d15a28e7 | 48 | |
9f616d61 | 49 | Float_t GetTotalEnergy(void) const { return fAmp ; } // in EMC RecPoint Amp = Energy |
50 | void GetLocalPosition(TVector3 &Lpos) ; // computes the position in the PHOS module | |
d15a28e7 | 51 | Bool_t IsEmc(void) {return kTRUE ; } |
cf239357 | 52 | Bool_t IsSortable() const { return kTRUE ; } |
53 | void Print(Option_t * opt = "void") ; | |
d15a28e7 | 54 | |
55 | private: | |
56 | ||
57 | Bool_t AreNeighbours(AliPHOSDigit * digit1, AliPHOSDigit * digit2 ) ; | |
58 | ||
b2a60966 | 59 | Float_t fDelta ; // parameter used to sort the clusters |
60 | Float_t fLocMaxCut ; // minimum energy difference to distinguish two maxima | |
9f616d61 | 61 | Float_t * fEnergyList ; // energy of digits |
cf239357 | 62 | Float_t fW0 ; // logarithmic weight factor for center of gravity calculation |
d15a28e7 | 63 | |
b2a60966 | 64 | ClassDef(AliPHOSEmcRecPoint,1) // EMC RecPoint (cluster) |
d15a28e7 | 65 | |
66 | }; | |
67 | ||
68 | #endif // AliPHOSEMCRECPOINT_H |