added number of Event

This commit is contained in:
Ryan@fsunuc 2023-01-12 15:49:06 -05:00
parent 0e9eda9082
commit 8106bd4800
3 changed files with 19 additions and 5 deletions

View File

@ -33,7 +33,7 @@
<li>The easiest way to do DWBA and Monte Carlo Simulation is use the <a href="simpleSim.html" target="uploaded">Simplied Interface</a>
<li>The kenimatic calculation is documented in <a href="https://wiki.anl.gov/wiki_heliosdaq/images/3/3f/Kinematics_of_HELIOS.pdf" target="_blank" >Here</a>.</li>
<li>The DWBA calucation is using Ptolemy. <a href="https://www.phy.anl.gov/theory/research/ptolemy/" target="_blank">Here</a> for more detail. </li>
<li>Past calculations can be found <a href="files/" target="uploaded">Here</a>. Clear every day</li>
<li>Past calculations can be found <a href="files/" target="uploaded">Here</a>. Clear every Monday.</li>
</ul>
</p>

View File

@ -9,7 +9,7 @@ def FindName(A, Z):
ppp1 = result.find('Name:')
ppp2 = result.find('|')
return result[ppp1+5:ppp2]
def FindAZ(AZ):
result = subprocess.run(["../Cleopatra/IsotopeShort", AZ], stdout=subprocess.PIPE).stdout.decode('utf-8')
pA = result.find('A:')
@ -27,6 +27,8 @@ target_AZ = form.getvalue('target_AZ')
lRecoil_AZ = form.getvalue('lRecoil_AZ')
numEvent = form.getvalue('numEvent')
KEA = form.getvalue('KEA')
BField = form.getvalue('BField')
posArray = form.getvalue('posArray')
@ -73,7 +75,7 @@ f.write("0.000 //beam_angle_in_mrad\n")
f.write("0.000 //beam_emittance_in_mrad\n")
f.write("0.000 //beam_x-offset_in_mm\n")
f.write("0.000 //beam_y-offset_in_mm\n")
f.write("100000 //number_of_event_generated\n")
f.write("%s //number_of_event_generated\n" % numEvent)
f.write("false //isTargetScattering\n")
f.write("0.913 //Target_density_in_g/cm3\n")
f.write("2.2e-4 //Target_thickness_in_cm\n")
@ -164,7 +166,7 @@ if isDWBA == False:
f.close()
#================== write PlotConfig.txt (to be done)
fn5="PlotConfig.txt"
fn5="sim_PlotConfig.txt"
plotStr="{"
plotSize=len(plot)
@ -282,6 +284,10 @@ if pngName != "" :
print ("<br> Downlaod the <a href=\"files/%s\" download=\"%s\">Ex file</a>" % (fnEx, fnEx))
print ("<br> Downlaod the simulation <a href=\"files/transfer.root\" download=\"transfer.root\">root file</a>")
if fn5 != "" :
print ("<br> Downlaod the <a href=\"files/%s\" download=\"%s\">Plot Config file</a>" % (fn5, fn5))
print ("<br><br><br>#################################### programs text output")
if isDWBA:
print ("<br><span style=\"white-space: pre-line\"> %s </span>" % dwba_1)
@ -291,6 +297,8 @@ print ("<br><span style=\"white-space: pre-line\"> %s </span>" % result)
print ("<br><span style=\"white-space: pre-line\"> %s </span>" % haha)
print (plotStr)
print ("<p></p>")
print (ExList)
print ("</body>")
print ("</html>")

View File

@ -14,7 +14,7 @@
<form action = "simpleInput.py" method = "POST" target = "uploaded">
<h3>Reaction:</h3>
<h3>Reaction: </h3>
<table>
<tr>
@ -39,6 +39,10 @@
<td>Light recoil</td>
<td><input type = "text" name = "lRecoil_AZ" size="5" value="p"/></td>
</tr>
<tr>
<td> Number of events </td>
<td><input type = "text" name = "numEvent" size="6" value="100000"/></td>
</tr>
</table>
<h3>Detector:</h3>
@ -67,6 +71,8 @@
</table>
<h3>DWBA and E<sub>x</sub> List:</h3>
<p> for 2-nucleon transfer, Orbital take the form nL=X, where n is number of node, X is momnetum number.</p>
<table id="ExTable">
<tr>