Commit b3dd3270 authored by CLICdp user's avatar CLICdp user
Browse files

make check on noisy pixels related to mean


Former-commit-id: d6e59964f6912441ba00fbe4e0db4404520fab5e
parent 7e224358
...@@ -103,7 +103,7 @@ void Timepix3MaskCreator::finalise(){ ...@@ -103,7 +103,7 @@ void Timepix3MaskCreator::finalise(){
for(int col=0;col<256;col++){ for(int col=0;col<256;col++){
for(int row=0;row<256;row++){ for(int row=0;row<256;row++){
int channelID =row + 256*col; int channelID =row + 256*col;
if(pixelhits[detectorID][channelID] > 1000){ if(pixelhits[detectorID][channelID] > 10*meanHits){
trimdacs >> t_col >> t_row >> t_trim >> t_mask >> t_tpen; trimdacs >> t_col >> t_row >> t_trim >> t_mask >> t_tpen;
newtrimdacs << t_col << "\t" << t_row << "\t" << t_trim << "\t" << "1" << "\t" << t_tpen << endl; newtrimdacs << t_col << "\t" << t_row << "\t" << t_trim << "\t" << "1" << "\t" << t_tpen << endl;
tcout<<"Masking pixel "<<col<<","<<row<<" on detector "<<detectorID<<endl; tcout<<"Masking pixel "<<col<<","<<row<<" on detector "<<detectorID<<endl;
......
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