fNrawch = 0; and fNrechits = 0; in the default constructor.
[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
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"
31aa6d6c 17#include "TArrayI.h"
18
d15a28e7 19// --- Standard library ---
20
21// --- AliRoot header files ---
22
23#include "AliPHOSDigit.h"
24#include "AliPHOSRecPoint.h"
25
26class AliPHOSEmcRecPoint : public AliPHOSRecPoint {
27
28public:
29
88714635 30 AliPHOSEmcRecPoint(){
31 // default ctor
32 } ;
d15a28e7 33 AliPHOSEmcRecPoint(Float_t W0, Float_t LocMaxCut) ;
6c370def 34 AliPHOSEmcRecPoint(const AliPHOSEmcRecPoint & rp) {
35 // cpy ctor requested by Coding Convention
36 // but not yet needed
37 assert(0==1) ;
38 }
39
83974468 40 virtual ~AliPHOSEmcRecPoint() ;
b2a60966 41
83974468 42 virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) ; // add a digit to the digits list
9f616d61 43 Int_t Compare(TObject * obj) ; // method for sorting
d15a28e7 44
88714635 45 Float_t GetDelta (){
46 // gets the fDelta data member
47 return fDelta ; }
9f616d61 48 Float_t GetDispersion() ; // computes the dispersion of the shower
49 void GetElipsAxis(Float_t * lambda) ; // computes the axis of shower ellipsoide
88714635 50 Float_t * GetEnergiesList(){
51 // gets the list of energies makink this recpoint
52 return fEnergyList ;}
9f616d61 53 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ;
88714635 54 Float_t GetLocMaxCut () {
55 // gets the cut of the local maximum search
56 return fLocMaxCut ; }
57 Float_t GetLogWeightCut (){
58 // gets the logarythmic weight for the center of gravity calculation
59 return fW0 ; }
9f616d61 60 Float_t GetMaximalEnergy(void) ; // get the highest energy in the cluster
88714635 61 Int_t GetMaximumMultiplicity() {
62 // gets the maximum number of digits allowed
63 return fMaxDigit ; }
64 Int_t GetMultiplicity(void) const {
65 // gets the number of digits making this recpoint
66 return fMulDigit ; }
9f616d61 67 Int_t GetMultiplicityAtLevel(const Float_t level) ; // computes multiplicity of digits with energy above relative level
6ad0bfa0 68 Int_t GetNumberOfLocalMax(Int_t * maxAt, Float_t * maxAtEnergy) ; // searches for the local maxima
d15a28e7 69
88714635 70 Float_t GetTotalEnergy(void) const {
71 // gets the total amplitude of this recpoint (in EMC RecPoint Amp = Energy)
72 return fAmp ; }
73 void GetLocalPosition(TVector3 &Lpos) ; // computes the position in the PHOS module
74 Bool_t IsEmc(void) {
75 // true if the recpoint is in EMC
76 return kTRUE ; }
77 Bool_t IsSortable() const {
78 // says that emcrecpoints are sortable objects
79 return kTRUE ; }
cf239357 80 void Print(Option_t * opt = "void") ;
d15a28e7 81
c6e196df 82 AliPHOSEmcRecPoint & operator = (const AliPHOSEmcRecPoint & rvalue) {
6c370def 83 // assignement operator requested by coding convention
84 // but not needed
85 assert(0==1) ;
86 return *this ;
87 }
88
89 private:
d15a28e7 90
91 Bool_t AreNeighbours(AliPHOSDigit * digit1, AliPHOSDigit * digit2 ) ;
92
83974468 93 Float_t fDelta ; // parameter used to sort the clusters
88714635 94 Float_t *fEnergyList ; //[fMulDigit] energy of digits
83974468 95 Float_t fLocMaxCut ; // minimum energy difference to distinguish two maxima
96 Float_t fW0 ; // logarithmic weight factor for center of gravity calculation
97
b2a60966 98 ClassDef(AliPHOSEmcRecPoint,1) // EMC RecPoint (cluster)
d15a28e7 99
100};
101
102#endif // AliPHOSEMCRECPOINT_H