]>
Commit | Line | Data |
---|---|---|
ab48128d | 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 | |
d64c959b | 8 | //*-- Author: Yves Schutz (SUBATECH) |
70a93198 | 9 | //*-- Author: Dmitri Peressounko (RRC KI & SUBATECH) |
10 | //*-- Author: Heather Gray (LBL): merged AliEMCALRecPoint and AliEMCALTowerRecPoint 02/04 | |
ab48128d | 11 | |
12 | // --- ROOT system --- | |
70a93198 | 13 | class TVector3 ; |
ab48128d | 14 | |
ab48128d | 15 | // --- Standard library --- |
16 | ||
17 | // --- AliRoot header files --- | |
18 | ||
19 | #include "AliRecPoint.h" | |
20 | #include "AliEMCALDigit.h" | |
21 | ||
22 | class AliEMCALRecPoint : public AliRecPoint { | |
23 | ||
24 | public: | |
25 | ||
26 | typedef TObjArray RecPointsList ; | |
27 | ||
28 | AliEMCALRecPoint() ; // ctor | |
29 | AliEMCALRecPoint(const char * opt) ; // ctor | |
d64c959b | 30 | AliEMCALRecPoint(const AliEMCALRecPoint & rp):AliRecPoint(rp) { Fatal("cpy ctor", "not implemented") ; } |
ab48128d | 31 | |
70a93198 | 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; | |
ab48128d | 36 | virtual Int_t DistancetoPrimitive(Int_t px, Int_t py); |
37 | virtual void Draw(Option_t * option="") ; | |
9e5d2067 | 38 | virtual void ExecuteEvent(Int_t event, Int_t, Int_t) ; |
70a93198 | 39 | |
40 | virtual void EvalAll(Float_t logWeight, TClonesArray * digits); | |
41 | virtual void EvalLocalPosition(Float_t logWeight, TClonesArray * digits) ; | |
e52475ed | 42 | // void EvalLocalPositionSimple(TClonesArray *digits); // ?? |
70a93198 | 43 | virtual void EvalPrimaries(TClonesArray * digits) ; |
87cdc3be | 44 | virtual void EvalParents(TClonesArray * digits) ; |
70a93198 | 45 | |
4800667c | 46 | using AliRecPoint::GetGlobalPosition; |
70a93198 | 47 | virtual void GetGlobalPosition(TVector3 & gpos) const; // return global position (x, y, z) in ALICE |
e52475ed | 48 | virtual void GetLocalPosition(TVector3 & lpos) const; // return local position (x, y, z) in EMCAL SM |
ab48128d | 49 | virtual Int_t * GetPrimaries(Int_t & number) const {number = fMulTrack ; |
50 | return fTracksList ; } | |
e52475ed | 51 | virtual Int_t * GetParents(Int_t & number) const {number = fMulParent ; |
87cdc3be | 52 | return fParentsList ; } |
70a93198 | 53 | Float_t GetCoreEnergy()const {return fCoreEnergy ;} |
54 | virtual Float_t GetDispersion()const {return fDispersion ;} | |
55 | virtual void GetElipsAxis(Float_t * lambda)const {lambda[0] = fLambda[0]; lambda[1] = fLambda[1];}; | |
56 | ||
57 | Float_t * GetEnergiesList() const {return fEnergyList ;} // gets the list of energies making this recpoint | |
58 | Float_t GetMaximalEnergy(void) const ; // get the highest energy in the cluster | |
59 | Int_t GetMaximumMultiplicity() const {return fMaxDigit ;} // gets the maximum number of digits allowed | |
60 | Int_t GetMultiplicity(void) const { return fMulDigit ; } // gets the number of digits making this recpoint | |
61 | Int_t GetMultiplicityAtLevel(Float_t level) const ; // computes multiplicity of digits with | |
e52475ed | 62 | Int_t * GetAbsId() const {return fAbsIdList;} |
63 | Int_t GetAbsId(int i) const {if(i>=0 && i<fMulDigit)return fAbsIdList[i]; else return -1;} | |
64 | // energy above relative level | |
70a93198 | 65 | virtual Int_t GetNumberOfLocalMax(AliEMCALDigit ** maxAt, Float_t * maxAtEnergy, |
66 | Float_t locMaxCut,TClonesArray * digits ) const ; | |
67 | // searches for the local maxima | |
68 | Float_t GetTime(void) const{return fTime ; } | |
69 | ||
7ee5c5be | 70 | virtual Bool_t IsEmc(void)const { return kTRUE ; } |
ab48128d | 71 | virtual Bool_t IsSortable() const { |
72 | // tells that this is a sortable object | |
73 | return kTRUE ; | |
74 | } | |
75 | virtual void Paint(Option_t * option=""); | |
5dee926e | 76 | virtual void Print(Option_t * option="") const ; |
7ee5c5be | 77 | |
ab48128d | 78 | AliEMCALRecPoint & operator = (const AliEMCALRecPoint & ) { |
d64c959b | 79 | Fatal("operator =", "not implemented") ; |
ab48128d | 80 | return *this ; |
81 | } | |
82 | ||
83 | protected: | |
70a93198 | 84 | void EvalCoreEnergy(Float_t logWeight,TClonesArray * digits) ; |
85 | virtual void EvalDispersion(Float_t logWeight,TClonesArray * digits) ; // computes the dispersion of the shower | |
86 | virtual void EvalElipsAxis(Float_t logWeight, TClonesArray * digits ); // computes the axis of shower ellipsoide | |
87 | void EvalTime( TClonesArray * digits ); | |
88 | virtual Bool_t AreNeighbours(AliEMCALDigit * digit1, AliEMCALDigit * digit2 ) const; | |
89 | Float_t ThetaToEta(Float_t arg) const; //Converts Theta (Radians) to Eta(Radians) | |
90 | Float_t EtaToTheta(Float_t arg) const; //Converts Eta (Radians) to Theta(Radians) | |
91 | ||
92 | Float_t fCoreEnergy ; // energy in a shower core | |
93 | Float_t fLambda[2] ; // shower ellipse axes | |
94 | Float_t fDispersion ; // shower dispersion | |
95 | Float_t *fEnergyList ; //[fMulDigit] energy of digits | |
e52475ed | 96 | Int_t *fAbsIdList; //[fMulDigit] absId of digits |
70a93198 | 97 | Float_t fTime ; // Time of the digit with maximal energy deposition |
98 | Float_t fCoreRadius; // The radius in which the core energy is evaluated | |
87cdc3be | 99 | Int_t fMulParent; // Multiplicity of the parents |
100 | Int_t fMaxParent; // Maximum number of parents allowed | |
73f2fed2 | 101 | Int_t * fParentsList; // [fMulParent] list of the parents of the digits |
e52475ed | 102 | Int_t fSuperModuleNumber; // |
103 | ||
104 | ClassDef(AliEMCALRecPoint,7) // RecPoint for EMCAL (Base Class) | |
ab48128d | 105 | |
106 | }; | |
107 | ||
108 | #endif // AliEMCALRECPOINT_H |