]>
Commit | Line | Data |
---|---|---|
458282ff | 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 | //_________________________________________________________________________ | |
9 | // RecPoint implementation for PHOS-CPV | |
10 | // An CpvRecPoint is a cluster of digits | |
a3dfe79c | 11 | //*-- Author: Yuri Kharlov |
12 | // (after Dmitri Peressounko (RRC KI & SUBATECH)) | |
13 | // 30 October 2000 | |
458282ff | 14 | // --- ROOT system --- |
15 | ||
e957fea8 | 16 | //#include "TObject.h" |
17 | //#include "TArrayI.h" | |
458282ff | 18 | |
19 | // --- Standard library --- | |
20 | ||
21 | // --- AliRoot header files --- | |
22 | ||
e957fea8 | 23 | //#include "AliPHOSDigit.h" |
b5241d61 | 24 | #include "AliPHOSEmcRecPoint.h" |
e957fea8 | 25 | //#include "AliPHOSGeometry.h" |
458282ff | 26 | |
b5241d61 | 27 | class AliPHOSCpvRecPoint : public AliPHOSEmcRecPoint { |
458282ff | 28 | |
29 | public: | |
30 | ||
b5241d61 | 31 | AliPHOSCpvRecPoint() ; |
73a68ccb | 32 | AliPHOSCpvRecPoint(const char * opt) ; |
a8c47ab6 | 33 | AliPHOSCpvRecPoint(const AliPHOSCpvRecPoint & rp) : AliPHOSEmcRecPoint(rp) { |
e957fea8 | 34 | Fatal("cpy ctor", "not implemented") ; |
458282ff | 35 | } |
36 | ||
37 | virtual ~AliPHOSCpvRecPoint() ; | |
38 | ||
b5241d61 | 39 | Int_t Compare(const TObject * obj) const; // method for sorting |
40 | void EvalAll(Float_t logWeight,TClonesArray * digits) ; | |
41 | void EvalLocalPosition(Float_t logWeight,TClonesArray * digits ) ; | |
42 | void EvalClusterLengths(TClonesArray * digits) ; | |
43 | ||
baef0810 | 44 | virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) const ; |
b5241d61 | 45 | |
baef0810 | 46 | void GetClusterLengths(Int_t &lengX, Int_t &lengZ) const {lengX = fLengX ;lengZ = fLengZ ;} |
9688c1dd | 47 | Bool_t IsEmc(void) const {return kFALSE ; } // tells that this is not a EMC |
48 | Bool_t IsCPV(void) const {return kTRUE ; } // true if the recpoint is in CPV | |
b5241d61 | 49 | Bool_t IsSortable() const { return kTRUE ; } // tells that this is a sortable object |
e957fea8 | 50 | void Print() ; |
458282ff | 51 | |
8c140292 | 52 | AliPHOSCpvRecPoint & operator = (const AliPHOSCpvRecPoint & /*rvalue*/) { |
e957fea8 | 53 | Fatal("operator =", "not implemented") ; return *this ; |
458282ff | 54 | } |
55 | ||
b5241d61 | 56 | protected: |
458282ff | 57 | |
ad8cfaf4 | 58 | Bool_t AreNeighbours(AliPHOSDigit * digit1, AliPHOSDigit * digit2 ) const ; |
458282ff | 59 | |
458282ff | 60 | Int_t fLengX ; // cluster length along x |
61 | Int_t fLengZ ; // cluster length along z | |
62 | ||
63 | ClassDef(AliPHOSCpvRecPoint,1) // CPV RecPoint (cluster) | |
64 | ||
65 | }; | |
66 | ||
67 | #endif // AliPHOSCPVRECPOINT_H |