X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSHit.h;h=f792c0eb3ad4b8d7337fc938c54c239dd9829785;hb=0bc3b8eda6a9ea194e4af879b7bf9d7e2ed553a7;hp=63f2af5b99fe87a3ef7d07cae197867579514b70;hpb=fb689dbe3c868b7c6d48c32294319ce7501e99ae;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSHit.h b/PHOS/AliPHOSHit.h index 63f2af5b99f..f792c0eb3ad 100644 --- a/PHOS/AliPHOSHit.h +++ b/PHOS/AliPHOSHit.h @@ -18,32 +18,54 @@ // --- Standard library --- -#include class AliPHOSHit : public AliHit { -public: - - AliPHOSHit() {} + friend ostream& operator << (ostream&, const AliPHOSHit&) ; + + public: + + AliPHOSHit() { + // default ctor + } AliPHOSHit(const AliPHOSHit & hit) ; - AliPHOSHit(Int_t primary, Int_t id, Float_t *hits) ; - AliPHOSHit(Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits) ; - virtual ~AliPHOSHit(void) {} + AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits); + virtual ~AliPHOSHit(void) { + // dtor + } - Float_t GetEnergy(void) const { return fELOS ; } - Int_t GetId(void) const { return fId ; } - Int_t GetPrimary(void) const { return fPrimary ; } + Float_t GetEnergy(void) const { + // returns the energy loss for this hit + return fELOS ; + } + Int_t GetId(void) const { + // return the identificator of this his + return fId ; + } + Int_t GetPrimary(void) const { + // returns the primary particle id at the origine of this hit + 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) ; - friend ostream& operator << (ostream&, const AliPHOSHit&) ; -private: + 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