]>
Commit | Line | Data |
---|---|---|
fe4da5cc | 1 | #ifndef TRD_H |
2 | #define TRD_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
fe4da5cc | 8 | //////////////////////////////////////////////// |
d3f347ff | 9 | // Manager and hits classes for set: TRD // |
fe4da5cc | 10 | //////////////////////////////////////////////// |
11 | ||
12 | #include "AliDetector.h" | |
13 | #include "AliHit.h" | |
99d5402e | 14 | #include "AliDigit.h" |
82bbf98a | 15 | #include "AliTRDconst.h" |
16 | ||
17 | //_____________________________________________________________________________ | |
fe4da5cc | 18 | class AliTRD : public AliDetector { |
19 | ||
d3f347ff | 20 | protected: |
82bbf98a | 21 | Int_t fGasMix; // Gas mixture. 0: Xe/Isobutane 1: Xe/CO2 |
d3f347ff | 22 | |
82bbf98a | 23 | Float_t fClengthI[kNplan]; // Length of the inner chambers |
24 | Float_t fClengthM[kNplan]; // Length of the middle chambers | |
25 | Float_t fClengthO[kNplan]; // Length of the outer chambers | |
26 | Float_t fCwidth[kNplan]; // Width of the chambers | |
d3f347ff | 27 | |
fe4da5cc | 28 | public: |
29 | AliTRD(); | |
30 | AliTRD(const char *name, const char *title); | |
99d5402e | 31 | virtual ~AliTRD(); |
fe4da5cc | 32 | virtual void AddHit(Int_t, Int_t*, Float_t*); |
99d5402e | 33 | virtual void AddDigit(Int_t*, Int_t*); |
fe4da5cc | 34 | virtual void BuildGeometry(); |
82bbf98a | 35 | virtual void CreateGeometry(); |
fe4da5cc | 36 | virtual void CreateMaterials(); |
82bbf98a | 37 | virtual void DrawModule(); |
fe4da5cc | 38 | Int_t DistancetoPrimitive(Int_t px, Int_t py); |
39 | virtual void Init(); | |
82bbf98a | 40 | virtual Int_t IsVersion() const = 0; |
41 | virtual void StepManager() = 0; | |
d3f347ff | 42 | virtual void SetGasMix(Int_t imix = 0); |
fa1fa361 | 43 | virtual void SetHits(Int_t ) {}; |
44 | virtual void SetSensPlane(Int_t) {}; | |
45 | virtual void SetSensChamber(Int_t) {}; | |
46 | virtual void SetSensSector(Int_t ) {}; | |
d3f347ff | 47 | |
82bbf98a | 48 | ClassDef(AliTRD,1) // Transition Radiation Detector base class |
d3f347ff | 49 | |
82bbf98a | 50 | }; |
d3f347ff | 51 | |
fe4da5cc | 52 | //_____________________________________________________________________________ |
53 | class AliTRDhit : public AliHit { | |
54 | ||
55 | public: | |
56 | Int_t fSector; // TRD sector number | |
57 | Int_t fChamber; // TRD chamber number | |
58 | Int_t fPlane; // TRD plane number | |
59 | Float_t fQ; // Charge created by a hit (geometry 2) | |
60 | ||
61 | public: | |
62 | AliTRDhit() {} | |
63 | AliTRDhit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits); | |
99d5402e | 64 | virtual ~AliTRDhit() {}; |
fe4da5cc | 65 | |
66 | ClassDef(AliTRDhit,1) // Hits for Transition Radiation Detector | |
82bbf98a | 67 | |
fe4da5cc | 68 | }; |
69 | ||
99d5402e | 70 | //_____________________________________________________________________________ |
71 | class AliTRDdigit : public AliDigit { | |
72 | ||
73 | public: | |
74 | Int_t fSector; // TRD sector number | |
75 | Int_t fChamber; // TRD chamber number | |
76 | Int_t fPlane; // TRD plane number | |
77 | Int_t fRow; // Pad row number | |
78 | Int_t fCol; // Pad col number | |
79 | Int_t fTime; // Time bucket | |
80 | Int_t fSignal; // Signal amplitude | |
81 | ||
82 | public: | |
83 | AliTRDdigit() {}; | |
84 | AliTRDdigit(Int_t *tracks, Int_t *digits); | |
85 | virtual ~AliTRDdigit() {}; | |
86 | ||
87 | ClassDef(AliTRDdigit,1) // Digits for Transition Radiation Detector | |
88 | ||
89 | }; | |
90 | ||
91 | ||
fe4da5cc | 92 | #endif |