]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PHOS/AliPHOSCpvRecPoint.h
Effective C++ warnings fixed (Timur Pocheptsov)
[u/mrichter/AliRoot.git] / PHOS / AliPHOSCpvRecPoint.h
1 #ifndef ALIPHOSCPVRECPOINT_H
2 #define ALIPHOSCPVRECPOINT_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 /* History of cvs commits:
9  *
10  * $Log$
11  * Revision 1.18  2005/05/28 14:19:04  schutz
12  * Compilation warnings fixed by T.P.
13  *
14  */
15
16 //_________________________________________________________________________
17 //  RecPoint implementation for PHOS-CPV
18 //  An CpvRecPoint is a cluster of digits   
19 //*-- Author: Yuri Kharlov
20 //  (after Dmitri Peressounko (RRC KI & SUBATECH))
21 //  30 October 2000 
22 // --- ROOT system ---
23
24 //#include "TObject.h"
25 //#include "TArrayI.h"
26  
27 // --- Standard library ---
28
29 // --- AliRoot header files ---
30
31 //#include "AliPHOSDigit.h"
32 #include "AliPHOSEmcRecPoint.h"
33 //#include "AliPHOSGeometry.h"
34
35 class AliPHOSCpvRecPoint : public AliPHOSEmcRecPoint  {
36
37 public:
38
39   AliPHOSCpvRecPoint() ;
40   AliPHOSCpvRecPoint(const char * opt) ;
41
42   virtual ~AliPHOSCpvRecPoint() ;  
43
44   Int_t  Compare(const TObject * obj) const;                 // method for sorting  
45   void   EvalAll(Float_t logWeight,TClonesArray * digits) ;
46   void   EvalLocalPosition(Float_t logWeight,TClonesArray * digits ) ;  
47   void   EvalClusterLengths(TClonesArray * digits) ;
48
49   virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) /*const*/ ; 
50
51   void   GetClusterLengths(Int_t &lengX, Int_t &lengZ) const {lengX = fLengX ;lengZ = fLengZ ;}
52   Bool_t IsEmc(void) const {return kFALSE ; }        // tells that this is not a EMC
53   Bool_t IsCPV(void) const {return kTRUE  ; }        // true if the recpoint is in CPV
54   Bool_t IsSortable() const { return kTRUE ; }    // tells that this is a sortable object
55   void   Print(const Option_t * = "") const ; 
56
57  protected:
58
59   Bool_t AreNeighbours(AliPHOSDigit * digit1, AliPHOSDigit * digit2 ) const ;
60
61   Int_t    fLengX ;          // cluster length along x
62   Int_t    fLengZ ;          // cluster length along z
63   
64   ClassDef(AliPHOSCpvRecPoint,1)  // CPV RecPoint (cluster)
65
66 };
67
68 #endif // AliPHOSCPVRECPOINT_H