76,7 → 76,7 |
// addLog('#TF1 ' +JSON.stringify(tf1, null, '\t')+ '$$$<br>'); |
mtext = '<br/>' + "Fit Function: " + tformula.fFormula+ '<br/>'; |
mtext +="Chi2/NDF: " + tf1.fChisquare.toPrecision(2) + " / "+ tf1.fNDF+ '<br/>'; |
mtext +='<table border="0" >'; |
mtext +='<table border="0" width="50%" >'; |
for ( var i = 0;i <len;i++){ |
var name = tformula.fParams[i].first; |
var val = tformula.fClingParameters[i]; |
167,15 → 167,14 |
mform ='<form method="post" action="th1fit.php" onsubmit="return fitpanel(this);">'; |
mform += ' <input class="mybutton" type="submit" value=" Fit "/>'; |
mform += ' Range: min=<input type="text" size="2" value="0" name="min" />'; |
mform += ' max:<input type="text" size="2" value="10" name="max" />'; |
mform += ' max:<input type="text" size="2" value="20" name="max" />'; |
mform += ' Function:<input type="text" size="5" value="gaus" name="fitfun" />'; |
mform += ' Initial parameters<input type="text" size="5" value="1;2;3" name="prm" />'; |
mform += ' Initial parameters<input type="text" size="5" value="" name="prm" />'; |
mform += ' <input id="data'+ sframe +'" type="hidden" value="'+ result.message +'" name="data" />'; |
mform += ' <input type="hidden" value="'+ sframe +'" name="name" />'; |
mform += '</form>'; |
|
fit.insertAdjacentHTML('beforeend', '<div id="param' + sframe +'"></div><br/>'); |
fit.insertAdjacentHTML('beforeend', mform); |
fit.insertAdjacentHTML('beforeend', '<div id="param' + sframe +'"></div><br/>'); |
r.insertAdjacentHTML('beforeend','<input type="button" onclick="togglevisibility(\'fit'+sframe+'\');" class="mybutton" value="Show/Hide Fit Panel" /><hr/>' ); |
document.getElementById('data'+ sframe).value=result.message; |
//r.insertAdjacentHTML('beforeend', JSON.stringify(result.message)); |