30 #include "StDaqLib/GENERIC/swaps.hh"
31 #include "FTPV1P0.Banks.hh"
32 using namespace OLDEVP;
36 int classname(Bank_FTPRBP)::swap()
39 int words = header.BankLength;
40 int iret = swap_raw(header.ByteOrder,&words,1);
45 if(iret < 0)
return iret;
48 iret = swap_raw(header.ByteOrder,(INT32 *)Sector,
sizeof(Sector)/4);
57 int classname(Bank_FTPADCD)::swap()
62 int classname(Bank_FTPADCR)::swap()
67 int classname(Bank_FTPPADK)::swap()
70 int words = header.BankLength;
71 int iret = swap_raw(header.ByteOrder,&words,1);
74 if(iret < 0)
return iret;
77 iret = swap_raw(header.ByteOrder,&bpADC,6);
84 int classname(Bank_FTPCPPR)::swap()
87 int words = header.BankLength;
88 int iret = swap_raw(header.ByteOrder,&words,1);
91 if(iret<0)
return iret;
94 iret = swap_short(header.ByteOrder,(INT32 *)entry,10240);
101 int classname(Bank_FTPSEQD)::swap()
103 int words = header.BankLength;
104 int iret = swap_raw(header.ByteOrder,&words,1);
107 if(iret < 0)
return iret;
109 words -= (
sizeof(header)/4);
110 swap_short(header.ByteOrder,(INT32 *)sequence,words);
113 iret = header.swap();
117 int classname(Bank_FTPCFGR)::swap()
119 return header.swap();
122 int classname(Bank_FTPBADR)::swap()
124 return header.swap();
127 int classname(Bank_FTPPEDR)::swap()
129 int iret = swap_raw(header.ByteOrder,&NumEvents,1);
130 if(iret <= 0)
return iret;
132 return header.swap();
135 int classname(Bank_FTPRMSR)::swap()
137 int iret = swap_raw(header.ByteOrder,&NumEvents,1);
138 if(iret <= 0)
return iret;
140 return header.swap();
143 int classname(Bank_FTPGAINR)::swap()
145 int iret = swap_raw(header.ByteOrder,&NumEvents,2);
146 if(iret <= 0)
return iret;
150 if(iret != 1)
return -1;
156 iret = header.swap();
159 char *curr = (
char *)
Gain;
160 for(
int i = 0; i < FTP_MZPADS; i++)