-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from BillMills/master
SCEPTAR O(1)
- Loading branch information
Showing
7 changed files
with
204 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
|
||
parameters = open('fitParamsSCEPTAR.js', 'w'); | ||
|
||
parameters.write('function loadSCEPTARParameters(){\n'); | ||
parameters.write('\tSCEPTARCoef = {};\n'); | ||
|
||
evan = [ | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z1/Z1/g4FitResults_thres0.000MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z1/Z1/g4FitResults_thres0.025MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z1/Z1/g4FitResults_thres0.050MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z1/Z1/g4FitResults_thres0.075MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z1/Z1/g4FitResults_thres0.100MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z5/Z5/g4FitResults_thres0.000MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z5/Z5/g4FitResults_thres0.025MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z5/Z5/g4FitResults_thres0.050MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z5/Z5/g4FitResults_thres0.075MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z5/Z5/g4FitResults_thres0.100MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z10/Z10/g4FitResults_thres0.000MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z10/Z10/g4FitResults_thres0.025MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z10/Z10/g4FitResults_thres0.050MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z10/Z10/g4FitResults_thres0.075MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z10/Z10/g4FitResults_thres0.100MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z25/Z25/g4FitResults_thres0.000MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z25/Z25/g4FitResults_thres0.025MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z25/Z25/g4FitResults_thres0.050MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z25/Z25/g4FitResults_thres0.075MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z25/Z25/g4FitResults_thres0.100MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z50/Z50/g4FitResults_thres0.000MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z50/Z50/g4FitResults_thres0.025MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z50/Z50/g4FitResults_thres0.050MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z50/Z50/g4FitResults_thres0.075MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z50/Z50/g4FitResults_thres0.100MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z75/Z75/g4FitResults_thres0.000MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z75/Z75/g4FitResults_thres0.025MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z75/Z75/g4FitResults_thres0.050MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z75/Z75/g4FitResults_thres0.075MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z75/Z75/g4FitResults_thres0.100MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z100/Z100/g4FitResults_thres0.000MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z100/Z100/g4FitResults_thres0.025MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z100/Z100/g4FitResults_thres0.050MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z100/Z100/g4FitResults_thres0.075MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v22_Sceptar_Full_Electron/Z100/Z100/g4FitResults_thres0.100MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z1/Z1/g4FitResults_thres0.000MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z1/Z1/g4FitResults_thres0.025MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z1/Z1/g4FitResults_thres0.050MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z1/Z1/g4FitResults_thres0.075MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z1/Z1/g4FitResults_thres0.100MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z5/Z5/g4FitResults_thres0.000MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z5/Z5/g4FitResults_thres0.025MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z5/Z5/g4FitResults_thres0.050MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z5/Z5/g4FitResults_thres0.075MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z5/Z5/g4FitResults_thres0.100MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z10/Z10/g4FitResults_thres0.000MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z10/Z10/g4FitResults_thres0.025MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z10/Z10/g4FitResults_thres0.050MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z10/Z10/g4FitResults_thres0.075MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z10/Z10/g4FitResults_thres0.100MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z25/Z25/g4FitResults_thres0.000MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z25/Z25/g4FitResults_thres0.025MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z25/Z25/g4FitResults_thres0.050MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z25/Z25/g4FitResults_thres0.075MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z25/Z25/g4FitResults_thres0.100MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z50/Z50/g4FitResults_thres0.000MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z50/Z50/g4FitResults_thres0.025MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z50/Z50/g4FitResults_thres0.050MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z50/Z50/g4FitResults_thres0.075MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z50/Z50/g4FitResults_thres0.100MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z75/Z75/g4FitResults_thres0.000MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z75/Z75/g4FitResults_thres0.025MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z75/Z75/g4FitResults_thres0.050MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z75/Z75/g4FitResults_thres0.075MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z75/Z75/g4FitResults_thres0.100MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z100/Z100/g4FitResults_thres0.000MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z100/Z100/g4FitResults_thres0.025MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z100/Z100/g4FitResults_thres0.050MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z100/Z100/g4FitResults_thres0.075MeV_Max.txt', | ||
'/Users/billmills/Desktop/SCEPTAR_Sims/v23_Sceptar_Full_Positron/Z100/Z100/g4FitResults_thres0.100MeV_Max.txt' | ||
] | ||
|
||
keys = [ | ||
'-110', | ||
'-1125', | ||
'-1150', | ||
'-1175', | ||
'-11100', | ||
'-150', | ||
'-1525', | ||
'-1550', | ||
'-1575', | ||
'-15100', | ||
'-1100', | ||
'-11025', | ||
'-11050', | ||
'-11075', | ||
'-110100', | ||
'-1250', | ||
'-12525', | ||
'-12550', | ||
'-12575', | ||
'-125100', | ||
'-1500', | ||
'-15025', | ||
'-15050', | ||
'-15075', | ||
'-150100', | ||
'-1750', | ||
'-17525', | ||
'-17550', | ||
'-17575', | ||
'-175100', | ||
'-11000', | ||
'-110025', | ||
'-110050', | ||
'-110075', | ||
'-1100100', | ||
'110', | ||
'1125', | ||
'1150', | ||
'1175', | ||
'11100', | ||
'150', | ||
'1525', | ||
'1550', | ||
'1575', | ||
'15100', | ||
'1100', | ||
'11025', | ||
'11050', | ||
'11075', | ||
'110100', | ||
'1250', | ||
'12525', | ||
'12550', | ||
'12575', | ||
'125100', | ||
'1500', | ||
'15025', | ||
'15050', | ||
'15075', | ||
'150100', | ||
'1750', | ||
'17525', | ||
'17550', | ||
'17575', | ||
'175100', | ||
'11000', | ||
'110025', | ||
'110050', | ||
'110075', | ||
'1100100' | ||
] | ||
|
||
for j in range(0,70): | ||
|
||
f = open(evan[j], 'r'); | ||
for i in range(0,6): | ||
f.readline(); | ||
|
||
coef = '\tSCEPTARCoef[\'' + keys[j] + '\'] = ['; | ||
for line in f: | ||
coef += line.split('\t')[2] + ','; | ||
|
||
coef = coef[:-1]; | ||
coef += '];\n'; | ||
parameters.write(coef); | ||
|
||
parameters.write('}'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -419,7 +419,7 @@ <h2 id='triplesWidgetTitle' class='widgetTitle'>Triples</h2> | |
</div> | ||
|
||
<div id='footer'> | ||
GRIFFIN 2013 - Powered by <a href="http://dygraphs.com/">Dygraphs.js</a> | ||
GRIFFIN 2013 - Powered by <a href="http://dygraphs.com/">Dygraphs.js</a> & <a href="http://mozilla.github.io/brick/">Brick</a> | ||
<br> | ||
GRIFFIN Collaboration Spokesperson: Adam Garnsworthy ([email protected]) - GEANT4 Simulations: Evan Rand - UI/UX Design & Web Development: Bill Mills | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters