Record correctly also the last step in Lego plot
[u/mrichter/AliRoot.git] / TRD / AliTRD.h
CommitLineData
fe4da5cc 1#ifndef TRD_H
2#define TRD_H
3////////////////////////////////////////////////
d3f347ff 4// Manager and hits classes for set: TRD //
fe4da5cc 5////////////////////////////////////////////////
6
7#include "AliDetector.h"
8#include "AliHit.h"
82bbf98a 9#include "AliTRDconst.h"
10
11//_____________________________________________________________________________
fe4da5cc 12class AliTRD : public AliDetector {
13
d3f347ff 14protected:
82bbf98a 15 Int_t fGasMix; // Gas mixture. 0: Xe/Isobutane 1: Xe/CO2
d3f347ff 16
82bbf98a 17 Float_t fClengthI[kNplan]; // Length of the inner chambers
18 Float_t fClengthM[kNplan]; // Length of the middle chambers
19 Float_t fClengthO[kNplan]; // Length of the outer chambers
20 Float_t fCwidth[kNplan]; // Width of the chambers
d3f347ff 21
fe4da5cc 22public:
23 AliTRD();
24 AliTRD(const char *name, const char *title);
25 virtual ~AliTRD() {}
26 virtual void AddHit(Int_t, Int_t*, Float_t*);
27 virtual void BuildGeometry();
82bbf98a 28 virtual void CreateGeometry();
fe4da5cc 29 virtual void CreateMaterials();
82bbf98a 30 virtual void DrawModule();
fe4da5cc 31 Int_t DistancetoPrimitive(Int_t px, Int_t py);
32 virtual void Init();
82bbf98a 33 virtual Int_t IsVersion() const = 0;
34 virtual void StepManager() = 0;
d3f347ff 35 virtual void SetGasMix(Int_t imix = 0);
fa1fa361 36 virtual void SetHits(Int_t ) {};
37 virtual void SetSensPlane(Int_t) {};
38 virtual void SetSensChamber(Int_t) {};
39 virtual void SetSensSector(Int_t ) {};
d3f347ff 40
82bbf98a 41 ClassDef(AliTRD,1) // Transition Radiation Detector base class
d3f347ff 42
82bbf98a 43};
d3f347ff 44
fe4da5cc 45//_____________________________________________________________________________
46class AliTRDhit : public AliHit {
47
48public:
49 Int_t fSector; // TRD sector number
50 Int_t fChamber; // TRD chamber number
51 Int_t fPlane; // TRD plane number
52 Float_t fQ; // Charge created by a hit (geometry 2)
53
54public:
55 AliTRDhit() {}
56 AliTRDhit(Int_t shunt, Int_t track, Int_t *vol, Float_t *hits);
57 virtual ~AliTRDhit() {}
58
59 ClassDef(AliTRDhit,1) // Hits for Transition Radiation Detector
82bbf98a 60
fe4da5cc 61};
62
63#endif