00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef RECFORMATS_HH
00029 #define RECFORMATS_HH
00030
00031
00032 #define classname(x) x ## V1P0 //embed version number in bank name
00033
00034 #include <sys/types.h>
00035 #include "StDaqLib/GENERIC/RecHeaderFormats.hh"
00036
00037
00038 #define VARLENGTH 1
00039
00040
00041 struct classname(Bank_FTPP): public Bank
00042 {
00043
00044 Pointer Chamber[2];
00045 };
00046
00047
00048 struct classname(Bank_FTPCHAP) : public Bank
00049 {
00050 Pointer RcvBoard[10];
00051
00052 };
00053
00054
00055 struct classname(Bank_FTPRBP) : public Bank
00056 {
00057 Pointer Sector[3];
00058 char FiberHeader[64];
00059
00060 int swap();
00061 };
00062
00063
00064 struct classname(Bank_FTPAZIP) : public Bank
00065 {
00066 Pointer Mz[3];
00067
00068 };
00069
00070
00071 struct classname(Bank_FTPMZP) : public Bank
00072 {
00073 Pointer FTPADCD;
00074 Pointer FTPSEQD;
00075 Pointer FTPADCX;
00076 Pointer FTPPADK;
00077 Pointer FTPCPPR;
00078 Pointer FTPADCR;
00079 Pointer FTPMZCLD;
00080 Pointer FTPCFGR;
00081 Pointer FTPPEDR;
00082 Pointer FTPRMSR;
00083 Pointer FTPGAINR;
00084 Pointer FTPBADR;
00085 };
00086
00087
00088
00089
00090
00091 struct classname(Bank_FTPADCD) : public Bank
00092 {
00093 char ADC[VARLENGTH];
00094 int swap();
00095 };
00096
00097
00098 struct classname(Bank_FTPADCR) : public Bank
00099 {
00100 char ADC[VARLENGTH];
00101 int swap();
00102 };
00103
00104 struct Coordinates
00105 {
00106 u_char pad_row;
00107 u_char pad;
00108 };
00109
00110
00111 struct classname(Bank_FTPPADK) : public Bank
00112 {
00113 INT32 bpADC;
00114 INT32 bpCPP;
00115 INT32 bpPED;
00116 INT32 bpRMS;
00117 INT32 bpCFG;
00118 INT32 bpGAIN;
00119 Coordinates index[320];
00120
00121 int swap();
00122 };
00123
00124 struct FTPADCX_entry
00125 {
00126 INT32 pad_row;
00127 INT32 FTPADCD_offset;
00128 INT32 FTPSEQD_offset;
00129 };
00130
00131
00132 struct classname(Bank_FTPADCX) : public Bank
00133 {
00134 FTPADCX_entry entry[VARLENGTH];
00135 };
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147 struct CPPR_entry
00148 {
00149 INT16 start_time_bin;
00150 INT16 stop_time_bin;
00151 };
00152
00153
00154 struct classname(Bank_FTPCPPR) : public Bank
00155 {
00156 ASIC_params asic_params;
00157 CPPR_entry entry[10240];
00158
00159 int swap();
00160 };
00161
00162
00163 struct classname(Bank_FTPSEQD) : public Bank
00164 {
00165 INT16 sequence[VARLENGTH];
00166
00167 int swap();
00168 };
00169
00170
00171 struct classname(Bank_FTPCFGR) : public Bank
00172 {
00173 char FEE_id[320];
00174
00175 int swap();
00176 };
00177
00178 struct BADR_entry
00179 {
00180 u_char row;
00181 u_char pad;
00182 };
00183
00184
00185 struct classname(Bank_FTPBADR) : public Bank
00186 {
00187 BADR_entry badChannel[VARLENGTH];
00188 int swap();
00189 };
00190
00191 struct classname(Bank_FTPPEDR) : public Bank
00192 {
00193 INT32 NumEvents;
00194 char pedestal[163840];
00195
00196 int swap();
00197 };
00198
00199 struct classname(Bank_FTPRMSR) : public Bank
00200 {
00201 INT32 NumEvents;
00202 char pedRMSt16[163840];
00203
00204 int swap();
00205 };
00206
00207 struct GAINR_entry
00208 {
00209 INT16 t0t16;
00210 char t0_RMSt16;
00211 char rel_gaint64;
00212 };
00213
00214 struct classname(Bank_FTPGAINR) : public Bank
00215 {
00216 INT32 NumEvents;
00217 INT32 MeanGain;
00218 GAINR_entry Gain[320];
00219
00220 int swap();
00221 };
00222
00223 #endif
00224
00225
00226