]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PHOS/AliPHOSCpvRecPoint.h
Scripts for PHOS alignment
[u/mrichter/AliRoot.git] / PHOS / AliPHOSCpvRecPoint.h
CommitLineData
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
702ab87e 8/* History of cvs commits:
9 *
10 * $Log$
11 */
12
458282ff 13//_________________________________________________________________________
14// RecPoint implementation for PHOS-CPV
15// An CpvRecPoint is a cluster of digits
a3dfe79c 16//*-- Author: Yuri Kharlov
17// (after Dmitri Peressounko (RRC KI & SUBATECH))
18// 30 October 2000
458282ff 19// --- ROOT system ---
20
e957fea8 21//#include "TObject.h"
22//#include "TArrayI.h"
458282ff 23
24// --- Standard library ---
25
26// --- AliRoot header files ---
27
e957fea8 28//#include "AliPHOSDigit.h"
b5241d61 29#include "AliPHOSEmcRecPoint.h"
e957fea8 30//#include "AliPHOSGeometry.h"
458282ff 31
b5241d61 32class AliPHOSCpvRecPoint : public AliPHOSEmcRecPoint {
458282ff 33
34public:
35
b5241d61 36 AliPHOSCpvRecPoint() ;
73a68ccb 37 AliPHOSCpvRecPoint(const char * opt) ;
a8c47ab6 38 AliPHOSCpvRecPoint(const AliPHOSCpvRecPoint & rp) : AliPHOSEmcRecPoint(rp) {
e957fea8 39 Fatal("cpy ctor", "not implemented") ;
458282ff 40 }
41
42 virtual ~AliPHOSCpvRecPoint() ;
43
b5241d61 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
702ab87e 49 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) /*const*/ ;
b5241d61 50
baef0810 51 void GetClusterLengths(Int_t &lengX, Int_t &lengZ) const {lengX = fLengX ;lengZ = fLengZ ;}
9688c1dd 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
b5241d61 54 Bool_t IsSortable() const { return kTRUE ; } // tells that this is a sortable object
702ab87e 55 void Print(const Option_t * = "") const ;
458282ff 56
8c140292 57 AliPHOSCpvRecPoint & operator = (const AliPHOSCpvRecPoint & /*rvalue*/) {
e957fea8 58 Fatal("operator =", "not implemented") ; return *this ;
458282ff 59 }
60
b5241d61 61 protected:
458282ff 62
ad8cfaf4 63 Bool_t AreNeighbours(AliPHOSDigit * digit1, AliPHOSDigit * digit2 ) const ;
458282ff 64
458282ff 65 Int_t fLengX ; // cluster length along x
66 Int_t fLengZ ; // cluster length along z
67
68 ClassDef(AliPHOSCpvRecPoint,1) // CPV RecPoint (cluster)
69
70};
71
72#endif // AliPHOSCPVRECPOINT_H