]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - EMCAL/AliEMCALRecPoint.h
updating version number
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALRecPoint.h
... / ...
CommitLineData
1#ifndef ALIEMCALRECPOINT_H
2#define ALIEMCALRECPOINT_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5//_________________________________________________________________________
6// Base Class for EMCAL Reconstructed Points
7// A recpoint being equivalent to a cluster in encal terminology
8//*-- Author: Yves Schutz (SUBATECH)
9//*-- Author: Dmitri Peressounko (RRC KI & SUBATECH)
10//*-- Author: Heather Gray (LBL): merged AliEMCALRecPoint and AliEMCALTowerRecPoint 02/04
11
12// --- ROOT system ---
13class TVector3 ;
14
15// --- Standard library ---
16
17// --- AliRoot header files ---
18
19#include "AliRecPoint.h"
20#include "AliEMCALDigit.h"
21
22class AliEMCALRecPoint : public AliRecPoint {
23
24 public:
25
26 typedef TObjArray RecPointsList ;
27
28 AliEMCALRecPoint() ; // ctor
29 AliEMCALRecPoint(const char * opt) ; // ctor
30 AliEMCALRecPoint(const AliEMCALRecPoint & rp):AliRecPoint(rp) { Fatal("cpy ctor", "not implemented") ; }
31
32 virtual ~AliEMCALRecPoint();
33 virtual void AddDigit(AliDigitNew &){ Fatal("AddDigit", "use AddDigit(AliEMCALDigit & digit, Float_t Energy )") ; }
34 virtual void AddDigit(AliEMCALDigit & digit, Float_t Energy);
35 virtual Int_t Compare(const TObject * obj) const;
36 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
37 virtual void Draw(Option_t * option="") ;
38 virtual void ExecuteEvent(Int_t event, Int_t, Int_t) ;
39
40 virtual void EvalAll(Float_t logWeight, TClonesArray * digits);
41 virtual void EvalLocalPosition(Float_t logWeight, TClonesArray * digits) ;
42 virtual void EvalPrimaries(TClonesArray * digits) ;
43
44 // virtual void GetGlobalPosition(TVector3 & gpos, TMatrix & /*gmat*/) const; // return global position in ALICE
45 virtual void GetGlobalPosition(TVector3 & gpos) const; // return global position (x, y, z) in ALICE
46 virtual void GetLocalPosition(TVector3 & lpos) const; // return local position (eta, phi, r) in EMCAL
47 virtual Int_t * GetPrimaries(Int_t & number) const {number = fMulTrack ;
48 return fTracksList ; }
49 Float_t GetCoreEnergy()const {return fCoreEnergy ;}
50 virtual Float_t GetDispersion()const {return fDispersion ;}
51 virtual void GetElipsAxis(Float_t * lambda)const {lambda[0] = fLambda[0]; lambda[1] = fLambda[1];};
52
53 Float_t * GetEnergiesList() const {return fEnergyList ;} // gets the list of energies making this recpoint
54 Float_t GetMaximalEnergy(void) const ; // get the highest energy in the cluster
55 Int_t GetMaximumMultiplicity() const {return fMaxDigit ;} // gets the maximum number of digits allowed
56 Int_t GetMultiplicity(void) const { return fMulDigit ; } // gets the number of digits making this recpoint
57 Int_t GetMultiplicityAtLevel(Float_t level) const ; // computes multiplicity of digits with
58 // energy above relative level
59 virtual Int_t GetNumberOfLocalMax(AliEMCALDigit ** maxAt, Float_t * maxAtEnergy,
60 Float_t locMaxCut,TClonesArray * digits ) const ;
61 // searches for the local maxima
62 Float_t GetTime(void) const{return fTime ; }
63
64 virtual Bool_t IsEmc(void)const { return kTRUE ; }
65 virtual Bool_t IsSortable() const {
66 // tells that this is a sortable object
67 return kTRUE ;
68 }
69 virtual void Paint(Option_t * option="");
70 virtual void Print(Option_t * ) const ;
71
72 AliEMCALRecPoint & operator = (const AliEMCALRecPoint & ) {
73 Fatal("operator =", "not implemented") ;
74 return *this ;
75 }
76
77protected:
78 void EvalCoreEnergy(Float_t logWeight,TClonesArray * digits) ;
79 virtual void EvalDispersion(Float_t logWeight,TClonesArray * digits) ; // computes the dispersion of the shower
80 virtual void EvalElipsAxis(Float_t logWeight, TClonesArray * digits ); // computes the axis of shower ellipsoide
81 void EvalTime( TClonesArray * digits );
82 virtual Bool_t AreNeighbours(AliEMCALDigit * digit1, AliEMCALDigit * digit2 ) const;
83 Float_t ThetaToEta(Float_t arg) const; //Converts Theta (Radians) to Eta(Radians)
84 Float_t EtaToTheta(Float_t arg) const; //Converts Eta (Radians) to Theta(Radians)
85
86 Float_t fCoreEnergy ; // energy in a shower core
87 Float_t fLambda[2] ; // shower ellipse axes
88 Float_t fDispersion ; // shower dispersion
89 Float_t *fEnergyList ; //[fMulDigit] energy of digits
90 Float_t fTime ; // Time of the digit with maximal energy deposition
91 Float_t fCoreRadius; // The radius in which the core energy is evaluated
92
93 ClassDef(AliEMCALRecPoint,5) // RecPoint for EMCAL (Base Class)
94
95};
96
97#endif // AliEMCALRECPOINT_H