Merge with TRD-develop
[u/mrichter/AliRoot.git] / TRD / AliTRD.h
CommitLineData
8230f242 1#ifndef ALITRD_H
2#define ALITRD_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////////////////////////////////////////////////
793ff80c 11
fe4da5cc 12#include "AliDetector.h"
851d3db9 13
793ff80c 14class AliRun;
15class AliDigit;
16
17class AliTRDhit;
18class AliTRDsim;
19class AliTRDgeometry;
82bbf98a 20
21//_____________________________________________________________________________
fe4da5cc 22class AliTRD : public AliDetector {
5c7f4665 23
851d3db9 24 public:
5c7f4665 25
851d3db9 26 AliTRD();
27 AliTRD(const char *name, const char *title);
dd9a6ee3 28 AliTRD(const AliTRD &trd);
851d3db9 29 virtual ~AliTRD();
dd9a6ee3 30
31 AliTRD &operator=(const AliTRD &trd);
32
793ff80c 33 virtual void AddHit(Int_t track, Int_t det, Float_t *hits, Int_t q);
8230f242 34 virtual void AddDigit(Int_t *digits, Int_t *amp);
35 virtual void AddRecPoint(Float_t *pos, Int_t *digits
793ff80c 36 , Int_t det, Float_t amp, Int_t *tracks);
851d3db9 37 virtual void BuildGeometry();
dd9a6ee3 38 virtual void Copy(TObject &trd);
851d3db9 39 virtual void CreateGeometry();
40 virtual void CreateMaterials();
41 virtual void DrawModule();
42 Int_t DistancetoPrimitive(Int_t px, Int_t py);
793ff80c 43 virtual void LoadPoints(Int_t track);
44 TObjArray *RecPoints() const { return fRecPoints; };
851d3db9 45 virtual void Init();
46 virtual Int_t IsVersion() const = 0;
47 virtual void MakeBranch(Option_t* option);
48 virtual void ResetRecPoints();
49 virtual void StepManager() = 0;
50 virtual void SetTreeAddress();
51
52 virtual void SetGasMix(Int_t imix = 0);
9d0b222b 53 virtual void SetHits() {};
793ff80c 54 virtual void SetPHOShole();
55 virtual void SetRICHhole();
56 virtual void SetDrawTR(Int_t idraw = 1) { fDrawTR = idraw; };
57 virtual void SetDisplayType(Int_t type = 0) { fDisplayType = type; };
851d3db9 58
793ff80c 59 AliTRDgeometry *GetGeometry() const { return fGeometry; };
851d3db9 60
9d0b222b 61 virtual void SetSensChamber(Int_t ichamber) = 0;
62 virtual void SetSensPlane(Int_t iplane) = 0;
63 virtual void SetSensSector(Int_t isector) = 0;
64 virtual void SetSensSector(Int_t isector, Int_t nsector) = 0;
65
793ff80c 66 virtual Int_t GetSensChamber() const = 0;
67 virtual Int_t GetSensPlane() const = 0;
68 virtual Int_t GetSensSector() const = 0;
69 virtual Int_t GetSensSectorRange() const = 0;
70
71 virtual AliTRDsim *CreateTR() = 0;
72 virtual AliTRDsim *GetTR() const = 0;
6f1e466d 73
851d3db9 74 protected:
5c7f4665 75
6f1e466d 76 Int_t fGasMix; // Gas mixture. 0: Xe/Isobutane 1: Xe/CO2
5c7f4665 77
6f1e466d 78 AliTRDgeometry *fGeometry; // The TRD geometry
5c7f4665 79
6f1e466d 80 TObjArray *fRecPoints; // Array of reconstructed points
851d3db9 81 Int_t fNRecPoints; //! Number of reconstructed points
d3f347ff 82
793ff80c 83 Float_t fGasDensity; // The density of the drift gas
84 Float_t fFoilDensity; // The density of the entrance window foil
85
86 Int_t fDrawTR; // Switches marking the TR photons in the display
87 Int_t fDisplayType; // Display type (0: normal, 1: detailed)
88
6f1e466d 89 ClassDef(AliTRD,1) // Transition Radiation Detector base class
5c7f4665 90
91};
99d5402e 92
fe4da5cc 93#endif