From 1f23bcfd04dde02f3617dec0a21354f4caae3ce1 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Fri, 22 Jul 2016 14:44:40 +0200 Subject: [PATCH] revert changes to noiseband dirich --- tools/determine_noiseband_dirich.pl | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/tools/determine_noiseband_dirich.pl b/tools/determine_noiseband_dirich.pl index 3b80d3a..9524268 100755 --- a/tools/determine_noiseband_dirich.pl +++ b/tools/determine_noiseband_dirich.pl @@ -5,15 +5,11 @@ use HADES::TrbNet; use Time::HiRes qw(usleep); use Data::Dumper; -my $dirich = 0xf3d1; +my $dirich = 0x1200; my $throffset = 0xa000; my $monitor = 0xdfc0; -<<<<<<< Updated upstream my $last_channel = 31; -======= -my $last_channel = 28; ->>>>>>> Stashed changes my $default_threshold = 0x4000; @@ -45,16 +41,13 @@ for my $channel (0 .. $last_channel) { my $hit_zero_diff_flag = 0; - my $lower_threshold = 0x6800; - my $upper_threshold = 0xa000; + my $lower_threshold = 0x6e00; + my $upper_threshold = 0xd000; my $reasonable_upper_threshold = 0x8000; my $thresh_increment = 0x40; -# trb_register_write($dirich, $throffset + $channel , $lower_threshold); -# usleep(1e6); THRESH_LOOP: for (my $thresh = $lower_threshold ; $thresh <= $upper_threshold; $thresh += $thresh_increment) { trb_register_write($dirich, $throffset + $channel , $thresh); -# usleep(100E3); undef $rh_res; my @hits = (); foreach (1..2) { -- 2.43.0