9 for (
int i = 0;
i < 5; ++
i) {
21 std::ostringstream strm;
23 strm <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n";
24 strm <<
"+ Before CCCLUT algorithm: +\n";
25 strm <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n";
26 strm <<
" Old CLCT digi " << digi <<
"\n";
27 strm <<
" 1/4 strip bit " << digi.
getQuartStripBit() <<
" 1/8 strip bit " << digi.getEighthStripBit() <<
"\n";
28 strm <<
" 1/4 strip number " << digi.getKeyStrip(4) <<
" 1/8 strip number " << digi.getKeyStrip(8) <<
"\n";
29 strm <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n";
30 LogDebug(
"ComparatorCodeLUT") << strm.str();
48 compHitsCC[
i][iCC] = 1;
50 compHitsCC[
i][iCC] = 0;
70 const unsigned positionCC(
lutpos_[
pattern]->lookup(comparatorCode));
75 const bool slopeCCSign((slopeCC >> 4) & 0
x1);
76 const unsigned slopeCCValue(slopeCC & 0xf);
81 std::tuple<int16_t, bool, bool> stripoffset;
83 const int halfstripoffset = std::get<0>(stripoffset);
84 halfstrip += halfstripoffset;
100 std::ostringstream strm;
102 strm <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n";
103 strm <<
"+ CCCLUT algorithm results: +\n";
104 strm <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n";
105 strm <<
" New CLCT digi " << digi <<
"\n";
106 strm <<
" 1/4 strip bit " << digi.
getQuartStripBit() <<
" 1/8 strip bit " << digi.getEighthStripBit() <<
"\n";
107 strm <<
" 1/4 strip number " << digi.getKeyStrip(4) <<
" 1/8 strip number " << digi.getKeyStrip(8) <<
"\n";
108 strm <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n";
109 LogDebug(
"ComparatorCodeLUT") << strm.str();
121 for (
int row = 2; row >= 0; row--) {
122 rowPat = rowPat << 1;
123 rowPat += halfStripPattern[column][row];
143 id += (rowCode << 2 * column);
149 const unsigned slopeList[32] = {10, 10, 10, 8, 8, 8, 6, 6, 6, 4, 4, 4, 2, 2, 2, 2,
150 10, 10, 10, 9, 9, 9, 7, 7, 7, 5, 5, 5, 3, 3, 3, 3};
151 return slopeList[
slope];
175 std::vector<std::tuple<int16_t, bool, bool>> my_tuple = {
193 returnValue = my_tuple[
offset];