ROOT logo
#ifndef ALITRDHIT_H
#define ALITRDHIT_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

/* $Id$ */

////////////////////////////////////////////////////////////////////////////
//                                                                        //
//  Hit class for the TRD                                                 //
//                                                                        //
////////////////////////////////////////////////////////////////////////////

#include "AliHit.h"

class AliTRDhit : public AliHit {

 public:

  AliTRDhit();
  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); }
          Bool_t   FromTRphoton() const        { return (fQ < 0);                }
	  
          void     SetDrift()                  { SetBit(kDrift);                 }
          void     SetAmplification()          { SetBit(kAmplification);         }
          void     SetTRphoton()               { SetBit(kTRphoton);              }

 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.
          Float_t  fTime;                   //  Absolute time of hit [mus]. Needed for pile-up events

  ClassDef(AliTRDhit,4)                     //  Hit for the Transition Radiation Detector

};

#endif
 AliTRDhit.h:1
 AliTRDhit.h:2
 AliTRDhit.h:3
 AliTRDhit.h:4
 AliTRDhit.h:5
 AliTRDhit.h:6
 AliTRDhit.h:7
 AliTRDhit.h:8
 AliTRDhit.h:9
 AliTRDhit.h:10
 AliTRDhit.h:11
 AliTRDhit.h:12
 AliTRDhit.h:13
 AliTRDhit.h:14
 AliTRDhit.h:15
 AliTRDhit.h:16
 AliTRDhit.h:17
 AliTRDhit.h:18
 AliTRDhit.h:19
 AliTRDhit.h:20
 AliTRDhit.h:21
 AliTRDhit.h:22
 AliTRDhit.h:23
 AliTRDhit.h:24
 AliTRDhit.h:25
 AliTRDhit.h:26
 AliTRDhit.h:27
 AliTRDhit.h:28
 AliTRDhit.h:29
 AliTRDhit.h:30
 AliTRDhit.h:31
 AliTRDhit.h:32
 AliTRDhit.h:33
 AliTRDhit.h:34
 AliTRDhit.h:35
 AliTRDhit.h:36
 AliTRDhit.h:37
 AliTRDhit.h:38
 AliTRDhit.h:39
 AliTRDhit.h:40
 AliTRDhit.h:41
 AliTRDhit.h:42
 AliTRDhit.h:43
 AliTRDhit.h:44
 AliTRDhit.h:45
 AliTRDhit.h:46
 AliTRDhit.h:47
 AliTRDhit.h:48
 AliTRDhit.h:49
 AliTRDhit.h:50
 AliTRDhit.h:51
 AliTRDhit.h:52
 AliTRDhit.h:53
 AliTRDhit.h:54
 AliTRDhit.h:55
 AliTRDhit.h:56
 AliTRDhit.h:57
 AliTRDhit.h:58
 AliTRDhit.h:59
 AliTRDhit.h:60