More work on plotting implantation profiles.

This commit is contained in:
2009-11-24 13:50:42 +00:00
parent b02bad6b88
commit a67b8ff3af
2 changed files with 15 additions and 9 deletions

View File

@ -622,17 +622,20 @@ void TrimSPGUI::PlotProfiles()
my $filenames=join(",",@files);
print "Selected file: $filenames\n";
my $Warning = Qt::MessageBox::information( this, "Big Fat Warning",
"Warning:\nClose the plot using the menu FILE -> Quit ROOT\nDO NOT CLOSE USING X.");
if ($filenames ne "" ) {
# Now that we have the file list send it to root macro for plotting.
my $cmd='root "plotRge.C(\"'.$filenames.'\")"';
# my $pid = open(FTO,"$cmd");
my $cmd='root -n -l "plotRge.C(\"'.$filenames.'\")"';
# my $pid = open(FTO,"$cmd");
my $pid = open(FTO,"$cmd 2>&1 |");
print "PID=$pid\n";
while (<FTO>) {
# FitTextOutput->append("$_");
print "$_";
}
close(FTO);
# system($cmd);
# my $pid=system($cmd);
}
}