FEDRA emulsion software from the OPERA Collaboration
bytematrix.h
Go to the documentation of this file.
1 
2 #ifndef _BYTEMATRIX_H_
3 #define _BYTEMATRIX_H_
4 
5 #include "TObject.h"
6 #include "TObjArray.h"
7 #include "basematrix.h"
8 #include "bitmatrix.h"
9 
10 //=================================================================
11 
12 class TByteMatrix : public TBaseMatrix {
13 /*private:
14  long xSize; // dimension in BYTE!
15  long ySize;
16  long byteSize; // size in Byte!
17  unsigned char *mas;
18 */
19 protected:
20  double Tgx,Tgy;
21 public:
22  TByteMatrix();
23  TByteMatrix(long x_size, long y_size);
24  TByteMatrix(long x_size, long y_size, double tgx, double tgy);
26  virtual ~TByteMatrix();
27 // void Init(long x_size, long y_size);
28  void SetAngle(double tgx, double tgy);
29  void GetAngle(double *tgx, double *tgy);
30  int GetByte(int type, long i, long j); //i - x, j - y
31  void SetByte(long i, long j, unsigned char byte = 0xff);
32  void ClearByte(long i, long j);
33  void ClearAll(void);
34  void Add1(long i, long j);
35  int GetElement(int type, long i, long j) {return GetByte(type,i,j);}
36 // void GetSize(long *x_size, long *y_size);
37 // long GetSize(void) {return byteSize;}
38 // const unsigned char *GetPointer(void) {return mas;}
39 // TByteMatrix* operator=(TByteMatrix T);
40 // TByteMatrix& operator+(TBitMatrix& Tbit1, TBitMatrix& Tbit2);
41 // TByteMatrix operator+(TBitMatrix& TBit);
42 // TByteMatrix operator+(TByteMatrix& TByt);
43 // TByteMatrix* operator+(TBitMatrix* TBit);
44 // TByteMatrix* operator+(TByteMatrix* TByt);
47  TObjArray* Pick8(int type, int thr); //Array of MyPoint
48 // TObjArray* Pick12(int type, int thr); //Array of MyPoint
49 
50 
51  ClassDef(TByteMatrix,1)
52 };
53 
54 #endif
Definition: basematrix.h:20
Definition: bitmatrix.h:13
Definition: bytematrix.h:12
void GetAngle(double *tgx, double *tgy)
Definition: bytematrix.cxx:99
TByteMatrix()
Definition: bytematrix.cxx:13
int GetByte(int type, long i, long j)
Definition: bytematrix.cxx:106
TObjArray * Pick8(int type, int thr)
Definition: bytematrix.cxx:340
void SetByte(long i, long j, unsigned char byte=0xff)
Definition: bytematrix.cxx:130
void ClearByte(long i, long j)
Definition: bytematrix.cxx:148
void ClearAll(void)
Definition: bytematrix.cxx:167
virtual ~TByteMatrix()
Definition: bytematrix.cxx:61
void SetAngle(double tgx, double tgy)
Definition: bytematrix.cxx:92
double Tgy
Definition: bytematrix.h:20
TByteMatrix & operator+=(TBitMatrix &TBit)
Definition: bytematrix.cxx:292
int GetElement(int type, long i, long j)
Definition: bytematrix.h:35
double Tgx
Definition: bytematrix.h:20
void Add1(long i, long j)
Definition: bytematrix.cxx:174
Int_t type
Definition: testBGReduction_By_ANN.C:15