Enable plot fractions.

This commit is contained in:
2012-01-10 15:09:22 +00:00
parent 2a0cadfe5a
commit bf4d5e4ed7
3 changed files with 49 additions and 4 deletions

View File

@ -701,6 +701,20 @@ void TrimSPGUI::PlotProfiles()
void TrimSPGUI::PlotFraction()
{
my $file=Qt::FileDialog::getOpenFileName(
".",
"Implantation sequence file (*.dat)",
this,
"open sequence data file dialog",
"Choose a sequence data file");
if ($file ne "" ) {
my $TrimPath = $ENV{'PERLLIB'};
# Now that we have the file name send it to root macro for plotting.
my $cmd='root -n -l "'.$TrimPath.'/plotFrc.C(\"'.$file.'\")"&';
my $pid=system($cmd);
}
}