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