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