From 95000f46ebe1974dae5942c9626c784ae07914e4 Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Tue, 14 Jul 2015 17:45:20 +0200 Subject: [PATCH] mask out pixels of unconcerned banks --- s-curves/cpp_based-on-dabc-lib/unpacker.cxx | 2 ++ 1 file changed, 2 insertions(+) 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) {} -- 2.43.0