X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSHit.h;h=af937aac0d492d735e63e89b84fd733a8d4e3103;hb=1c988c69558037193ea9e6a53dc1fa251b532a8f;hp=591e751d1a41b749005a73d76cbc2b4d1aea072e;hpb=b37750a69b962e261778906ac123eab7cfd06b37;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSHit.h b/PHOS/AliPHOSHit.h index 591e751d1a4..af937aac0d4 100644 --- a/PHOS/AliPHOSHit.h +++ b/PHOS/AliPHOSHit.h @@ -12,27 +12,24 @@ //*-- Author: Maxime Volkov (RRC KI) & Yves Schutz (SUBATECH) // --- ROOT system --- -#include // --- AliRoot header files --- #include "AliHit.h" // --- Standard library --- -#include - class AliPHOSHit : public AliHit { - friend ostream& operator << (ostream&, const AliPHOSHit&) ; +// friend ostream& operator << (ostream&, const AliPHOSHit&) ; public: - AliPHOSHit() { + AliPHOSHit() : fId(0),fELOS(0),fTime(0) { // 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 tracknumber, Int_t id, Float_t *hits); virtual ~AliPHOSHit(void) { // dtor } @@ -47,9 +44,15 @@ class AliPHOSHit : public AliHit { } Int_t GetPrimary(void) const { // returns the primary particle id at the origine of this hit - return fPrimary ; + return fTrack ; + } + + Float_t GetTime(void) const { + // returns the time of the first energy deposition + return fTime ; } + Bool_t operator == (AliPHOSHit const &rValue) const ; AliPHOSHit operator + (const AliPHOSHit& rValue) ; @@ -58,7 +61,7 @@ class AliPHOSHit : public AliHit { 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