Changeset 9091 for trunk/ippScripts/scripts/detrend_reject_exp.pl
- Timestamp:
- Oct 2, 2006, 11:54:11 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_reject_exp.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_reject_exp.pl
r9004 r9091 15 15 use Pod::Usage qw( pod2usage ); 16 16 17 my ($det_id, $iter, $det_type );17 my ($det_id, $iter, $det_type, $no_update); 18 18 GetOptions( 19 19 'det_id|d=s' => \$det_id, 20 20 'iteration=s' => \$iter, 21 21 'det_type|t=s' => \$det_type, 22 'no-update' => \$no_update 22 23 ) or pod2usage( 2 ); 23 24 … … 158 159 159 160 # Put the result into the database 160 { 161 my $command = "$dettool -adddetrunsummary -det_id $det_id -iteration $iter " . 162 "-bg " . $meanStats->mean() . " -bg_stdev " . $stdevStats->mean() . 163 " -bg_mean_stdev " . $meanStdevStats->mean(); 164 $command .= " -reject" if not $master; 165 166 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 167 run(command => $command, verbose => 1); 168 die "Unable to perform dettool -adddetrunsummary: $error_code\n" if not $success; 169 } 170 171 # Re-run processing if required 172 { 173 my $command = "$dettool -updatedetrun -det_id $det_id"; 174 if ($stop) { 175 $command .= ' -stop'; 176 } else { 177 $command .= ' -again'; 161 unless ($no_update) { 162 { 163 my $command = "$dettool -adddetrunsummary -det_id $det_id -iteration $iter " . 164 "-bg " . $meanStats->mean() . " -bg_stdev " . $stdevStats->mean() . 165 " -bg_mean_stdev " . $meanStdevStats->mean(); 166 $command .= " -reject" if not $master; 167 168 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 169 run(command => $command, verbose => 1); 170 die "Unable to perform dettool -adddetrunsummary: $error_code\n" if not $success; 178 171 } 179 172 180 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 181 run(command => $command, verbose => 1); 182 die "Unable to perform dettool -updatedetrun: $error_code\n" if not $success; 173 # Re-run processing if required 174 { 175 my $command = "$dettool -updatedetrun -det_id $det_id"; 176 if ($stop) { 177 $command .= ' -stop'; 178 } else { 179 $command .= ' -again'; 180 } 181 182 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 183 run(command => $command, verbose => 1); 184 die "Unable to perform dettool -updatedetrun: $error_code\n" if not $success; 185 } 183 186 } 184 187 __END__
Note:
See TracChangeset
for help on using the changeset viewer.
