1 #include "DSMAlgo_BC101_2014_b.hh"
3 void DSMAlgo_BC101_2014_b::operator()(
DSM& dsm)
27 int r0 = dsm.registers[0];
38 for(
int iichn = 0; iichn < 3; iichn++){
39 lowerHT |= dsm.channels[iichn] >> 10 & 0x3f;
40 lowerTP |= dsm.channels[iichn] >> 8 & 0x1;
41 lowerHTTP |= dsm.channels[iichn] >> 9 & 0x1;
43 upperHT |= dsm.channels[iichn+3] >> 10 & 0x3f;
44 upperTP |= dsm.channels[iichn+3] >> 8 & 0x1;
45 upperHTTP |= dsm.channels[iichn+3] >> 9 & 0x1;
51 for(
int ichn = 0; ichn < 6; ichn++){
53 daq10kSel[ichn] = dsm.channels[ichn] >> (10 + r0) & 0x1;
54 DAQ10k |= daq10kSel[ichn];
61 HT = lowerHT | upperHT;
62 TP = lowerTP | upperTP;
63 HTTP = lowerHTTP | upperHTTP;
82 out |= daq10kSel[0] << 16;
83 out |= daq10kSel[1] << 17;
84 out |= daq10kSel[2] << 18;
85 out |= daq10kSel[3] << 19;
86 out |= daq10kSel[4] << 20;
87 out |= daq10kSel[5] << 21;