00001
00005 #include "CSCCluster.h"
00006
00007
00008 #ifndef CSCCHAMBER
00009 #define CSCCHAMBER
00010
00011 #define TRUE 1
00012 #define FALSE 0;
00013 #define BOOL int
00014
00032 class CSCChamber{
00033
00034 private:
00036 unsigned int * ghost;
00038 unsigned int numGhost;
00040 unsigned int numCluster[5];
00042 unsigned int numYCluster[4];
00044 unsigned int sca[4];
00045
00046 int phase;
00048 BOOL isROS;
00050 int sector;
00052 CSCCluster ** cluster[5];
00054 CSCCluster ** clusterY[4];
00055
00056
00057 public:
00058
00060 CSCChamber();
00061
00062
00064 ~CSCChamber();
00065
00066
00073 int Read(unsigned int * source, int numSample);
00074
00075
00085 int GetGhostWord(int index) {return ghost[index];};
00086
00095 CSCCluster* GetCluster(int layer, int i);
00096
00097
00104 CSCCluster* GetYCluster(int layer, int i);
00105
00114 int GetNumCluster (int layer) {return numCluster[layer];};
00115
00116
00117
00122 int GetNumYCluster (int layer) {return numYCluster[layer];};
00123
00130 int GetSCAAddress(int sam) {return sca[sam];};
00131
00132
00144 int GetPhase () {return phase;};
00145
00146
00150 int GetNumGhostWords(){ return numGhost;} ;
00151
00154 BOOL GetIsROS() { return isROS;};
00155
00158 void SetIsROS(BOOL b) { isROS=b;};
00159
00164 void SetSector(unsigned int sourceID, int input);
00165
00170 int GetSector();
00171
00175 void Print();
00176 };
00177
00178 #endif