]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliRecPoint.h
TClonesArrays deleted correctly
[u/mrichter/AliRoot.git] / STEER / AliRecPoint.h
1 #ifndef ALIRECPOINT_H
2 #define ALIRECPOINT_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 //  Base class for Reconstructed Point        //
10 //  Version 0.1                               //
11 //  Author Yves Schutz     SUBATECH           //
12 //                                            //  
13 //                                            //
14 ////////////////////////////////////////////////
15
16 // --- Standard library ---
17
18
19 // --- ROOT system ---
20
21 #include "TObject.h"
22 #include "TVector3.h"
23 class TMatrix;
24
25 // --- AliRoot header files ---
26
27 class AliDigitNew;
28 class AliGeometry;
29
30 class AliRecPoint : public TObject {
31
32 public:
33
34   AliRecPoint() ;                   // ctor            
35   AliRecPoint(const AliRecPoint &recp);  // copy ctor
36   virtual ~AliRecPoint() ;          // dtor
37  
38   virtual void  AddDigit(AliDigitNew & digit) ;  // add a digit to the digit's indexes list  
39   //  virtual void  AddTrack(AliTrack & track) ;  // add a track to the tracks list  
40   void  Copy(AliRecPoint &recp) const;
41   virtual void  GetCovarianceMatrix(TMatrix & mat) ;
42   virtual AliGeometry * GetGeom() const { return fGeom; } 
43   virtual void  GetGlobalPosition(TVector3 & gpos, TMatrix & gmat) const ; // return global position in ALICE
44   virtual int * GetDigitsList(void) const { return fDigitsList ; }
45   //  virtual int * GetTracksList(void) const { return fTracksList ; }
46   virtual Float_t GetEnergy() const {return fAmp; } 
47   virtual void  GetLocalPosition(TVector3 & pos) const ;
48   virtual Int_t GetDigitsMultiplicity(void) const { return fMulDigit ; }
49   Int_t         GetIndexInList() const { return fIndexInList ; } 
50   virtual Int_t GetMaximumDigitMultiplicity() const { return  fMaxDigit; } 
51   virtual Int_t GetMaximumTrackMultiplicity() const { return  fMaxTrack; } 
52   virtual Int_t GetTracksMultiplicity(void) const { return fMulTrack ; }
53   virtual void  Print(Option_t * opt = "void") = 0 ; 
54   AliRecPoint & operator= (const AliRecPoint &recp);
55   void          SetIndexInList(Int_t val) { fIndexInList = val ; } 
56
57
58 protected:
59
60   Float_t       fAmp ;        // summed amplitude of digits 
61   AliGeometry * fGeom ;       //! pointer to the geometry class 
62   Int_t         fIndexInList ;// the index of this RecPoint in the list stored in TreeR (to be set by analysis)
63   TVector3      fLocPos ;     // local position in the sub-detector coordinate
64   TMatrix *     fLocPosM ;    // covariance matrix ;  
65   Int_t         fMaxDigit ;   //! max initial size of digits array (not saved)
66   Int_t         fMulDigit ;   // total multiplicity of digits
67   Int_t         fMaxTrack ;   //! max initial size of tracks array (not saved)
68   Int_t         fMulTrack ;   // total multiplicity of tracks
69   Int_t *       fDigitsList ; //[fMulDigit] list of digit's indexes from which the point was reconstructed 
70   Int_t *       fTracksList ; //[fMulTrack] list of tracks to which the point was assigned 
71
72   ClassDef(AliRecPoint,1) // Base class for reconstructed space points
73  
74 };
75
76 #endif // ALIRECPOINT_H