00001 #ifndef _StructDef_H 00002 #define _StructDef_H 1 00003 #include <vector> 00004 #include "constantsDef.h" 00005 00007 typedef struct { 00008 int evtnumber; 00009 unsigned char header[HEADER]; 00010 unsigned char beetle[NSTRIP]; 00011 float data[NSTRIP]; 00012 float channel[NSTRIP]; 00013 int flag; 00014 } Event; 00015 00016 00018 typedef struct { 00019 float adc[NSTRIP]; 00020 float adcCor[NSTRIP]; 00021 float header[HEADER]; 00022 } Data; 00023 00025 typedef struct { 00026 int width; 00027 float charge; 00028 float cog; 00029 float noise; 00030 float sn; 00031 } Cluster; 00032 00033 00034 typedef std::vector<Event>::iterator eventIt; 00036 typedef std::vector<Event> run; 00037 00038 #endif