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