]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDhit.h
- Dipole rotated wr to ALICE coordinate system
[u/mrichter/AliRoot.git] / TRD / AliTRDhit.h
1 #ifndef ALITRDHIT_H
2 #define ALITRDHIT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 ////////////////////////////////////////////////////////////////////////////
9 //                                                                        //
10 //  Hit class for the TRD                                                 //
11 //                                                                        //
12 ////////////////////////////////////////////////////////////////////////////
13
14 #include "AliHit.h"
15
16 class AliTRDhit : public AliHit {
17
18  public:
19
20   AliTRDhit();
21   AliTRDhit(Int_t shunt, Int_t track, Int_t det, Float_t *hits, Int_t q);
22   virtual ~AliTRDhit();
23
24           Int_t    GetDetector() const         { return fDetector; }
25           Int_t    GetCharge() const           { return fQ;        }
26
27           void     SetX(Float_t x)             { fX        =   x;  }
28           void     SetY(Float_t y)             { fY        =   y;  }
29           void     SetZ(Float_t z)             { fZ        =   z;  }
30           void     SetDetector(Int_t det)      { fDetector = det;  }
31           void     SetQ(Int_t q)               { fQ        =   q;  }
32
33           Bool_t   FromDrift() const           { return TestBit(kDrift);         }
34           Bool_t   FromAmplification() const   { return TestBit(kAmplification); }
35           Bool_t   FromTRphoton() const        { return (fQ < 0);                }
36           
37           void     SetDrift()                  { SetBit(kDrift);                 }
38           void     SetAmplification()          { SetBit(kAmplification);         }
39           void     SetTRphoton()               { SetBit(kTRphoton);              }
40
41  protected:
42
43           enum {
44               kDrift         = 0x00000001   //  Hit is from the drift region
45             , kAmplification = 0x00000002   //  Hit is from the amplification region
46             , kTRphoton      = 0x00000004   //  Hit is from a TR photon
47             , kTest          = 0x00000008   //  Hit is a special test hit
48           };
49
50           UShort_t fDetector;               //  TRD detector number
51           Short_t  fQ;                      //  Charge created by a hit. TR signals are negative.
52
53   ClassDef(AliTRDhit,3)                     //  Hit for the Transition Radiation Detector
54
55 };
56
57 #endif