00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00012
00013 #ifndef STAR_StFtpcRawWriter
00014 #define STAR_StFtpcRawWriter
00015
00016 #include "tables/St_fcl_ftpcndx_Table.h"
00017 #include "tables/St_fcl_ftpcsqndx_Table.h"
00018 #include "tables/St_fcl_ftpcadc_Table.h"
00019
00020 class StFtpcRawWriter
00021 {
00022 public:
00023 StFtpcRawWriter(St_fcl_ftpcndx *ftpcndxIn,
00024 St_fcl_ftpcsqndx *ftpcsqndxIn,
00025 St_fcl_ftpcadc *ftpcadcIn,
00026 const int inAsic2EastNotInverted);
00027 ~StFtpcRawWriter();
00028 int writeArray(float *array,
00029 int numberPadrows,
00030 int numberSectors,
00031 int numberPads,
00032 int numberTimebins,
00033 int threshold);
00034 private:
00035 int mAsic2EastNotInverted;
00036 FCL_FTPCNDX_ST *ndx;
00037 int numNdx;
00038 int maxNdx;
00039 FCL_FTPCSQNDX_ST *sqndx;
00040 int numSqndx;
00041 int maxSqndx;
00042 FCL_FTPCADC_ST *adc;
00043 int numAdc;
00044 int maxAdc;
00045 St_fcl_ftpcndx *ftpcndx;
00046 St_fcl_ftpcsqndx *ftpcsqndx;
00047 St_fcl_ftpcadc *ftpcadc;
00048 };
00049 #endif
00050