Rev 268 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 268 | Rev 269 | ||
---|---|---|---|
Line 62... | Line 62... | ||
62 | } |
62 | } |
63 | 63 | ||
64 | if (isset($_POST["prm"])){ |
64 | if (isset($_POST["prm"])){ |
65 | $prm = $_POST["prm"]; |
65 | $prm = $_POST["prm"]; |
66 | } else { |
66 | } else { |
67 | $prm = " |
67 | $prm = "9,11,,99,3,,7"; |
68 | } |
68 | } |
69 | 69 | ||
70 | if (isset($_POST["name"])){ |
70 | if (isset($_POST["name"])){ |
71 | $name = $_POST["name"]; |
71 | $name = $_POST["name"]; |
72 | } else { |
72 | } else { |
Line 100... | Line 100... | ||
100 | $hdata .= $value; |
100 | $hdata .= $value; |
101 | } |
101 | } |
102 | 102 | ||
103 | $cmd0 = ".L th1fit.cc+". PHP_EOL; |
103 | $cmd0 = ".L th1fit.cc+". PHP_EOL; |
104 | $cmd0 .= "double data[]={". $hdata . "};" .PHP_EOL; |
104 | $cmd0 .= "double data[]={". $hdata . "};" .PHP_EOL; |
105 | $cmd0 .= "th1fit(data, \"$hname\",\"$htitle;$xtitle;$ytitle\", $xbins , $xmin, $xmax, $min ,$max ,\"$fitfun\");". PHP_EOL; |
105 | $cmd0 .= "th1fit(data, \"$hname\",\"$htitle;$xtitle;$ytitle\", $xbins , $xmin, $xmax, $min ,$max ,\"$fitfun\",\"$prm\");". PHP_EOL; |
106 | 106 | ||
107 | if (file_exists('/opt/root/bin/thisroot.sh')){ |
107 | if (file_exists('/opt/root/bin/thisroot.sh')){ |
108 | $profile ='/opt/root/bin/thisroot.sh'; |
108 | $profile ='/opt/root/bin/thisroot.sh'; |
109 | } |
109 | } |
110 | $cmd ="bash -c 'source $profile ; root -b -l <<EOL" . PHP_EOL; |
110 | $cmd ="bash -c 'source $profile ; root -b -l <<EOL" . PHP_EOL; |