]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDmatrix.h
Introducing a list of lists of hits -- more hits allowed for detector now
[u/mrichter/AliRoot.git] / TRD / AliTRDmatrix.h
1 #ifndef TRDmatrix_h
2 #define TRDmatrix_h
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 /* $Id$ */
7
8 #include <TObject.h>
9 #include <TObjArray.h>
10 #include <TH2.h>
11 #include <TH3.h>
12 #include <TStyle.h>
13 #include <TCanvas.h>
14 #include "AliTRDpixel.h"
15
16 ///////////////////////////////////////////////////////
17 //  Stores the pixel-information of one TRD chamber  //
18 ///////////////////////////////////////////////////////
19
20 class AliTRDmatrix : public TObject {
21
22 protected:
23   Int_t         fRow;            // Number of pad-rows
24   Int_t         fCol;            // Number of pad-columns
25   Int_t         fTime;           // Number of time buckets
26   Int_t         fPixel;          // Number of pixels
27   Int_t         fSector;         // Sector number
28   Int_t         fChamber;        // Chamber number
29   Int_t         fPlane;          // Plane number
30   TObjArray    *fPixelArray;     // Array of pixels
31
32   virtual Int_t        GetIndex(Int_t iRow, Int_t iCol, Int_t iTime);
33   virtual AliTRDpixel *GetPixel(Int_t iRow, Int_t iCol, Int_t iTime);
34
35 public:
36   AliTRDmatrix();
37   AliTRDmatrix(Int_t nRow, Int_t nCol, Int_t nTime, Int_t iSec, Int_t iCha, Int_t iPla);
38   virtual ~AliTRDmatrix();
39
40   virtual void         AddSignal(Int_t iRow, Int_t iCol, Int_t iTime, Float_t signal);
41   virtual Bool_t       AddTrack(Int_t iRow, Int_t iCol, Int_t iTime, Int_t track);
42
43   virtual void         Draw(Option_t* = " ");
44   virtual void         DrawRow(Int_t iRow);
45   virtual void         DrawCol(Int_t iCol);
46   virtual void         DrawTime(Int_t iTime);
47
48   virtual void         SetSignal(Int_t iRow, Int_t iCol, Int_t iTime, Float_t signal);
49   virtual void         SetTrack(Int_t iRow, Int_t iCol, Int_t iTime
50                               , Int_t iTrack, Int_t track);
51
52   virtual Float_t      GetSignal(Int_t iRow, Int_t iCol, Int_t iTime);
53   virtual Int_t        GetTrack(Int_t iRow, Int_t iCol, Int_t iTime, Int_t iTrack);
54
55   virtual Int_t        GetSector()  { return fSector;  };
56   virtual Int_t        GetChamber() { return fChamber; };
57   virtual Int_t        GetPlane()   { return fPlane;   };
58
59   ClassDef(AliTRDmatrix,1)       // The TRD detector matrix for one readout chamber
60
61 };
62
63 #endif