3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ////////////////////////////////////////////////////////////////////////////
10 // Manager and hits classes for set: TRD //
12 ////////////////////////////////////////////////////////////////////////////
14 #include <TLorentzVector.h>
15 #include <TVirtualMC.h>
17 #include "AliDetector.h"
19 #include "AliTRDTriggerL1.h"
32 class AliTRD : public AliDetector {
37 AliTRD(const char *name, const char *title);
41 virtual Int_t IsVersion() const = 0;
42 virtual void ResetDigits();
44 virtual void BuildGeometry();
45 virtual void CreateGeometry();
46 virtual void CreateMaterials();
47 virtual void DrawModule() const;
48 virtual void LoadPoints(Int_t track);
50 virtual void Hits2Digits();
51 virtual void Hits2SDigits();
52 virtual void SDigits2Digits();
53 virtual void Digits2Raw();
54 virtual Bool_t Raw2SDigits(AliRawReader* rawReader);
55 virtual void MakeBranch(Option_t *option);
57 virtual void AddHit(Int_t, Int_t*, Float_t*) { };
58 virtual void AddHit(Int_t track, Int_t det, Float_t *hits
59 , Int_t q, Float_t time, Bool_t inDrift);
61 virtual void SetTreeAddress();
63 virtual void StepManager() = 0;
64 virtual void StepManagerErmilova() = 0;
65 virtual void StepManagerGeant() = 0;
66 virtual void StepManagerFixedStep() = 0;
67 virtual void SelectStepManager(Int_t t) = 0;
69 virtual void SetStepSize(Double_t s) = 0;
70 virtual void SetHits() { };
71 virtual void SetDrawTR(Int_t idraw = 1) { fDrawTR = idraw; };
72 virtual void SetDisplayType(Int_t type = 0) { fDisplayType = type; };
73 virtual void SetTR(Bool_t ) = 0;
75 virtual Bool_t GetTR() const = 0;
76 AliTRDgeometry *GetGeometry() const { return fGeometry; };
78 virtual AliDigitizer *CreateDigitizer(AliRunDigitizer *manager) const;
79 virtual AliTRDTriggerL1 *CreateTriggerDetector() const { return new AliTRDTriggerL1(); };
83 AliTRDgeometry *fGeometry; // The TRD geometry
85 Float_t fGasDensity; // The density of the drift gas
86 Float_t fFoilDensity; // The density of the entrance window foil
88 Int_t fDrawTR; // Switches marking the TR photons in the display
89 Int_t fDisplayType; // Display type (0: normal, 1: detailed)
93 AliTRD(const AliTRD &trd);
94 AliTRD &operator=(const AliTRD &trd);
96 ClassDef(AliTRD,9) // Transition Radiation Detector base class