/* * File Name : convert.h * Creation Date : Nov 13 2000 * Author : Y.Nakaune */ #ifndef __CONVERT_H #define __CONVERT_H #include "daq.h" #include "../buf/tmc.h" #include "../buf/adc.h" #define BUF_SIZE 1024 #define TMC_EVENT_SIZE 4096 #define ADC_EVENT_SIZE 256 typedef struct { int mod_number; int ch_number; int time; } Tmc_Event; Tmc_Event tmc_event[TMC_EVENT_SIZE]; typedef struct { int mod_number; int ch_number; int data; } Adc_Event; Adc_Event adc_event[ADC_EVENT_SIZE]; typedef struct { int ctnb; } Adc_Sci_Cfg; Adc_Sci_Cfg adc_sci_cfg[ADC_MOD][ADC_CH]; typedef struct { int ctnb; } Tmc_Sci_Cfg; Tmc_Sci_Cfg tmc_sci_cfg[TMC_MOD][TMC_CH]; typedef struct { int chmbnb; int xy; } Tmc_Dc_Cfg; Tmc_Dc_Cfg tmc_dc_cfg[TMC_MOD][TMC_CH]; typedef struct { int lay; int ws; int tgch; } Adc_Tgc_Cfg; Adc_Tgc_Cfg adc_tgc_cfg[ADC_MOD][ADC_CH]; typedef struct { int lay; int ws; int tgch; } Tmc_Tgc_Cfg; Tmc_Tgc_Cfg tmc_tgc_cfg[TMC_MOD][TMC_CH]; #define ADC_TGC_CFG 1 #define TMC_TGC_CFG 2 #define TMC_DC_CFG 3 #define ADC_SCI_CFG 4 #define TMC_SCI_CFG 5 int number_of_same_tmc[TMC_MOD][TMC_CH]; int tmc_event_number; int adc_event_number; /*---forward declaration (read_daq_cfg.c)---*/ void read_daq_cfg( FILE* ); void adc_sci( char* ); void tmc_sci( char* ); void tmc_dc( char* ); void adc_tgc( char* ); void tmc_tgc( char* ); #endif