X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSHit.h;h=1b132e5995fe700afbcf72fb331a82d075bb2aca;hb=e957fea89c462908a01dcfa4f611e99a98080071;hp=4d40cfcee67f1b0db043b4a2df4f39e8c529ba15;hpb=2d31ec59ff7ee08579ffbec0f11875881a656e2d;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSHit.h b/PHOS/AliPHOSHit.h index 4d40cfcee67..1b132e5995f 100644 --- a/PHOS/AliPHOSHit.h +++ b/PHOS/AliPHOSHit.h @@ -18,11 +18,10 @@ // --- Standard library --- -#include class AliPHOSHit : public AliHit { - friend ostream& operator << (ostream&, const AliPHOSHit&) ; +// friend ostream& operator << (ostream&, const AliPHOSHit&) ; public: @@ -30,7 +29,7 @@ class AliPHOSHit : public AliHit { // default ctor } AliPHOSHit(const AliPHOSHit & hit) ; - AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits) ; + AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits); virtual ~AliPHOSHit(void) { // dtor } @@ -48,15 +47,25 @@ class AliPHOSHit : public AliHit { return fPrimary ; } + Float_t GetTime(void) const { + // returns the time of the first energy deposition + return fTime ; + } + + virtual Float_t X() const ; + virtual Float_t Y() const ; + virtual Float_t Z() const ; + Bool_t operator == (AliPHOSHit const &rValue) const ; - AliPHOSHit operator + (const AliPHOSHit& rValue) const ; + AliPHOSHit operator + (const AliPHOSHit& rValue) ; private: - Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad - Float_t fELOS ; // Energy deposited - Int_t fPrimary ; // Primary particles at the origine of the hit + Int_t fId ; // Absolute Id number of PHOS Xtal or PPSD pad + Float_t fELOS ; // Energy deposited + Int_t fPrimary ; // Primary particles at the origine of the hit + Float_t fTime ; // Time of the energy deposition ClassDef(AliPHOSHit,1) // Hit for PHOS