Commit 4df16563 authored by CLICdp user's avatar CLICdp user
Browse files

check if pixels are masked before loading them


Former-commit-id: b3edf53884165f353ae2c305b3fa94e5995c7ce8
parent d586a70e
......@@ -102,6 +102,9 @@ StatusCode CLICpixEventLoader::run(Clipboard* clipboard){
tot++;
row=63-row;
// tcout<<"New pixe: "<<col<<","<<row<<" with tot "<<tot<<endl;
// If this pixel is masked, do not save it
if(parameters->detector[detectorID]->masked(col,row)) continue;
Pixel* pixel = new Pixel(detectorID,row,col,tot,0);
pixels->push_back(pixel);
npixels++;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment