X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=TRD%2FAliTRDhit.h;h=148bb6fa1906f3e00b80b2698b517cf9aca1bd9f;hp=ca1e2d6b763636f046e3a8352dddd8ff4dbcd997;hb=fbe8ffe31d7cd807949482428ca1217fc95e74f7;hpb=3bc9d03e4fd9db5e0ebd529081c0c2b94a880b01 diff --git a/TRD/AliTRDhit.h b/TRD/AliTRDhit.h index ca1e2d6..148bb6f 100644 --- a/TRD/AliTRDhit.h +++ b/TRD/AliTRDhit.h @@ -18,17 +18,19 @@ class AliTRDhit : public AliHit { public: AliTRDhit(); - AliTRDhit(Int_t shunt, Int_t track, Int_t det, Float_t *hits, Int_t q); + AliTRDhit(Int_t shunt, Int_t track, Int_t det, const Float_t * const hits, Int_t q, Float_t time); virtual ~AliTRDhit(); Int_t GetDetector() const { return fDetector; } Int_t GetCharge() const { return fQ; } + Float_t GetTime() const { return fTime; } void SetX(Float_t x) { fX = x; } void SetY(Float_t y) { fY = y; } void SetZ(Float_t z) { fZ = z; } void SetDetector(Int_t det) { fDetector = det; } void SetQ(Int_t q) { fQ = q; } + void SetTime(Float_t time) { fTime = time; } Bool_t FromDrift() const { return TestBit(kDrift); } Bool_t FromAmplification() const { return TestBit(kAmplification); } @@ -49,8 +51,9 @@ class AliTRDhit : public AliHit { UShort_t fDetector; // TRD detector number Short_t fQ; // Charge created by a hit. TR signals are negative. + Float_t fTime; // Absolute time of hit [mus]. Needed for pile-up events - ClassDef(AliTRDhit,3) // Hit for the Transition Radiation Detector + ClassDef(AliTRDhit,4) // Hit for the Transition Radiation Detector };