FEDRA emulsion software from the OPERA Collaboration
bitmatrix.h
Go to the documentation of this file.
1// CHANGED!!! EACH ELEMENT NOW BYTE!!!!!!!!!!!! BUT INTERPRETED AS BIT!!!!!!
2// NOW IT'S OBSOLETE!!!!!!!!
3//16.06.2004 now these version is correct!
4
5
6#ifndef _BITMATRIX_H_
7#define _BITMATRIX_H_
8
9#include "TObject.h"
10#include "basematrix.h"
11//#include "bytematrix.h"
12
13class TBitMatrix : public TBaseMatrix {
14/*private:
15 long xSize; // dimension in BIN!
16 long ySize;
17 long byteSize; // size in Byte!
18 unsigned char *mas;
19*/
20protected:
21 float Z;
22public:
23 TBitMatrix();
24 TBitMatrix(long x_size, long y_size);
25 TBitMatrix(long x_size, long y_size, float z);
27 virtual ~TBitMatrix();
28// void Init(long x_size, long y_size);
29 int GetBit(int type, long i, long j); //i - x, j - y type=0 - init mas 1 - shifted mas allways!
30// int GetBit(int type, long i, long j); //i - x, j - y
31 void SetBit(long i, long j);
32 void SetBit(long i, long j, int area); //area in bins!!!!!!
33 void ClearBit(long i, long j);
34 void ClearBit(long i, long j, int area); //area in bins!!!!!!
35 int GetElement(int type, long i, long j) {return GetBit(type,i,j);}
36 void SetZ(float z) {Z=z;}
37 float GetZ(void) {return Z;}
38// int GetcElement(long i, long j) {return GetcBit(i,j);}
39// void GetSize(long *x_size, long *y_size);
40// long GetSize(void) {return byteSize;}
41// const unsigned char *GetPointer(void) {return mas;}
42// TBitMatrix& operator=(TBitMatrix& T);
43// TBaseMatrix* operator+(TBitMatrix& TBit);
44
45 ClassDef(TBitMatrix,1)
46};
47
48#endif
Definition: basematrix.h:20
Definition: bitmatrix.h:13
void SetZ(float z)
Definition: bitmatrix.h:36
int GetElement(int type, long i, long j)
Definition: bitmatrix.h:35
void ClearBit(long i, long j)
Definition: bitmatrix.cxx:158
TBitMatrix()
Definition: bitmatrix.cxx:14
float GetZ(void)
Definition: bitmatrix.h:37
void SetBit(long i, long j)
Definition: bitmatrix.cxx:120
float Z
Definition: bitmatrix.h:21
int GetBit(int type, long i, long j)
Definition: bitmatrix.cxx:94
virtual ~TBitMatrix()
Definition: bitmatrix.cxx:62
Int_t type
Definition: testBGReduction_By_ANN.C:15