From: Philipp Klaus Date: Tue, 14 Jul 2015 15:45:20 +0000 (+0200) Subject: mask out pixels of unconcerned banks X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=95000f46ebe1974dae5942c9626c784ae07914e4;p=mvd_soft.git mask out pixels of unconcerned banks --- diff --git a/s-curves/cpp_based-on-dabc-lib/unpacker.cxx b/s-curves/cpp_based-on-dabc-lib/unpacker.cxx index 5b257bd..88e4958 100644 --- a/s-curves/cpp_based-on-dabc-lib/unpacker.cxx +++ b/s-curves/cpp_based-on-dabc-lib/unpacker.cxx @@ -175,6 +175,8 @@ signed analyze_C0(hadaq::RawSubevent* sub, unsigned ix, unsigned framelen, unsig for (j = 0; ix + j < ix + 0x25; j++) { unsigned d = sub->Data(ix+j); //sf.data[j] = d; + // mask out any pixels of banks who's threshold should be set to 255 + if ((j/9) != sf.bank) continue; //////loop over all bits, optimized for all-set and all-clear states unsigned start = 1152 * sf.row + j*0x20; if(d == 0) {}