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