3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ////////////////////////////////////////////////
9 // Base class for Reconstructed Point //
11 // Author Yves Schutz SUBATECH //
14 ////////////////////////////////////////////////
16 // --- Standard library ---
19 // --- ROOT system ---
25 // --- AliRoot header files ---
30 class AliRecPoint : public TObject {
34 AliRecPoint() ; // ctor
35 AliRecPoint(const char * opt) ; // ctor
36 AliRecPoint(const AliRecPoint &recp); // copy ctor
37 virtual ~AliRecPoint() ; // dtor
39 virtual void AddDigit(AliDigitNew & digit) ; // add a digit to the digit's indexes list
40 // virtual void AddTrack(AliTrack & track) ; // add a track to the tracks list
41 void Copy(AliRecPoint &recp) const;
42 virtual void GetCovarianceMatrix(TMatrix & mat) ;
43 virtual AliGeometry * GetGeom() const { return fGeom; }
44 virtual void GetGlobalPosition(TVector3 & gpos, TMatrix & gmat) const ; // return global position in ALICE
45 virtual int * GetDigitsList(void) const { return fDigitsList ; }
46 // virtual int * GetTracksList(void) const { return fTracksList ; }
47 virtual Float_t GetEnergy() const {return fAmp; }
48 virtual void GetLocalPosition(TVector3 & pos) const ;
49 virtual Int_t GetDigitsMultiplicity(void) const { return fMulDigit ; }
50 Int_t GetIndexInList() const { return fIndexInList ; }
51 virtual Int_t GetMaximumDigitMultiplicity() const { return fMaxDigit; }
52 virtual Int_t GetMaximumTrackMultiplicity() const { return fMaxTrack; }
53 virtual Int_t GetTracksMultiplicity(void) const { return fMulTrack ; }
54 //PH virtual void Print(Option_t * opt = "void") = 0 ;
55 virtual void Print(Option_t * opt = "void") {;}
56 AliRecPoint & operator= (const AliRecPoint &recp);
57 void SetIndexInList(Int_t val) { fIndexInList = val ; }
62 Float_t fAmp ; // summed amplitude of digits
63 AliGeometry * fGeom ; //! pointer to the geometry class
64 Int_t fIndexInList ;// the index of this RecPoint in the list stored in TreeR (to be set by analysis)
65 TVector3 fLocPos ; // local position in the sub-detector coordinate
66 TMatrix * fLocPosM ; // covariance matrix ;
67 Int_t fMaxDigit ; //! max initial size of digits array (not saved)
68 Int_t fMulDigit ; // total multiplicity of digits
69 Int_t fMaxTrack ; //! max initial size of tracks array (not saved)
70 Int_t fMulTrack ; // total multiplicity of tracks
71 Int_t * fDigitsList ; //[fMulDigit] list of digit's indexes from which the point was reconstructed
72 Int_t * fTracksList ; //[fMulTrack] list of tracks to which the point was assigned
74 ClassDef(AliRecPoint,1) // Base class for reconstructed space points
78 #endif // ALIRECPOINT_H