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