Difference: RichSubSystem (1 vs. 6)

Revision 6
12 Dec 2009 - Main.JanMichel
Line: 1 to 1
Added:
>
>
META TOPICPARENT name="OutdatedPages"
 

  1. RichAdjustThresholds
Revision 5
29 Mar 2006 - Main.MichaelTraxler
Line: 1 to 1
 

  1. RichAdjustThresholds
  2. RichHitsObservation
  3. Picture of crates and the corresponding RCs and PRCs
Added:
>
>
  • boehmer_diplom.pdf: Diploma Thesis of Michael Böhmer, here you can find things like registers in the RCs.
 
Added:
>
>
META FILEATTACHMENT attr="" comment="Diploma Thesis of Michael Böhmer" date="1143646468" name="boehmer_diplom.pdf" path="boehmer_diplom.pdf" size="2259946" user="MichaelTraxler" version="1.1"
Revision 4
02 Feb 2006 - Main.MichaelTraxler
Revision 3
14 Sep 2005 - Main.MichaelTraxler
Line: 1 to 1
Deleted:
<
<
 


  1. RichAdjustThresholds
Changed:
<
<
  1. ....
>
>
  1. RichHitsObservation
Revision 2
15 Apr 2005 - Main.MichaelTraxler
Line: 1 to 1
Deleted:
<
<
 


Changed:
<
<
Quick:

Adjust Thresholds

cat s3r0p6.dat | perl -ne 'next if (/^#/);  ($a, $b)=$_=~/(\d+) (\d+)/; if($b<1023) {$b=1023}; print "$a $b\n"' > s3r0p6.dat_all_1023


postion: sep03/slow/race/adjust_thresholds_files.pl


#!/usr/bin/perl -w

use strict;
use FileHandle;

my @files = @ARGV;

foreach my $fn (@files) {

    my $fh = FileHandle->new("<$fn");

    my @file = <$fh>;

    $fh->close();

    my $num_lines = scalar @file;
    my $line_counter = 0;
    
    my $fh_out = FileHandle->new(">$fn");
    my $date = qx(date);
    chomp $date;
    print $fh_out "# file changed by adjust_thresholds_files.pl, $date , mt\n";

    foreach my $cur_line (@file) {
      if ($cur_line=~/^#/) {
        print $fh_out $cur_line;
        next;
      }
      ($a, $b)=$cur_line=~/(\d+) (\d+)/; 
      #if($b<1023) {$b=1023}; print "$a $b\n"'

      $line_counter ++;
      
     
      #if($line_counter < $num_lines/2) {
          $b+=1 if($b<1022);
          #$b-=1 if($b>0);
      #}

      $b=1023 if($b>=1024);
      print $fh_out "$a $b\n";
    }

    $fh_out->close();

  }



-- HadesDaq - 30 Jan 2005
>
>
  1. RichAdjustThresholds
  2. ....
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Hades Wiki? Send feedback
Imprint (in German)
Privacy Policy (in German)