3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 /* $Id: AliTRDhit.h,v */
8 ////////////////////////////////////////////////
9 // Hit class for the TRD //
10 ////////////////////////////////////////////////
14 //_____________________________________________________________________________
15 class AliTRDhit : public AliHit {
20 AliTRDhit(Int_t shunt, Int_t track, Int_t det, Float_t *hits, Int_t q);
23 Int_t GetDetector() const { return fDetector; };
24 Int_t GetCharge() const { return fQ; };
26 void SetX(Float_t x) { fX = x; }
27 void SetY(Float_t y) { fY = y; }
28 void SetZ(Float_t z) { fZ = z; }
29 void SetDetector(Int_t det) { fDetector = det; }
30 void SetQ(Int_t q) { fQ = q; }
32 Bool_t FromDrift() const { return TestBit(kDrift); };
33 Bool_t FromAmplification() const { return TestBit(kAmplification); };
34 Bool_t FromTRphoton() const { return TestBit(kTRphoton); };
35 Bool_t FromTest() const { return TestBit(kTest); };
37 void SetDrift() { SetBit(kDrift); };
38 void SetAmplification() { SetBit(kAmplification); };
39 void SetTRphoton() { SetBit(kTRphoton); };
40 void SetTest() { SetBit(kTest); };
45 kDrift = 0x00000001, // Hit is from the drift region
46 kAmplification = 0x00000002, // Hit is from the amplification region
47 kTRphoton = 0x00000004, // Hit is from a TR photon
48 kTest = 0x00000008 // Hit is a special test hit
51 UShort_t fDetector; // TRD detector number
52 Short_t fQ; // Charge created by a hit. TR signals are negative.
54 ClassDef(AliTRDhit,3) // Hit for the Transition Radiation Detector