Todays batch of effc++ changes
[u/mrichter/AliRoot.git] / TRD / AliTRDhit.h
CommitLineData
8230f242 1#ifndef ALITRDHIT_H
2#define ALITRDHIT_H
6f1e466d 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 {
793ff80c 16
6f1e466d 17 public:
18
8230f242 19 AliTRDhit();
793ff80c 20 AliTRDhit(Int_t shunt, Int_t track, Int_t det, Float_t *hits, Int_t q);
8230f242 21 virtual ~AliTRDhit();
22
a2b90f83 23 Int_t GetDetector() const { return fDetector; };
24 Int_t GetCharge() const { return fQ; };
25
855bfffd 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; }
8230f242 31
4a92d8bc 32 Bool_t FromDrift() const { return TestBit(kDrift); };
33 Bool_t FromAmplification() const { return TestBit(kAmplification); };
79251fd6 34 Bool_t FromTRphoton() const { return (fQ < 0); };
4a92d8bc 35
36 void SetDrift() { SetBit(kDrift); };
37 void SetAmplification() { SetBit(kAmplification); };
38 void SetTRphoton() { SetBit(kTRphoton); };
4a92d8bc 39
8230f242 40 protected:
41
4a92d8bc 42 enum {
43 kDrift = 0x00000001, // Hit is from the drift region
44 kAmplification = 0x00000002, // Hit is from the amplification region
45 kTRphoton = 0x00000004, // Hit is from a TR photon
46 kTest = 0x00000008 // Hit is a special test hit
47 };
48
a2b90f83 49 UShort_t fDetector; // TRD detector number
50 Short_t fQ; // Charge created by a hit. TR signals are negative.
793ff80c 51
a2b90f83 52 ClassDef(AliTRDhit,3) // Hit for the Transition Radiation Detector
6f1e466d 53
54};
55
56#endif