added number of Event
This commit is contained in:
parent
0e9eda9082
commit
8106bd4800
|
@ -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 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 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>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>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ def FindName(A, Z):
|
||||||
ppp1 = result.find('Name:')
|
ppp1 = result.find('Name:')
|
||||||
ppp2 = result.find('|')
|
ppp2 = result.find('|')
|
||||||
return result[ppp1+5:ppp2]
|
return result[ppp1+5:ppp2]
|
||||||
|
|
||||||
def FindAZ(AZ):
|
def FindAZ(AZ):
|
||||||
result = subprocess.run(["../Cleopatra/IsotopeShort", AZ], stdout=subprocess.PIPE).stdout.decode('utf-8')
|
result = subprocess.run(["../Cleopatra/IsotopeShort", AZ], stdout=subprocess.PIPE).stdout.decode('utf-8')
|
||||||
pA = result.find('A:')
|
pA = result.find('A:')
|
||||||
|
@ -27,6 +27,8 @@ target_AZ = form.getvalue('target_AZ')
|
||||||
|
|
||||||
lRecoil_AZ = form.getvalue('lRecoil_AZ')
|
lRecoil_AZ = form.getvalue('lRecoil_AZ')
|
||||||
|
|
||||||
|
numEvent = form.getvalue('numEvent')
|
||||||
|
|
||||||
KEA = form.getvalue('KEA')
|
KEA = form.getvalue('KEA')
|
||||||
BField = form.getvalue('BField')
|
BField = form.getvalue('BField')
|
||||||
posArray = form.getvalue('posArray')
|
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_emittance_in_mrad\n")
|
||||||
f.write("0.000 //beam_x-offset_in_mm\n")
|
f.write("0.000 //beam_x-offset_in_mm\n")
|
||||||
f.write("0.000 //beam_y-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("false //isTargetScattering\n")
|
||||||
f.write("0.913 //Target_density_in_g/cm3\n")
|
f.write("0.913 //Target_density_in_g/cm3\n")
|
||||||
f.write("2.2e-4 //Target_thickness_in_cm\n")
|
f.write("2.2e-4 //Target_thickness_in_cm\n")
|
||||||
|
@ -164,7 +166,7 @@ if isDWBA == False:
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
#================== write PlotConfig.txt (to be done)
|
#================== write PlotConfig.txt (to be done)
|
||||||
fn5="PlotConfig.txt"
|
fn5="sim_PlotConfig.txt"
|
||||||
|
|
||||||
plotStr="{"
|
plotStr="{"
|
||||||
plotSize=len(plot)
|
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 <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>")
|
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")
|
print ("<br><br><br>#################################### programs text output")
|
||||||
if isDWBA:
|
if isDWBA:
|
||||||
print ("<br><span style=\"white-space: pre-line\"> %s </span>" % dwba_1)
|
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 ("<br><span style=\"white-space: pre-line\"> %s </span>" % haha)
|
||||||
|
|
||||||
print (plotStr)
|
print (plotStr)
|
||||||
|
print ("<p></p>")
|
||||||
|
print (ExList)
|
||||||
|
|
||||||
print ("</body>")
|
print ("</body>")
|
||||||
print ("</html>")
|
print ("</html>")
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
<form action = "simpleInput.py" method = "POST" target = "uploaded">
|
<form action = "simpleInput.py" method = "POST" target = "uploaded">
|
||||||
|
|
||||||
<h3>Reaction:</h3>
|
<h3>Reaction: </h3>
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -39,6 +39,10 @@
|
||||||
<td>Light recoil</td>
|
<td>Light recoil</td>
|
||||||
<td><input type = "text" name = "lRecoil_AZ" size="5" value="p"/></td>
|
<td><input type = "text" name = "lRecoil_AZ" size="5" value="p"/></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> Number of events </td>
|
||||||
|
<td><input type = "text" name = "numEvent" size="6" value="100000"/></td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h3>Detector:</h3>
|
<h3>Detector:</h3>
|
||||||
|
@ -67,6 +71,8 @@
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h3>DWBA and E<sub>x</sub> List:</h3>
|
<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">
|
<table id="ExTable">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user