]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
added positive pulses to automatism, mt
authorhadaq <M.Traxler@gsi.de>
Thu, 13 Aug 2015 15:32:29 +0000 (17:32 +0200)
committerhadaq <M.Traxler@gsi.de>
Thu, 13 Aug 2015 15:32:29 +0000 (17:32 +0200)
thresholds/thresholds_automatic.pl

index b8378824662258340f597c36019cd27858e3c386..edb2ba2be6d990a0e106c54cd02b7b279598a768 100755 (executable)
@@ -236,10 +236,10 @@ while ($number_of_steps < $number_of_iterations ||
        my $direction = $default_direction;
        if ($static_value == ($polarity ? 0 : 1)) {
          $interval_step = int($interval_step/1.2);
-         $direction = -1;
+         $direction = -1*direction;;
        } elsif ($hit_diff > $accepted_dark_rate ) {
          $interval_step = int($interval_step/1.2);
-         $direction = -1;
+         $direction = -1*direction;;
        } else {
          $interval_step = int($interval_step/1.2);
        }