6 std::vector<int> vec(maxNrSamples, 0);
7 for (
int i2strip = 0; i2strip <
nbMaxStrips_ - 1; ++i2strip)
14 std::vector<std::vector<int>> &bypasslinout,
int nstrip,
int bitMask,
int bitOddEven, std::vector<int> &
output) {
15 int mask = (1 << bitMask) - 1;
16 bool strip_oddmask[nstrip][output.size()];
18 for (
int i2strip = 0; i2strip < nstrip - 1; ++i2strip)
19 for (
unsigned int i = 0;
i < output.size();
i++)
21 for (
unsigned int i = 0;
i < output.size();
i++)
25 for (
int istrip = 0; istrip < nstrip; ++istrip) {
26 for (
unsigned int i = 0;
i < output.size();
i++) {
27 if ((bypasslinout[istrip][
i] >> bitOddEven) & 1)
28 strip_oddmask[istrip][
i] =
false;
30 strip_oddmask[istrip][
i] =
true;
34 for (
unsigned int i = 0;
i < output.size();
i++) {
35 if (nstrip - 1 == 0) {
36 output[
i] = strip_oddmask[0][
i] * ((bypasslinout[0][
i]) & mask);
38 for (
int i2strip = 0; i2strip < nstrip - 1; ++i2strip) {
39 sumby2_[i2strip][
i] = strip_oddmask[i2strip][
i] * ((bypasslinout[i2strip][
i]) & mask) +
40 strip_oddmask[i2strip + 1][
i] * ((bypasslinout[i2strip + 1][
i]) & mask);
std::vector< std::vector< int > > sumby2_
EcalFenixMaxof2(int maxNrSamples, int nbMaxStrips)
void process(std::vector< std::vector< int >> &, int nStr, int bitMask, int bitOddEven, std::vector< int > &out)
virtual ~EcalFenixMaxof2()