Reintroduce the hit flags
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Feb 2002 16:46:47 +0000 (16:46 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 11 Feb 2002 16:46:47 +0000 (16:46 +0000)
TRD/AliTRDhit.h

index 8b87a1a..dba74dd 100644 (file)
@@ -29,8 +29,25 @@ class AliTRDhit : public AliHit {
           void   SetDetector(Int_t det)      { fDetector = det; }
           void   SetQ(Int_t q)               { fQ        =   q; }
 
+          Bool_t FromDrift() const           { return TestBit(kDrift);         };
+          Bool_t FromAmplification() const   { return TestBit(kAmplification); };
+          Bool_t FromTRphoton() const        { return TestBit(kTRphoton);      };
+          Bool_t FromTest() const            { return TestBit(kTest);          };
+
+          void   SetDrift()                  { SetBit(kDrift);         };
+          void   SetAmplification()          { SetBit(kAmplification); };
+          void   SetTRphoton()               { SetBit(kTRphoton);      };
+          void   SetTest()                   { SetBit(kTest);          }; 
+
  protected:
 
+  enum {
+    kDrift         = 0x00000001,    // Hit is from the drift region
+    kAmplification = 0x00000002,    // Hit is from the amplification region
+    kTRphoton      = 0x00000004,    // Hit is from a TR photon
+    kTest          = 0x00000008     // Hit is a special test hit
+  };
+
   UShort_t     fDetector;           // TRD detector number
   Short_t      fQ;                  // Charge created by a hit. TR signals are negative.