7 #include "qt32b_fms_2009_a.hh"
8 #include "fms_fm006_2011_a.hh"
10 void fms_fm006_2011_a(
Board& fm006,
int t){
11 int I[4], J[4], htadc, htid;
13 getQtSumAndHighTower((
int*)fm006.channels[t],I,J,htadc,htid);
16 const int R0 = fm006.registers[0];
17 const int R1 = fm006.registers[1];
26 int SumI = I[0]+I[1]+I[2]+I[3];
27 int SumIJ = I[2]+I[3]+J[0]+J[1];
28 int SumJ = J[0]+J[1]+J[2]+J[3];
32 if (SumI > 31) SumI = 31;
33 if (SumIJ > 31) SumIJ = 31;
34 if (SumJ > 31) SumJ = 31;
37 fm006.output[t] = SumJ << 15 | SumIJ << 20 | SumI << 25 | HT0 << 30 | HT1 << 31;