X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSRecParticle.h;h=9fa2b2dd6d182952256360b51548f5e0b2b51035;hb=12a7cec1faa853df3fe46cbb2ab175b596e8156e;hp=6f494f65f946bebf9b47a7c444948a8e046bf2e2;hpb=a278df550f3b5c4fcab0b857805d970be80252d9;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSRecParticle.h b/PHOS/AliPHOSRecParticle.h index 6f494f65f94..9fa2b2dd6d1 100644 --- a/PHOS/AliPHOSRecParticle.h +++ b/PHOS/AliPHOSRecParticle.h @@ -18,21 +18,29 @@ // --- AliRoot header files --- #include "AliPHOSFastRecParticle.h" + class TParticle ; +#include "TVector3.h" class AliPHOSRecParticle : public AliPHOSFastRecParticle { public: - AliPHOSRecParticle() { fPHOSTrackSegment = 0 ; fDebug = kFALSE ; } + AliPHOSRecParticle() ; AliPHOSRecParticle(const AliPHOSRecParticle & rp) ; // ctor virtual ~AliPHOSRecParticle(){ } Int_t GetPHOSTSIndex()const { return fPHOSTrackSegment ; } - virtual const Int_t GetNPrimariesToRecParticles() const ; - virtual const Int_t GetNPrimaries() const ; + virtual Int_t GetNPrimariesToRecParticles() const ; + virtual Int_t GetNPrimaries() const ; + TVector3 GetPos() const { return fPos ; } virtual const TParticle * GetPrimary(Int_t index) const ; + virtual const TParticle * GetPrimary() const ; + const Int_t GetPrimaryIndex() const ; + const Double_t *GetPID() { return fPID ; } void SetDebug() { fDebug = kTRUE ; } + void SetPID(Int_t type, Double_t weight) ; + void SetPos(TVector3 pos) { fPos.SetXYZ( pos.X(), pos.Y(), pos.Z() ); } void UnsetDebug() { fDebug = kFALSE ; } void SetTrackSegment(Int_t index){fPHOSTrackSegment = index; } @@ -41,9 +49,10 @@ class AliPHOSRecParticle : public AliPHOSFastRecParticle { private: Int_t fPHOSTrackSegment ; // pointer to the associated track segment in PHOS - Bool_t fDebug ; + Bool_t fDebug ; // to steer debug output + TVector3 fPos ; // position in the global alice coordinate system - ClassDef(AliPHOSRecParticle,2) // Reconstructed Particle + ClassDef(AliPHOSRecParticle,3) // Reconstructed Particle }; #endif // AliPHOSRECPARTICLE_H