]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDmatrix.h
Made Getters const
[u/mrichter/AliRoot.git] / TRD / AliTRDmatrix.h
CommitLineData
dd9a6ee3 1#ifndef ALITRDMATRIX_H
2#define ALITRDMATRIX_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$ */
99d5402e 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>
851d3db9 14
99d5402e 15#include "AliTRDpixel.h"
16
17///////////////////////////////////////////////////////
18// Stores the pixel-information of one TRD chamber //
19///////////////////////////////////////////////////////
20
21class AliTRDmatrix : public TObject {
22
99d5402e 23public:
6f1e466d 24
99d5402e 25 AliTRDmatrix();
26 AliTRDmatrix(Int_t nRow, Int_t nCol, Int_t nTime, Int_t iSec, Int_t iCha, Int_t iPla);
dd9a6ee3 27 AliTRDmatrix(const AliTRDmatrix &m);
99d5402e 28 virtual ~AliTRDmatrix();
dd9a6ee3 29 AliTRDmatrix &operator=(const AliTRDmatrix &m);
99d5402e 30
31 virtual void AddSignal(Int_t iRow, Int_t iCol, Int_t iTime, Float_t signal);
32 virtual Bool_t AddTrack(Int_t iRow, Int_t iCol, Int_t iTime, Int_t track);
33
dd9a6ee3 34 virtual void Copy(TObject &m);
8230f242 35 virtual void Draw(Option_t *opt = " ");
99d5402e 36 virtual void DrawRow(Int_t iRow);
37 virtual void DrawCol(Int_t iCol);
38 virtual void DrawTime(Int_t iTime);
6f1e466d 39 virtual void ProjRow();
40 virtual void ProjCol();
41 virtual void ProjTime();
99d5402e 42
43 virtual void SetSignal(Int_t iRow, Int_t iCol, Int_t iTime, Float_t signal);
44 virtual void SetTrack(Int_t iRow, Int_t iCol, Int_t iTime
45 , Int_t iTrack, Int_t track);
46
47 virtual Float_t GetSignal(Int_t iRow, Int_t iCol, Int_t iTime);
48 virtual Int_t GetTrack(Int_t iRow, Int_t iCol, Int_t iTime, Int_t iTrack);
49
50 virtual Int_t GetSector() { return fSector; };
51 virtual Int_t GetChamber() { return fChamber; };
52 virtual Int_t GetPlane() { return fPlane; };
53
8230f242 54protected:
55
56 virtual Int_t GetIndex(Int_t iRow, Int_t iCol, Int_t iTime);
57 virtual AliTRDpixel *GetPixel(Int_t iRow, Int_t iCol, Int_t iTime);
58
59 Int_t fRow; // Number of pad-rows
60 Int_t fCol; // Number of pad-columns
61 Int_t fTime; // Number of time buckets
62 Int_t fPixel; // Number of pixels
63 Int_t fSector; // Sector number
64 Int_t fChamber; // Chamber number
65 Int_t fPlane; // Plane number
66 TObjArray *fPixelArray; // Array of pixels
67
5c7f4665 68 ClassDef(AliTRDmatrix,1) // The TRD detector matrix for one readout chamber
99d5402e 69
70};
71
72#endif