1 #include "DSMAlgo_EE001_2009.hh"
2 #include "DSMAlgo_EE002_2009.hh"
3 #include "DSMLayer_E001_2009.hh"
8 for (
size_t dsm = 0; dsm < size(); ++dsm)
9 (*
this)[dsm].setName(
"EE", 0, dsm);
14 bool bc1_in =
event.MainX[BC1_CONF_NUM].offset &&
event.MainX[BC1_CONF_NUM].length;
20 for (
size_t dsm = 0; dsm < size(); ++dsm) {
21 copy_and_swap16(&cbuffer[dsm*16], &bc1->EEMC[dsm*16]);
22 char* cpMin = cbuffer+dsm*16;
23 char* cpMax = cpMin+15;
24 short* sp = (*this)[dsm].channels;
25 for (
char* cp = cpMin; cp < cpMax; cp += 3) {
28 *sp++ = *ip >> 12 & 0xfff;
40 layer[0].channels[0] = (*this)[0].output;
41 layer[0].channels[1] = (*this)[1].output & 0xffff;
42 layer[0].channels[2] = (*this)[1].output >> 16 & 0xffff;
43 layer[0].channels[3] = (*this)[2].output;
44 layer[0].channels[4] = (*this)[3].output;
45 layer[0].channels[5] = (*this)[4].output & 0xffff;
49 layer[1].channels[0] = (*this)[4].output >> 16 & 0xffff;
50 layer[1].channels[1] = (*this)[5].output;
51 layer[1].channels[2] = (*this)[6].output;
52 layer[1].channels[3] = (*this)[7].output & 0xffff;
53 layer[1].channels[4] = (*this)[7].output >> 16 & 0xffff;
54 layer[1].channels[5] = (*this)[8].output;
57 void DSMLayer_E001_2009::run()