]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - TRD/AliTRDhit.h
needed for the test suite
[u/mrichter/AliRoot.git] / TRD / AliTRDhit.h
... / ...
CommitLineData
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: AliTRDhit.h,v */
7
8////////////////////////////////////////////////
9// Hit class for the TRD //
10////////////////////////////////////////////////
11
12#include "AliHit.h"
13
14//_____________________________________________________________________________
15class AliTRDhit : public AliHit {
16
17 public:
18
19 AliTRDhit();
20 AliTRDhit(Int_t shunt, Int_t track, Int_t det, Float_t *hits, Int_t q);
21 virtual ~AliTRDhit();
22
23 Int_t GetDetector() const { return fDetector; };
24 Int_t GetCharge() const { return fQ; };
25
26 Bool_t FromDrift() const { return TestBit(kDrift); };
27 Bool_t FromAmplification() const { return TestBit(kAmplification); };
28 Bool_t FromTRphoton() const { return TestBit(kTRphoton); };
29 Bool_t FromTest() const { return TestBit(kTest); };
30
31 void SetDrift() { SetBit(kDrift); };
32 void SetAmplification() { SetBit(kAmplification); };
33 void SetTRphoton() { SetBit(kTRphoton); };
34 void SetTest() { SetBit(kTest); };
35
36 protected:
37
38 enum {
39 kDrift = 0x00000001, // Hit is from the drift region
40 kAmplification = 0x00000002, // Hit is from the amplification region
41 kTRphoton = 0x00000004, // Hit is from a TR photon
42 kTest = 0x00000008 // Hit is a special test hit
43 };
44
45 UShort_t fDetector; // TRD detector number
46 Short_t fQ; // Charge created by a hit. TR signals are negative.
47
48 ClassDef(AliTRDhit,3) // Hit for the Transition Radiation Detector
49
50};
51
52#endif