X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PHOS%2FAliPHOSHit.h;h=8c6929e9c3115a6c78f77c252c7bfab58363c283;hb=15112c870fdecdb8571d11959b256f31e31265f0;hp=f2b0beddc92d4513094b8914151f1ae3a66cde51;hpb=037cc66d49267fe093d36d6fb90842312fc6f407;p=u%2Fmrichter%2FAliRoot.git diff --git a/PHOS/AliPHOSHit.h b/PHOS/AliPHOSHit.h index f2b0beddc92..8c6929e9c31 100644 --- a/PHOS/AliPHOSHit.h +++ b/PHOS/AliPHOSHit.h @@ -12,19 +12,17 @@ //*-- Author: Maxime Volkov (RRC KI) & Yves Schutz (SUBATECH) // --- ROOT system --- +#include // --- AliRoot header files --- #include "AliHit.h" // --- Standard library --- -#include - -class TLorentzVector ; class AliPHOSHit : public AliHit { - friend ostream& operator << (ostream&, const AliPHOSHit&) ; +// friend ostream& operator << (ostream&, const AliPHOSHit&) ; public: @@ -32,7 +30,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, Int_t pid, TLorentzVector p, Float_t *xy); + AliPHOSHit(Int_t shunt, Int_t primary, Int_t tracknumber, Int_t id, Float_t *hits); virtual ~AliPHOSHit(void) { // dtor } @@ -45,29 +43,30 @@ class AliPHOSHit : public AliHit { // return the identificator of this his return fId ; } - Int_t GetPid(void) const { - // return the particle PDG code which initiates this hit - return fPid ; - } Int_t GetPrimary(void) const { // returns the primary particle id at the origine of this hit return fPrimary ; } - TLorentzVector GetMomentum() { return fMomentum; } - // momentum of the particle which initiated this hit + + 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 fPid ; // type of the particle that initiates that hit Int_t fPrimary ; // Primary particles at the origine of the hit - - TLorentzVector fMomentum; // 4-momentum of the particle + Float_t fTime ; // Time of the energy deposition ClassDef(AliPHOSHit,1) // Hit for PHOS