]>
Commit | Line | Data |
---|---|---|
d15a28e7 | 1 | #ifndef ALIPHOSPPSDRECPOINT_H |
2 | #define ALIPHOSPPSDRECPOINT_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 | // A RecPoint (cluster) in the PPSD | |
10 | // A PPSD RecPoint ends up to be a single digit | |
11 | // | |
12 | //*-- Yves Schutz (SUBATECH) | |
d15a28e7 | 13 | |
14 | // --- ROOT system --- | |
15 | ||
16 | // --- Standard library --- | |
17 | ||
18 | // --- AliRoot header files --- | |
19 | ||
20 | #include "AliPHOSDigit.h" | |
21 | #include "AliPHOSRecPoint.h" | |
22 | ||
23 | class AliPHOSPpsdRecPoint : public AliPHOSRecPoint { | |
24 | ||
25 | public: | |
26 | ||
b2a60966 | 27 | AliPHOSPpsdRecPoint() ; // ctor |
88714635 | 28 | virtual ~AliPHOSPpsdRecPoint(){ |
29 | // dtor | |
30 | } | |
83974468 | 31 | virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) ; |
d15a28e7 | 32 | Int_t Compare(TObject * obj) ; // method to sort clusters |
33 | ||
88714635 | 34 | Float_t GetDelta(void) { |
35 | // returns the parameter used for sorting | |
36 | return fDelta ; | |
37 | } | |
38 | Int_t GetMultiplicity(void) const { | |
39 | // returns the multiplicity of digits at the origin of this recpoint | |
40 | return fMulDigit ; | |
41 | } | |
42 | Int_t GetMaximumMultiplicity() { | |
43 | // returns the maximum allowed digit multiplicity | |
44 | return fMaxDigit ; | |
45 | } | |
6ad0bfa0 | 46 | void GetLocalPosition(TVector3 &LPos) ; // computes the position in the module of the cluster center |
88714635 | 47 | Float_t GetTotalEnergy(void) const { |
48 | // returns the amplitude for this recpoint | |
49 | // in Ppsd EMC RecPoint Amp = Energy | |
50 | return fAmp ; | |
51 | } | |
6ad0bfa0 | 52 | Bool_t GetUp() ; // true if cluster is in upper ppsd |
88714635 | 53 | Bool_t IsEmc(void) { |
54 | // tells that this is not a EMC | |
55 | return kFALSE ; | |
56 | } | |
57 | Bool_t IsSortable() const { | |
58 | // tells that this is a sortable object | |
59 | return kTRUE ; | |
60 | } | |
9f616d61 | 61 | virtual void Paint(Option_t * option=""); |
6ad0bfa0 | 62 | void Print(Option_t * opt = "void") ; |
d15a28e7 | 63 | |
d15a28e7 | 64 | private: |
65 | ||
66 | Float_t fDelta ; // parameter used for sorting | |
d15a28e7 | 67 | |
b2a60966 | 68 | ClassDef(AliPHOSPpsdRecPoint,1) // PPSD RecPoint |
d15a28e7 | 69 | |
70 | }; | |
71 | ||
72 | #endif // AliPHOSPPSDRECPOINT_H |