EffC++ warning corrected.
[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
e3b2b5e5 16#include "AliTRDTriggerL1.h"
17
2ab0c725 18class TFile;
c61f1a66 19class TLorentzVector;
2ab0c725 20
793ff80c 21class AliRun;
22class AliDigit;
23
24class AliTRDhit;
25class AliTRDsim;
26class AliTRDgeometry;
82bbf98a 27
28//_____________________________________________________________________________
fe4da5cc 29class AliTRD : public AliDetector {
5c7f4665 30
851d3db9 31 public:
5c7f4665 32
851d3db9 33 AliTRD();
34 AliTRD(const char *name, const char *title);
dd9a6ee3 35 AliTRD(const AliTRD &trd);
851d3db9 36 virtual ~AliTRD();
dd9a6ee3 37
38 AliTRD &operator=(const AliTRD &trd);
39
e0d47c25 40 virtual void AddHit(Int_t, Int_t*, Float_t*) { };
332e9569 41 virtual void AddHit(Int_t track, Int_t det, Float_t *hits, Int_t q, Bool_t inDrift);
851d3db9 42 virtual void BuildGeometry();
e0d47c25 43 virtual void Copy(TObject &trd) const;
851d3db9 44 virtual void CreateGeometry();
45 virtual void CreateMaterials();
ba380e33 46 virtual void DrawModule() const;
e0d47c25 47 virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
793ff80c 48 virtual void LoadPoints(Int_t track);
851d3db9 49 virtual void Init();
50 virtual Int_t IsVersion() const = 0;
88cb7938 51 virtual void MakeBranch(Option_t* option);
6244debe 52 virtual void ResetDigits();
851d3db9 53 virtual void StepManager() = 0;
54 virtual void SetTreeAddress();
55
a328fff9 56 virtual void StepManagerErmilova() = 0;
57 virtual void StepManagerGeant() = 0;
58 virtual void StepManagerFixedStep() = 0;
59 virtual void SelectStepManager(Int_t t) = 0;
60 virtual void SetStepSize(Double_t s) = 0;
61
9d0b222b 62 virtual void SetHits() {};
793ff80c 63 virtual void SetDrawTR(Int_t idraw = 1) { fDrawTR = idraw; };
64 virtual void SetDisplayType(Int_t type = 0) { fDisplayType = type; };
851d3db9 65
793ff80c 66 AliTRDgeometry *GetGeometry() const { return fGeometry; };
851d3db9 67
bd0f8685 68 virtual void SetTR(Bool_t ) = 0;
3dac2b2d 69
6244debe 70 virtual void Hits2Digits();
71 virtual void Hits2SDigits();
c92eb8ad 72 virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
2ab0c725 73 virtual void SDigits2Digits();
b864d801 74 virtual void Digits2Raw();
2ab0c725 75
bd0f8685 76 virtual Bool_t GetTR() const = 0;
6f1e466d 77
e3b2b5e5 78 virtual AliTRDTriggerL1 *CreateTriggerDetector() const { return new AliTRDTriggerL1(); };
79
851d3db9 80 protected:
5c7f4665 81
6244debe 82 AliTRDgeometry *fGeometry; // The TRD geometry
5c7f4665 83
6244debe 84 Float_t fGasDensity; // The density of the drift gas
85 Float_t fFoilDensity; // The density of the entrance window foil
793ff80c 86
6244debe 87 Int_t fDrawTR; // Switches marking the TR photons in the display
88 Int_t fDisplayType; // Display type (0: normal, 1: detailed)
793ff80c 89
b08ed1cf 90 ClassDef(AliTRD,9) // Transition Radiation Detector base class
5c7f4665 91
92};
99d5402e 93
fe4da5cc 94#endif