X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliRecPoint.h;h=06874552b41a8db08de285ed70b85c1fdc580b59;hb=4ab8985c1f7fbe9b9642049b922752f866ac00a2;hp=e726c8dcee36953ecebe10ff9f1941f777acf2bd;hpb=712d65280c3bce95887dc0418dff92ebae3375d9;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliRecPoint.h b/STEER/AliRecPoint.h index e726c8dcee3..06874552b41 100644 --- a/STEER/AliRecPoint.h +++ b/STEER/AliRecPoint.h @@ -13,25 +13,18 @@ // // //////////////////////////////////////////////// -// --- ROOT system --- - -#include "TObject.h" -#include "TVector3.h" -#include "TMatrix.h" -#include "TClonesArray.h" - // --- Standard library --- -#include "assert.h" -#include "iostream.h" -// --- AliRoot header files --- +// --- ROOT system --- -#include "AliDigitNew.h" -#include "AliGeometry.h" -//#include "AliTrack.h" +#include +#include +#include +// --- AliRoot header files --- +class AliDigitNew; class AliGeometry; class AliRecPoint : public TObject { @@ -39,33 +32,38 @@ class AliRecPoint : public TObject { public: AliRecPoint() ; // ctor + AliRecPoint(const char * opt) ; // ctor + AliRecPoint(const AliRecPoint &recp); // copy ctor virtual ~AliRecPoint() ; // dtor virtual void AddDigit(AliDigitNew & digit) ; // add a digit to the digit's indexes list // virtual void AddTrack(AliTrack & track) ; // add a track to the tracks list - virtual void GetCovarianceMatrix(TMatrix & mat) ; + virtual void GetCovarianceMatrix(TMatrixF & mat) const; virtual AliGeometry * GetGeom() const { return fGeom; } - virtual void GetGlobalPosition(TVector3 & gpos, TMatrix & gmat) ; // return the global position in ALICE + virtual void GetGlobalPosition(TVector3 & gpos, TMatrixF & gmat) const ; // return global position in ALICE virtual int * GetDigitsList(void) const { return fDigitsList ; } // virtual int * GetTracksList(void) const { return fTracksList ; } - virtual Float_t GetEnergy() {return fAmp; } - virtual void GetLocalPosition(TVector3 & pos) ; + virtual Float_t GetEnergy() const {return fAmp; } + virtual void GetLocalPosition(TVector3 & pos) const ; virtual Int_t GetDigitsMultiplicity(void) const { return fMulDigit ; } Int_t GetIndexInList() const { return fIndexInList ; } virtual Int_t GetMaximumDigitMultiplicity() const { return fMaxDigit; } virtual Int_t GetMaximumTrackMultiplicity() const { return fMaxTrack; } virtual Int_t GetTracksMultiplicity(void) const { return fMulTrack ; } - virtual void Print(Option_t * opt = "void") = 0 ; + AliRecPoint & operator= (const AliRecPoint &recp) + {recp.Copy(*this); return (*this);} + void SetIndexInList(Int_t val) { fIndexInList = val ; } protected: + void Copy(TObject &recp) const; Float_t fAmp ; // summed amplitude of digits AliGeometry * fGeom ; //! pointer to the geometry class Int_t fIndexInList ;// the index of this RecPoint in the list stored in TreeR (to be set by analysis) TVector3 fLocPos ; // local position in the sub-detector coordinate - TMatrix * fLocPosM ; // covariance matrix ; + TMatrixF * fLocPosM ; // covariance matrix ; Int_t fMaxDigit ; //! max initial size of digits array (not saved) Int_t fMulDigit ; // total multiplicity of digits Int_t fMaxTrack ; //! max initial size of tracks array (not saved) @@ -73,10 +71,7 @@ protected: Int_t * fDigitsList ; //[fMulDigit] list of digit's indexes from which the point was reconstructed Int_t * fTracksList ; //[fMulTrack] list of tracks to which the point was assigned -public: - - - ClassDef(AliRecPoint,1) + ClassDef(AliRecPoint,1) // Base class for reconstructed space points };