Simulation of RAW data (T.Kuhr)
[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
88cb7938 12#include <TLorentzVector.h>
fe4da5cc 13#include "AliDetector.h"
2d74ba4f 14#include <TVirtualMC.h>
851d3db9 15
2ab0c725 16class TFile;
c61f1a66 17class TLorentzVector;
2ab0c725 18
793ff80c 19class AliRun;
20class AliDigit;
21
22class AliTRDhit;
23class AliTRDsim;
24class AliTRDgeometry;
332e9569 25class AliTRDtrackHits;
82bbf98a 26
27//_____________________________________________________________________________
fe4da5cc 28class AliTRD : public AliDetector {
5c7f4665 29
851d3db9 30 public:
5c7f4665 31
851d3db9 32 AliTRD();
33 AliTRD(const char *name, const char *title);
dd9a6ee3 34 AliTRD(const AliTRD &trd);
851d3db9 35 virtual ~AliTRD();
dd9a6ee3 36
37 AliTRD &operator=(const AliTRD &trd);
38
332e9569 39 virtual void AddHit(Int_t track, Int_t det, Float_t *hits, Int_t q, Bool_t inDrift);
851d3db9 40 virtual void BuildGeometry();
dd9a6ee3 41 virtual void Copy(TObject &trd);
851d3db9 42 virtual void CreateGeometry();
43 virtual void CreateMaterials();
0a29d0f1 44 virtual void DrawModule() const;
45 Int_t DistancetoPrimitive(Int_t px, Int_t py) const;
793ff80c 46 virtual void LoadPoints(Int_t track);
851d3db9 47 virtual void Init();
48 virtual Int_t IsVersion() const = 0;
88cb7938 49 virtual void MakeBranch(Option_t* option);
6244debe 50 virtual void ResetDigits();
851d3db9 51 virtual void StepManager() = 0;
52 virtual void SetTreeAddress();
53
54 virtual void SetGasMix(Int_t imix = 0);
9d0b222b 55 virtual void SetHits() {};
793ff80c 56 virtual void SetPHOShole();
57 virtual void SetRICHhole();
58 virtual void SetDrawTR(Int_t idraw = 1) { fDrawTR = idraw; };
59 virtual void SetDisplayType(Int_t type = 0) { fDisplayType = type; };
851d3db9 60
793ff80c 61 AliTRDgeometry *GetGeometry() const { return fGeometry; };
851d3db9 62
9d0b222b 63 virtual void SetSensChamber(Int_t ichamber) = 0;
64 virtual void SetSensPlane(Int_t iplane) = 0;
65 virtual void SetSensSector(Int_t isector) = 0;
66 virtual void SetSensSector(Int_t isector, Int_t nsector) = 0;
67
332e9569 68 virtual void SetHitTypeStandard() { fHitType = 1; };
69 virtual void SetHitTypeCompressed() { fHitType = 2; };
70 virtual void SetHitTypeBoth() { fHitType = 3; };
71
793ff80c 72 virtual Int_t GetSensChamber() const = 0;
73 virtual Int_t GetSensPlane() const = 0;
74 virtual Int_t GetSensSector() const = 0;
75 virtual Int_t GetSensSectorRange() const = 0;
f73816f5 76
6244debe 77 virtual void Hits2Digits();
78 virtual void Hits2SDigits();
c92eb8ad 79 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
2ab0c725 80 virtual void SDigits2Digits();
b864d801 81 virtual void Digits2Raw();
2ab0c725 82
793ff80c 83 virtual AliTRDsim *CreateTR() = 0;
84 virtual AliTRDsim *GetTR() const = 0;
6f1e466d 85
332e9569 86 virtual void MakeBranch2(Option_t *opt=" ", const char *file=0);
87 virtual void SetTreeAddress2();
88 virtual void AddHit2(Int_t track, Int_t det, Float_t *hits, Int_t q, Bool_t inDrift);
89 virtual void ResetHits();
90
91 virtual AliHit* FirstHit(Int_t track);
92 virtual AliHit* NextHit();
93 virtual AliHit* FirstHit2(Int_t track);
94 virtual AliHit* NextHit2();
95
96 virtual void FinishPrimary();
97 virtual void RemapTrackHitIDs(Int_t *map);
98
851d3db9 99 protected:
5c7f4665 100
6244debe 101 Int_t fGasMix; // Gas mixture. 0: Xe/Isobutane 1: Xe/CO2
5c7f4665 102
6244debe 103 AliTRDgeometry *fGeometry; // The TRD geometry
5c7f4665 104
6244debe 105 Float_t fGasDensity; // The density of the drift gas
106 Float_t fFoilDensity; // The density of the entrance window foil
793ff80c 107
6244debe 108 Int_t fDrawTR; // Switches marking the TR photons in the display
109 Int_t fDisplayType; // Display type (0: normal, 1: detailed)
793ff80c 110
332e9569 111
112 AliTRDtrackHits *fTrackHits; //! Compressed hits for a given track
113 Int_t fHitType; // Switch for the different hit data structures
114
88cb7938 115 ClassDef(AliTRD,6) // Transition Radiation Detector base class
5c7f4665 116
117};
99d5402e 118
fe4da5cc 119#endif