Coding rule violations fixed.
[u/mrichter/AliRoot.git] / PHOS / AliPHOSRecPoint.h
CommitLineData
d15a28e7 1#ifndef ALIPHOSRECPOINT_H
2#define ALIPHOSRECPOINT_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
b2a60966 5//_________________________________________________________________________
6// Base Class for PHOS Reconstructed Points
2f04ed65 7// A recpoint being equivalent to a cluster in encal terminology
b2a60966 8//*-- Author: Gines Martinez (SUBATECH)
d15a28e7 9
10// --- ROOT system ---
9ee9f78d 11#include <TVector3.h>
d15a28e7 12
d15a28e7 13// --- AliRoot header files ---
9ee9f78d 14#include "AliCluster.h"
d15a28e7 15
9ee9f78d 16class TClonesArray ;
17class AliPHOSDigit ;
18class AliDigitNew;
19class TMAtrixF;
83974468 20
9ee9f78d 21class AliPHOSRecPoint : public AliCluster {
d15a28e7 22
88714635 23 public:
7609878c 24
25 typedef TObjArray RecPointsList ;
d15a28e7 26
27 AliPHOSRecPoint() ; // ctor
73a68ccb 28 AliPHOSRecPoint(const char * opt) ; // ctor
9ee9f78d 29
30 AliPHOSRecPoint(const AliPHOSRecPoint &rp);
31 AliPHOSRecPoint& operator= (const AliPHOSRecPoint &rp);
32
6c370def 33
9ee9f78d 34 virtual ~AliPHOSRecPoint();
35
0a6d52e3 36 virtual void AddDigit(AliDigitNew &){
e957fea8 37 Fatal("AddDigit", "use AddDigit(AliPHOSDigit & digit, Float_t Energy)") ;
0a6d52e3 38 }
83974468 39 virtual void AddDigit(AliPHOSDigit & digit, Float_t Energy) = 0 ;
2731cd1e 40 virtual Int_t Compare(const TObject * obj) const = 0 ;
cf239357 41 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
42 virtual void Draw(Option_t * option="") ;
88cb7938 43 virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py) ;
e347da7b 44 virtual void EvalAll(TClonesArray * digits) ;
b48eb81e 45 void EvalLocal2TrackingCSTransform();
2731cd1e 46 virtual void EvalPHOSMod(AliPHOSDigit * digit) ;
9ee9f78d 47 virtual int * GetDigitsList(void) const { return fDigitsList ; }
48 virtual Float_t GetEnergy() const {return fAmp; }
49 virtual void GetLocalPosition(TVector3 & pos) const ;
e8d02863 50 virtual void GetGlobalPosition(TVector3 & gpos, TMatrixF & gmat) const ; // return global position in ALICE
ad8cfaf4 51 virtual Int_t GetPHOSMod(void) const {return fPHOSMod ; }
2731cd1e 52 virtual Int_t * GetPrimaries(Int_t & number) const {number = fMulTrack ;
53 return fTracksList ; }
9ee9f78d 54 virtual Int_t GetDigitsMultiplicity(void) const { return fMulDigit ; }
55 Int_t GetIndexInList() const { return fIndexInList ; }
ad8cfaf4 56 virtual Bool_t IsEmc(void)const { return kTRUE ; }
88714635 57 virtual Bool_t IsSortable() const {
58 // tells that this is a sortable object
59 return kTRUE ;
60 }
9ee9f78d 61 void SetIndexInList(Int_t val) { fIndexInList = val ; }
15605d3c 62 virtual void Paint(Option_t * option="");
a8c47ab6 63 virtual void Print(Option_t *) const {
88714635 64 // Print prototype
65 }
d15a28e7 66
ed4205d8 67protected:
9f616d61 68
9ee9f78d 69 Int_t fPHOSMod ; // PHOS Module number in which the RecPoint is found
70 Int_t fMulTrack ; // total multiplicity of tracks to which the point was assigned
71 Int_t fMaxDigit ; //! max initial size of digits array (not saved)
72 Int_t fMulDigit ; // total multiplicity of digits
73 Int_t fMaxTrack ; //! max initial size of tracks array (not saved)
74 Int_t* fDigitsList ; //[fMulDigit] list of digit's indexes from which the point was reconstructed
75 Int_t* fTracksList ; //[fMulTrack] list of tracks to which the point was assigned
76 Float_t fAmp ; // summed amplitude of digits
77 Int_t fIndexInList ;// the index of this RecPoint in the list stored in TreeR (to be set by analysis)
78 TVector3 fLocPos ; // local position in the sub-detector coordinate
9ee9f78d 79
80
b7575333 81 ClassDef(AliPHOSRecPoint,3) // RecPoint for PHOS (Base Class)
d15a28e7 82
83};
84
85#endif // AliPHOSRECPOINT_H