]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSPpsdRecPoint.h
Initialize decayer before generation. Important if run inside cocktail.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSPpsdRecPoint.h
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
6 /* $Id$ */
7
8 //_________________________________________________________________________
9 //  A RecPoint (cluster) in the PPSD 
10 //  A PPSD RecPoint ends up to be a single digit
11 //  Oh yeah               
12 //*--  Yves Schutz (SUBATECH)
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
27   AliPHOSPpsdRecPoint() ;           // ctor   
28   virtual ~AliPHOSPpsdRecPoint(){
29     // dtor
30   }
31   virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) ;
32   Int_t   Compare(const TObject * obj) const;                    // method to sort clusters
33   void    EvalAll() ;
34   void    EvalLocalPosition() ;              // computes the position in the module of the cluster center
35   Float_t GetDelta(void) const {return fDelta ;  }              // returns the parameter used for sorting
36   Int_t   GetMultiplicity(void) const { return fMulDigit ;  }   // returns the multiplicity of digits at 
37                                                                 // the origin of this recpoint
38   Int_t   GetMaximumMultiplicity() const { return   fMaxDigit ; }     // returns the maximum allowed digit multiplicity 
39   Bool_t  GetUp() const ;               // true if cluster is in upper ppsd 
40   Bool_t  IsEmc(void) const {return kFALSE ; }      // tells that this is not a EMC
41   Bool_t  IsSortable() const { return kTRUE ;  }    // tells that this is a sortable object
42   virtual void  Paint(Option_t * option="");
43   void    Print(Option_t * opt = "void") ; 
44
45 private:
46
47   Float_t        fDelta ;         // parameter used for sorting
48   
49   ClassDef(AliPHOSPpsdRecPoint,1)  // PPSD RecPoint
50
51 };
52
53 #endif // AliPHOSPPSDRECPOINT_H