script for convert .t3pa files to .t3pa_cls
.t3pa file example:
Index $\quad$ Matrix $\quad$ Index $\quad$ ToA $\quad$ ToT $\quad$ FToA $\quad$ Overflow
0 $\quad$ 4574 $\quad$ 832 $\quad$ 29 $\quad$ 6 $\quad$ 0
1 $\quad$ 4831 $\quad$ 832 $\quad$ 35 $\quad$ 7 $\quad$ 0
2 $\quad$ 4575 $\quad$ 832 $\quad$ 100 $\quad$ 8 $\quad$ 0
3 $\quad$ 31031 $\quad$ 1745 $\quad$ 22 $\quad$ 11 $\quad$ 0
.
.
.
.t3pa_cls file example:
% Index $\quad$ Matrix Index $\quad$ [ RowNo, ClmNo ] $\quad$ ToA $\quad$ FToA $\quad$ ( ToA_in_ns ) $\quad$ ToT ( ToT_in_keV ) $\quad$ Overflow
# 1, $\quad$ Nunmasked = 3, $\quad$ Nmasked = 0, $\quad$ Ntot = 3 # Tfirst = 2.0787500000000000e+04 ns, $\quad$ Tlast = 2.0790625000000000e+04 ns, $\quad$ dT = 3.125000 ns, $\quad$ Etot = 64.428148 keV
2 $\quad$ 4575 $\quad$ [ 17, 223 ] $\quad$ 832 $\quad$ 8 $\quad$ ( 2.0787500000000000e+04 ns ) $\quad$ 100 $\quad$ ( 37.867914 keV ) $\quad$ 0
1 $\quad$ 4831 $\quad$ [ 18, 223 ] $\quad$ 832 $\quad$ 7 $\quad$ ( 2.0789062500000000e+04 ns ) $\quad$ 35 $\quad$ ( 14.733453 keV ) $\quad$ 0
0 $\quad$ 4574 $\quad$ [ 17, 222 ] $\quad$ 832 $\quad$ 6 $\quad$ ( 2.0790625000000000e+04 ns ) $\quad$ 29 $\quad$ ( 11.826781 keV ) $\quad$ 0
# 2, $\quad$ Nunmasked = 3, $\quad$ Nmasked = 0, $\quad$ Ntot = 3 # Tfirst = 4.3601562500000000e+04 ns, $\quad$ Tlast = 4.3607812500000000e+04 ns, $\quad$ dT = 6.250000 ns, $\quad$ Etot = 63.577435 keV
5 $\quad$ 30775 $\quad$ [ 120, 55 ] $\quad$ 1745 $\quad$ 15 $\quad$ ( 4.3601562500000000e+04 ns ) $\quad$ 99 $\quad$ ( 37.617059 keV ) $\quad$ 0
4 $\quad$ 30776 $\quad$ [ 120, 56 ] $\quad$ 1745 $\quad$ 13 $\quad$ ( 4.3604687500000000e+04 ns ) $\quad$ 44 $\quad$ ( 14.715446 keV ) $\quad$ 0
3 $\quad$ 31031 $\quad$ [ 121, 55 ] $\quad$ 1745 $\quad$ 11 $\quad$ ( 4.3607812500000000e+04 ns ) $\quad$2 2 $\quad$ ( 11.244929 keV ) $\quad$ 0
.
.
.
import numpy as np
import math
#import pandas as pd
import matplotlib.pyplot as plt
from urllib.error import HTTPError # recognise the error stemming from missing data
#import urllib
import urllib.request
t3pa2cls_XII - upravena fce energy(a, b, c, t, ToT, pocet_udalosti, RowNo, ClmNo) - nyni je se pocita i s pripadem "nan"
#Define an exception which will be raised if the data is missing and stop the notebook execution
class StopExecution(Exception):
def _render_traceback_(self):
pass
#shot_no = 36529 #test discharge for which the notebook will definitely work
shot_no = 44515
shot = shot_no
identifier='H03-W0051_shot_'+str(shot)+'_450V'
detector = 'H03-W0051'
ds = np.DataSource('/tmp') # temporary storage for downloaded files
scalars_URL = 'http://golem.fjfi.cvut.cz/shots/{shot_no}/Diagnostics/PlasmaDetection/Results/{name}'
def get_scalar(shot_no, name):
return float(ds.open(scalars_URL.format(shot_no=shot_no, name=name)).read())
t_plasma_start = get_scalar(shot_no, 't_plasma_start')
t_plasma_end = get_scalar(shot_no, 't_plasma_end')
is_plasma = get_scalar(shot_no, 'b_plasma')
def get_file(shot, identifier):
#Pick the discharge to analyse
URL = 'http://golem.fjfi.cvut.cz/shots/{shot}/Diagnostics/TimepixDetector/H03/{identifier}.t3pa'
url = URL.format(shot=shot, identifier=identifier)
try:
file_name_t3pa=url
with urllib.request.urlopen(file_name_t3pa) as ft3pa:
line = ft3pa.readline()
line = line.decode('utf‐8')
ft3pa.close
except HTTPError:
print('File not found at %s. Aborting notebook execution.' % url)
raise StopExecution
return file_name_t3pa
def get_file_calib(name_calib):
#Pick the discharge to analyse
URL = 'http://golem.fjfi.cvut.cz/shots/{shot}/Diagnostics/TimepixDetector/calib_matrix_H03/{name_calib}.txt'
url = URL.format(shot=shot, name_calib=name_calib)
#print(url)
try:
file_calib=url
with urllib.request.urlopen(file_calib) as calib:
line = calib.readline()
line = line.decode('utf‐8')
calib.close
except HTTPError:
print('File not found at %s. Aborting notebook execution.' % url)
raise StopExecution
return file_calib
def load_calib(file_calib):
with urllib.request.urlopen(file_calib) as fc:
calib=[] #vytvoreni 1D pole
for i in range(0,256): #tj. rozsah 0-255
temp = [] # docasne pole
for j in range(0,256):
temp.append(0) #naplneni docasneho pole 0
calib.append(temp) #naplneni pole a[] docasnym polem temp
for i in range(0,256): #nacteni calib matice do pole calib
line = fc.readline()
line = line.decode('utf‐8')
word=line.strip().split(' ')
for j in range(0,256):
calib[i][j]=float(word[j]) #i = radek, j = sloupec0
fc.close
return calib
def load_t3pa_file(file_t3pa):
index=[]
matrix_index=[]
ToA=[]
ToT=[]
FToA=[]
overflow=[]
pocet_udalosti = 0
with urllib.request.urlopen(file_t3pa) as ft3pa:
line = ft3pa.readline()
line = line.decode('utf‐8')
while True:
line = ft3pa.readline()
line = line.decode('utf‐8')
word=line.strip().split('\t') #v t3pa souboru je oddelovac \t
if line == '':
break
index.append(word[0])
matrix_index.append(word[1])
ToA.append(float(word[2]))
ToT.append(float(word[3]))
FToA.append(float(word[4]))
overflow.append(float(word[5]))
pocet_udalosti = pocet_udalosti + 1
ft3pa.close
return index, matrix_index, ToA, ToT, FToA, overflow, pocet_udalosti
def noise(index, matrix_index, ToA, ToT, FToA, overflow, pocet_udalosti): #tuto fci nemus9m explicitn2 volat - volam ji v fci load_t3pa
pocet=int(0) #pocet sumicich pixelu
konst=int(len(index)/1000)+1
noise_matrix_index=[]
for i in range(0,konst):
pom = [] # pomocne pole
k=0 #pomocna promenna - udava, kolik je v czklu ve skutecnosti udalosti - aby nebyla chyba 'list index out of range'
for j in range(0,1001):
if i*1000+j>=len(index):
break
pom.append(matrix_index[i*1000+j])
k=k+1
for m in range(0,k):
count=int(0) #pocet vvyskytu stejneho matrix index behem 1000 udalosti
index_=int(-1) #budu testovat, jestli pixel na ktery koukam je sumici (abych ho nezapocital 2x)
for p in range(0,pocet):
#index=int(p)
if pom[m]==noise_matrix_index[p]:
index_=p #pixel na ktery jsem uz koukal a byl sumici
break
if index_ >=0 and pom[m]==noise_matrix_index[index_]:
continue
for l in range(0,k):
if pom[m]==pom[l]:
count=count+1
####podminka na sumici pixely
if count>=50: #kdyz se pixel vyskytne behem tisice udalosti vicekrat nez toto cislo, je sumici
noise_matrix_index.append(pom[m])
#noise_matrix_index[pocet]=pom[i]
pocet=pocet+1
pom.clear()
pocet_udalosti=len(index)
for n in range (0,pocet_udalosti):
for o in range(0,len(noise_matrix_index)):
if n >=pocet_udalosti:
break
if(matrix_index[n]==noise_matrix_index[o]):
del matrix_index[n]
del index[n]
del ToA[n]
del ToT[n]
del FToA[n]
del overflow[n]
pocet_udalosti=pocet_udalosti-1
continue
return pocet_udalosti,index, matrix_index, ToA, ToT, FToA, overflow
def t3pa_data(pocet_udalosti,index, matrix_index, ToA, ToT, FToA, overflow):
#rovnou vyhodim sumici pixely
pocet_udalosti,index, matrix_index, ToA, ToT, FToA, overflow=noise(index, matrix_index, ToA, ToT, FToA, overflow, pocet_udalosti)
RowNo=[]
ClmNo=[]
for i in range(0,len(matrix_index)):
RowNo.append(int(int(matrix_index[i]))//int(256))
ClmNo.append(int(int(matrix_index[i]))%int(256))
return index, matrix_index, ToA, ToT, FToA, overflow, pocet_udalosti, RowNo, ClmNo
def hit_map(detector,hit_map_fig,RowNo,ClmNo):
plt.hist2d(RowNo,ClmNo,bins=(256,256),cmap='Blues')
cb=plt.colorbar()
cb.set_label('Counts in pixel')
plt.xlabel('x [pixel]')
plt.ylabel('y [pixel]')
plt.title(detector)
plt.savefig(hit_map_fig, dpi = 1000)
return
def energy(a, b, c, t, ToT, pocet_udalosti, RowNo, ClmNo):
E=[] #energy in keV
#for i in range (0,pocet_udalosti):
pom=0
for i in range (0,len(ToT)):
sqrt=float(0.0)
e1=float(0.0)
e2=float(0.0)
# promenna sqrt je vnitrek odmocniny
sqrt = (((float(b[RowNo[i]][ClmNo[i]])+float(a[RowNo[i]][ClmNo[i]])*float(t[RowNo[i]][ClmNo[i]])-float(ToT[i])))*(((float(b[RowNo[i]][ClmNo[i]])+float(a[RowNo[i]][ClmNo[i]])*float(t[RowNo[i]][ClmNo[i]])-float(ToT[i])))) + (float(4)*float(a[RowNo[i]][ClmNo[i]])*float(c[RowNo[i]][ClmNo[i]]))) #zmena oproti verzi VI
if float(sqrt)<float(0):
E.append(float(0))
else:
'''
V kalibracni matici a se obcas vyskytne 0 -> ve vypoctu energie
je tim padem deleni nulou -> energie diverguje. Jak to vyresit?
zatim polozim energii = 0 (kdyz a=0), pak se uvidi
nakonec udelam limitu vyrazu energie pro a->0 (L'hopital)
'''
if a[RowNo[i]][ClmNo[i]]==0:
e1=((float(t[RowNo[i]][ClmNo[i]]))/float(2)) + ((((float(b[RowNo[i]][ClmNo[i]])+float(a[RowNo[i]][ClmNo[i]])*float(t[RowNo[i]][ClmNo[i]])-float(ToT[i]))*(float(t[RowNo[i]][ClmNo[i]]))) - 2*(float(c[RowNo[i]][ClmNo[i]])))/(float(2)*np.sqrt(float(sqrt))))
e2=((float(t[RowNo[i]][ClmNo[i]]))/float(2)) - ((((float(b[RowNo[i]][ClmNo[i]])+float(a[RowNo[i]][ClmNo[i]])*float(t[RowNo[i]][ClmNo[i]])-float(ToT[i]))*(float(t[RowNo[i]][ClmNo[i]]))) - 2*(float(c[RowNo[i]][ClmNo[i]])))/(float(2)*np.sqrt(float(sqrt))))
else:
e1=((-(float(b[RowNo[i]][ClmNo[i]]) - (float(a[RowNo[i]][ClmNo[i]])*float(t[RowNo[i]][ClmNo[i]]))-float(ToT[i])))+np.sqrt(float(sqrt)))/(float(2)*float(a[RowNo[i]][ClmNo[i]]))
e2=((-(float(b[RowNo[i]][ClmNo[i]]) - (float(a[RowNo[i]][ClmNo[i]])*float(t[RowNo[i]][ClmNo[i]]))-float(ToT[i])))-np.sqrt(float(sqrt)))/(float(2)*float(a[RowNo[i]][ClmNo[i]]))
if a[RowNo[i]][ClmNo[i]]<0:
e1=-1
e2=-1
if math.isnan(e1):
e1=-1
if math.isnan(e2):
e2=-1
if e1<0 and e2<0:
E.append(float(0))
if e1>=0 and e1>e2:
E.append(float(e1))
if e2>=0 and e2>e1:
E.append(float(e2))
if e1>=0 and e2==e1:
E.append(float(e1))
return E
def Time(ToA, FToA, pocet_udalosti, RowNo, ClmNo):
T=[] #time in ns
for i in range (0,pocet_udalosti):
Time=float(0.0)
Time=(float(ToA[i])-((float(FToA[i])/float(16))))*float(25)
T.append(float(Time))
return T
def remove_interactions_with_zero_energy(index, matrix_index, ToA, ToT, FToA, overflow, RowNo, ClmNo, E, T):
i=0
treshold=5.015347
while i < len(T):
if E[i]<treshold: #E[i] < energy treshold
index.pop(i)
matrix_index.pop(i)
ToA.pop(i)
ToT.pop(i)
FToA.pop(i)
overflow.pop(i)
RowNo.pop(i)
ClmNo.pop(i)
E.pop(i)
T.pop(i)
continue
i=i+1
return index, matrix_index, ToA, ToT, FToA, overflow, RowNo, ClmNo, E, T
def clustering_new(index, matrix_index, ToA, ToT, FToA, overflow, RowNo, ClmNo, E, T):
dT=float(50)
indexCl, TCl,ECl, matrix_indexCl, ToACl,ToTCl,FToACl,RowNoCl,ClmNoCl,overflowCl=[],[],[],[],[],[],[],[],[],[]
StartLastElem=len(T)-1
indexCl.append(int(index[StartLastElem]))
TCl.append(float(T[StartLastElem]))
ECl.append(float(E[StartLastElem]))
matrix_indexCl.append(int(matrix_index[StartLastElem]))
RowNoCl.append(int(RowNo[StartLastElem]))
ClmNoCl.append(int(ClmNo[StartLastElem]))
ToACl.append(float(ToA[StartLastElem]))
ToTCl.append(float(ToT[StartLastElem]))
FToACl.append(float(FToA[StartLastElem]))
overflowCl.append(float(overflow[StartLastElem]))
del index[StartLastElem]
del T[StartLastElem]
del E[StartLastElem]
del matrix_index[StartLastElem]
del RowNo[StartLastElem]
del ClmNo[StartLastElem]
del ToA[StartLastElem]
del ToT[StartLastElem]
del FToA[StartLastElem]
del overflow[StartLastElem]
j=1
pom=float(TCl[0]+dT)
while(j >0):
if(len(T) == 0):
break
k=0
j=0
while (k<=(len(TCl)-1)):
i=len(T)-1
if(len(T) == 0):
break
pocet_sousedu=0 #pocet sousednich pixelu - mohou byt maximalne 4
delka=0
# verze X
count=0 #pomocna promanna, kterou urcuji, ze se ma nasledujici cyklus while projit jeste jednou, pokud je i = -1
while(float(T[i])<=(pom)):
delka=delka+1
if(((((int(RowNoCl[k]))==(int(RowNo[i])+1))or((int(RowNoCl[k]))==(int(RowNo[i])-1))) and ((int(ClmNoCl[k]))==(int(ClmNo[i])))) or (((int(RowNoCl[k]))==(int(RowNo[i]))) and (((int(ClmNoCl[k]))==(int(ClmNo[i])+1))or((int(ClmNoCl[k]))==(int(ClmNo[i])-1))))):
#beru jen pixely, které mají společnou jednu stranu.
#pixely, kter0 spolu sousedí přes roh neuvažuji
indexCl.append(int(index[i]))
TCl.append(float(T[i]))
ECl.append(float(E[i]))
matrix_indexCl.append(int(matrix_index[i]))
RowNoCl.append(int(RowNo[i]))
ClmNoCl.append(int(ClmNo[i]))
ToACl.append(float(ToA[i]))
ToTCl.append(float(ToT[i]))
FToACl.append(float(FToA[i]))
overflowCl.append(float(overflow[i]))
# Removes i-th Row
del index[i]
del T[i]
del E[i]
del matrix_index[i]
del RowNo[i]
del ClmNo[i]
del ToA[i]
del ToT[i]
del FToA[i]
del overflow[i]
j=j+1
i=len(T)-1
pocet_sousedu=pocet_sousedu+1
if(len(T) == 0):
break
if(pocet_sousedu==4):
break
continue
i=i-1
if(i==-1): # verze X
count=count+1
if(i<0 and len(T)>0): # verze X
i=0
if(count>1):
break
if(i>=len(T)):
break
k=k+1
if(len(TCl)>2):
indexCl, TCl, ECl, matrix_indexCl, RowNoCl, ClmNoCl, ToACl, ToTCl, FToACl, overflowCl = insertionSort(indexCl, TCl, ECl, matrix_indexCl, RowNoCl, ClmNoCl, ToACl, ToTCl, FToACl, overflowCl)
return T, indexCl,TCl, ECl, matrix_indexCl, RowNoCl, ClmNoCl, ToACl, ToTCl, FToACl, overflowCl
def insertionSort(indexCl, TCl, ECl, matrix_indexCl, RowNoCl, ClmNoCl, ToACl, ToTCl, FToACl, overflowCl):
# Function to do insertion sort
# Traverse through 1 to len(arr)
for i in range(1, len(TCl)):
key = TCl[i]
# Move elements of arr[0..i-1], that are
# greater than key, to one position ahead
# of their current position
#ostatni
key1 = indexCl[i]
key2 = ECl[i]
key3 = matrix_indexCl[i]
key4 = RowNoCl[i]
key5 = ClmNoCl[i]
key6 = ToACl[i]
key7 = ToTCl[i]
key8 = FToACl[i]
key9 = overflowCl[i]
j = i-1
while j >= 0 and key < TCl[j] :
TCl[j + 1] = TCl[j]
#ostatni
indexCl[j + 1] = indexCl[j]
ECl[j + 1] = ECl[j]
matrix_indexCl[j + 1] = matrix_indexCl[j]
RowNoCl[j + 1] = RowNoCl[j]
ClmNoCl[j + 1] = ClmNoCl[j]
ToACl[j + 1] = ToACl[j]
ToTCl[j + 1] = ToTCl[j]
FToACl[j + 1] = FToACl[j]
overflowCl[j + 1] = overflowCl[j]
j -= 1
TCl[j + 1] = key
#ostatni
indexCl[j + 1] = key1
ECl[j + 1] = key2
matrix_indexCl[j + 1] = key3
RowNoCl[j + 1] =key4
ClmNoCl[j + 1] = key5
ToACl[j + 1] = key6
ToTCl[j + 1] = key7
FToACl[j + 1] = key8
overflowCl [j + 1] = key9
return indexCl, TCl, ECl, matrix_indexCl, RowNoCl, ClmNoCl, ToACl, ToTCl, FToACl, overflowCl
def file_t3pa_cls_new(file_t3pa_cls,T):
with open(file_t3pa_cls, "w", encoding="utf-8") as t3pa_cls:
t3pa_cls.write('%\n')
t3pa_cls.write('% Index Matrix Index [ RowNo, ClmNo ] ToA FToA ( ToA_in_ns ) ToT ( ToT_in_keV ) Overflow\n')
t3pa_cls.write('\n')
i=1
T_first=[]
E_tot=[]
while(len(T) > 0):
T, indexCl,TCl, ECl, matrix_indexCl, RowNoCl, ClmNoCl, ToACl, ToTCl, FToACl, overflowCl = clustering_new(index, matrix_index, ToA, ToT, FToA, overflow, RowNo, ClmNo, E, T)
Tfirst=float(TCl[0])
Tlast=float(TCl[len(TCl)-1])
dT=Tlast-Tfirst
Etot=float(0)
for k in range(0,len(TCl)):
Etot=Etot+float(ECl[k])
T_first.append(float(Tfirst))
dT=Tlast-Tfirst
E_tot.append(float(Etot))
t3pa_cls.write('# '+str(i)+', Nunmasked = '+str(len(TCl))+', Nmasked = 0, Ntot = '+str(len(TCl))+'\n')
t3pa_cls.write('# Tfirst = '+str(Tfirst)+' ns, Tlast = '+str(Tlast)+' ns, dT = '+str(dT)+' ns, Etot = '+str(Etot)+' keV\n')
for j in range(0,len(TCl)):
t3pa_cls.write(str(indexCl[j])+' '+str(matrix_indexCl[j])+' [ '+str(RowNoCl[j])+', '+str(ClmNoCl[j])+' ] '+str(ToACl[j])+' '+str(FToACl[j])+' ( '+str(TCl[j])+' ns ) '+str(ToTCl[j])+' ( '+str(ECl[j])+' keV ) '+str(overflowCl[j])+'\n')
t3pa_cls.write('\n')
i=i+1
t3pa_cls.close
return T_first, E_tot
def energy_spectrum_in_time(Tfirst, Etot): #dela histogram - energie zaznamenana v case
pom = 0
dt=100 #(ns) time width of 1 bin
T_first=0 #cas, kdy prisel trigger a yacalo mereni
T_last=(max(Tfirst)) #posledni z Tfirst
Delta_T = T_last - T_first
poc = int(int(Delta_T) / float(dt)) + 1 #pocet casovych oken
T_int_first=[] #cas
E=[] #energie
for i in range(0,poc):
T_int_first.append((i*dt) + dt/2)
E.append(0)
#XII
for j in range(0,len(Tfirst)):
time_index=0
time_index=int(((Tfirst[j]-T_first)/dt))
if float(Tfirst[j]-T_first) >= (T_int_first[time_index] - dt / 2) and float(Tfirst[j]-T_first) < (T_int_first[time_index] + dt / 2):
E[time_index]=float(E[time_index])+float(Etot[j])
pom=pom+1
for l in range(0,len(T_int_first)):
T_int_first[l]=T_int_first[l]+T_first
caption, T_int_first = energy_in_time_hist(T_int_first, E, figure_E_in_time_hist, t_plasma_start, t_plasma_end, is_plasma, dt)
return dt, caption, T_int_first, E
def energy_in_time_hist(T_int_first, E,figure_E_in_time_hist, t_plasma_start, t_plasma_end, is_plasma, dt):
plt.rcParams.update({'font.size': 20})
fig, ax = plt.subplots(figsize =(10, 7))
for k in range(0,len(T_int_first)):
T_int_first[k] = T_int_first[k] / 1000000
plt.plot(T_int_first, E)
plt.title(detector+', #'+str(shot_no))
plt.xlabel('Time [ms]')
plt.ylabel('Energy [keV]')
if is_plasma == 1:
for t in (t_plasma_start, t_plasma_end):
plt.axvline(t, color='k', linestyle='--')
plt.xlim([0, (t_plasma_start + t_plasma_end)])
else:
plt.xlim(0,)
plt.ylim(0,) #10 000 keV
plt.savefig(figure_E_in_time_hist, dpi = 1000)
caption = '# x = time in ms, count = energy in keV, dT= '+str(dt)+' ns'
return caption, T_int_first
def hits_in_time_hist_new(T, dt, t_plasma_start, t_plasma_end, is_plasma,figure_count_in_time_hist):
pom = 0
T_first=0 #cas, kdy prisel trigger a yacalo mereni
T_last=(max(T)) #posledni z Tfirst
Delta_T = T_last - T_first
poc = int(int(Delta_T) / float(dt)) + 1 #pocet casovych oken
T_hit=[] #cas
count=[] #energie
for i in range(0,poc):
T_hit.append((i*dt) + dt/2)
count.append(0)
for j in range(0,len(T)):
time_index=0
time_index=int(((T[j]-T_first)/dt))
k=time_index
for j in range(0,len(T)):
time_index=0
time_index=int(((T[j]-T_first)/dt))
if float(T[j]-T_first) >= (T_hit[time_index] - dt / 2) and float(T[j]-T_first) < (T_hit[time_index] + dt / 2):
count[time_index] = count[time_index] + 1
pom=pom+1
for l in range(0,len(T_hit)):
T_hit[l]=T_hit[l]+T_first
plt.rcParams.update({'font.size': 20})
fig, ax = plt.subplots(figsize =(10, 7))
for k in range(0,len(T_hit)):
T_hit[k] = T_hit[k] / 1000000
plt.plot(T_hit, count)
plt.title(detector+', #'+str(shot_no))
plt.xlabel('Time [ms]')
plt.ylabel('Count')
if is_plasma == 1:
for t in (t_plasma_start, t_plasma_end):
plt.axvline(t, color='k', linestyle='--')
plt.xlim([0, (t_plasma_start + t_plasma_end)])
else:
plt.xlim(0,)
plt.ylim(0,) #10 000 keV
plt.savefig(figure_count_in_time_hist, dpi = 1000)
caption = '# x = time in ms, dT= '+str(dt)+' ns'
return caption, T_hit,count
def energy_spectrum(Etot):
E_min=0
dE=5 #keV
E_max=max(Etot)
pocet=(E_max//dE) + 3
pocet=int(pocet)
E_max=float(dE*pocet)
xle=[]
xre=[]
xmean=[]
for p in range (0,pocet):
xle.append(E_min + (p * (E_max - E_min)) / pocet)
xre.append(xle[p]+dE)
xmean.append((xle[p] + xre[p]) / 2)
count=[]
for l in range(0,pocet):
count.append(0)
#XII
for i in range(0,len(Etot)):
E_index=int(((Etot[i]-E_min)/dE))
if ((xle[E_index] <= Etot[i]) and (Etot[i] < xre[E_index])):
count[E_index]=count[E_index]+1
plt.rcParams.update({'font.size': 20})
fig, ax = plt.subplots(figsize =(10, 7))
ax.hist(Etot, bins = xle)
plt.title(detector+', #'+str(shot_no))
plt.xlabel('Energy [keV]')
plt.ylabel('Count')
plt.xlim(0,)
ax.set_yscale('log') #log scale y
caption = '# x = energy in keV, dE= '+str(dE)+' keV'
plt.savefig(figure_E_hist, dpi = 1000)
return caption, xmean,count, xle, Etot
def hist_file(file_hist, xmean, count, caption ):
with open(file_hist, "w", encoding="utf-8") as hist:
hist.write('#\n')
hist.write('#'+str(caption)+'\n')
hist.write('# x_mean count\n')
hist.write('\n')
for m in range(0,len(xmean)):
hist.write(str(xmean[m])+' '+str(count[m])+'\n')
hist.close
return T_first, E_tot
def multiplot(icon_fig, x1,y1,x2,y2):
plt.rcParams.update({'font.size': 20})
fig, ax = plt.subplots(nrows=2,figsize =(10, 7))
ax[0].plot(x1, y1)
ax[0].set_xlabel('Time [ms]')
ax[0].set_ylabel('Energy [keV]')
if is_plasma == 1:
for t in (t_plasma_start, t_plasma_end):
ax[0].axvline(t, color='k', linestyle='--')
ax[0].set_xlim([0, (t_plasma_start + t_plasma_end)])
else:
ax[0].set_xlim(0,)
ax[0].set_ylim(0,) #keV
ax[1].hist(y2, bins = x2)
ax[1].set_xlabel('Energy [keV]')
ax[1].set_ylabel('Count')
ax[1].set_xlim(0,)
#ax[1].set_ylim(0,)
ax[1].set_yscale('log') #log scale y
fig.subplots_adjust(hspace=0.3)
plt.savefig(icon_fig, dpi = 1000)
return
#soubory, ktere ctu
#read files
t3pa=get_file(shot, identifier)
name_calib='caliba'
caliba=get_file_calib(name_calib)
name_calib='calibb'
calibb=get_file_calib(name_calib)
name_calib='calibc'
calibc=get_file_calib(name_calib)
name_calib='calibt'
calibt=get_file_calib(name_calib)
#vytvorene soubory:
#created files
t3pa_cls='H03-W0051_shot_'+str(shot)+'_450V.t3pa_cls'
E_hist='H03-W0051_shot_'+str(shot)+'_450V_E_hist.txt'
E_in_time_hist='H03-W0051_shot_'+str(shot)+'_450V_discharge_energy.txt'
count_in_time_hist= 'H03-W0051_shot_'+str(shot)+'_450V_discharge_hits.txt'
#created figures
icon_fig='icon-fig'
figure_E_in_time_hist='discharge_energy'
figure_count_in_time_hist='discharge_hits'
figure_E_hist='Energy_spectrum'
hit_map_fig='hit-map'
#nactu jednotlive kalibracni matice - abych to nemusel delat v kazde funkci
a=load_calib(caliba)
b=load_calib(calibb)
c=load_calib(calibc)
t=load_calib(calibt)
#nactu a urcim jednotlive hodnoty - abych to nemusel delat v kazde funkci
index, matrix_index, ToA, ToT, FToA, overflow, pocet_udalosti = load_t3pa_file(t3pa)
index, matrix_index, ToA, ToT, FToA, overflow, pocet_udalosti, RowNo, ClmNo = t3pa_data(pocet_udalosti,index, matrix_index, ToA, ToT, FToA, overflow)
raw data
#hit map
hit_map(detector,hit_map_fig,RowNo,ClmNo)
Energy and time calculation from raw data.
E=energy(a, b, c, t, ToT, pocet_udalosti, RowNo, ClmNo)
T=Time(ToA, FToA, pocet_udalosti, RowNo, ClmNo)
index, matrix_index, ToA, ToT, FToA, overflow, RowNo, ClmNo, E, T = remove_interactions_with_zero_energy(index, matrix_index, ToA, ToT, FToA, overflow, RowNo, ClmNo, E, T)
#sort by time
T, index, matrix_index, ToA, ToT, FToA, overflow, RowNo, ClmNo, E = (list(t) for t in zip(*sorted(zip(T, index, matrix_index, ToA, ToT, FToA, overflow, RowNo, ClmNo, E), reverse=True))) #serazeni od nejvetsiho po nejmensi
T_pom=T.copy()
#save to file
T_first, E_tot = file_t3pa_cls_new(t3pa_cls,T)
dt, caption, T_int_first, E = energy_spectrum_in_time(T_first, E_tot)
hist_file(E_in_time_hist, T_int_first, E, caption);
([2867103.125, 2903231.25, 2998814.0625, 4098212.5, 4144818.75, 5258271.875, 5352690.625, 5461571.875, 5497721.875, 5619240.625, 5658171.875, 5721646.875, 5731573.4375, 5764593.75, 5790035.9375, 5803123.4375, 5805667.1875, 5819579.6875, 5821740.625, 5822293.75, 5842603.125, 5843859.375, 5844256.25, 5844770.3125, 5845217.1875, 5849839.0625, 5851093.75, 5852114.0625, 5853670.3125, 5857592.1875, 5858562.5, 5859243.75, 5859300.0, 5861710.9375, 5864332.8125, 5864457.8125, 5864489.0625, 5868446.875, 5879745.3125, 5914498.4375, 5914707.8125, 5915176.5625, 5915748.4375, 5916315.625, 5917454.6875, 5921493.75, 5995532.8125, 5997001.5625, 5999468.75, 5999490.625, 6000739.0625, 6010100.0, 6012304.6875, 6018004.6875, 6044267.1875, 6052178.125, 6074345.3125, 6093818.75, 6095489.0625, 6102165.625, 6104081.25, 6105751.5625, 6107634.375, 6108704.6875, 6109578.125, 6114017.1875, 6135143.75, 6140675.0, 6145784.375, 6152754.6875, 6154400.0, 6156384.375, 6159470.3125, 6167209.375, 6167265.625, 6176507.8125, 6179278.125, 6190117.1875, 6192496.875, 6192926.5625, 6192931.25, 6194978.125, 6195826.5625, 6198332.8125, 6198339.0625, 6199184.375, 6201628.125, 6204959.375, 6206357.8125, 6212656.25, 6216281.25, 6218531.25, 6219514.0625, 6220862.5, 6221150.0, 6221768.75, 6224729.6875, 6225043.75, 6225346.875, 6225354.6875, 6257029.6875, 6257267.1875, 6259101.5625, 6259942.1875, 6263535.9375, 6285028.125, 6296682.8125, 6305018.75, 6309668.75, 6311818.75, 6319423.4375, 6326190.625, 6327400.0, 6332039.0625, 6334760.9375, 6337250.0, 6338118.75, 6338364.0625, 6338810.9375, 6339031.25, 6339592.1875, 6340170.3125, 6340434.375, 6340934.375, 6341740.625, 6342409.375, 6343773.4375, 6344120.3125, 6345814.0625, 6352610.9375, 6353262.5, 6355070.3125, 6365167.1875, 6368264.0625, 6371356.25, 6371684.375, 6375517.1875, 6393025.0, 6393200.0, 6397478.125, 6398409.375, 6402840.625, 6405192.1875, 6406257.8125, 6423925.0, 6428384.375, 6433057.8125, 6433070.3125, 6433850.0, 6434931.25, 6436000.0, 6436365.625, 6436767.1875, 6437039.0625, 6437740.625, 6439126.5625, 6439246.875, 6439870.3125, 6442950.0, 6449026.5625, 6449228.125, 6451292.1875, 6452020.3125, 6455518.75, 6458957.8125, 6467815.625, 6467829.6875, 6469943.75, 6475129.6875, 6476384.375, 6477006.25, 6477843.75, 6478287.5, 6481942.1875, 6482445.3125, 6484218.75, 6484653.125, 6489179.6875, 6492098.4375, 6493145.3125, 6498526.5625, 6504662.5, 6508582.8125, 6522381.25, 6543128.125, 6557648.4375, 6566289.0625, 6587310.9375, 6590867.1875, 6592878.125, 6594092.1875, 6595267.1875, 6602287.5, 6602337.5, 6603201.5625, 6605573.4375, 6607370.3125, 6612118.75, 6614817.1875, 6614971.875, 6615131.25, 6615425.0, 6615943.75, 6621628.125, 6624282.8125, 6647653.125, 6680992.1875, 6681065.625, 6689842.1875, 6707889.0625, 6755125.0, 6758942.1875, 6829835.9375, 6836615.625, 6844859.375, 6878004.6875, 6878868.75, 6934468.75, 6946665.625, 6949948.4375, 6953493.75, 6955806.25, 6955848.4375, 6962114.0625, 6966592.1875, 6967379.6875, 6968346.875, 6969229.6875, 6969576.5625, 6977292.1875, 6982968.75, 6988098.4375, 6988898.4375, 6997115.625, 7000162.5, 7002176.5625, 7007115.625, 7024570.3125, 7025085.9375, 7039081.25, 7046950.0, 7049196.875, 7049198.4375, 7052475.0, 7091853.125, 7102889.0625, 7127784.375, 7151442.1875, 7163048.4375, 7163115.625, 7163376.5625, 7229795.3125, 7231464.0625, 7231492.1875, 7231493.75, 7232851.5625, 7233781.25, 7235998.4375, 7235998.4375, 7236243.75, 7236520.3125, 7238389.0625, 7258160.9375, 7259818.75, 7283862.5, 7284504.6875, 7285454.6875, 7285768.75, 7287015.625, 7287229.6875, 7318685.9375, 7335562.5, 7353550.0, 7354768.75, 7366065.625, 7366759.375, 7367440.625, 7367484.375, 7367548.4375, 7372251.5625, 7375056.25, 7375859.375, 7378198.4375, 7378370.3125, 7383176.5625, 7383228.125, 7384501.5625, 7388492.1875, 7410373.4375, 7435070.3125, 7439017.1875, 7445520.3125, 7452339.0625, 7491595.3125, 7511584.375, 7537589.0625, 7538145.3125, 7542226.5625, 7547965.625, 7557664.0625, 7560948.4375, 7561423.4375, 7562267.1875, 7562323.4375, 7562509.375, 7562606.25, 7563867.1875, 7564176.5625, 7564504.6875, 7565593.75, 7565659.375, 7565857.8125, 7565890.625, 7565975.0, 7566153.125, 7566373.4375, 7566404.6875, 7566698.4375, 7566900.0, 7566998.4375, 7567042.1875, 7567229.6875, 7567429.6875, 7567931.25, 7567985.9375, 7568067.1875, 7571492.1875, 7571768.75, 7571778.125, 7571806.25, 7574164.0625, 7578828.125, 7587695.3125, 7612656.25, 7647812.5, 7681884.375, 7693612.5, 7694878.125, 7694890.625, 7694904.6875, 7695693.75, 7696498.4375, 7696503.125, 7697968.75, 7701276.5625, 7723256.25, 7741726.5625, 7741946.875, 7743467.1875, 7748431.25, 7748959.375, 7753967.1875, 7755742.1875, 7757393.75, 7758668.75, 7760339.0625, 7769654.6875, 7771825.0, 7772239.0625, 7773807.8125, 7778804.6875, 7801482.8125, 7809334.375, 7821306.25, 7835095.3125, 7835776.5625, 7838084.375, 7838095.3125, 7842753.125, 7843104.6875, 7846175.0, 7846562.5, 7849350.0, 7854842.1875, 7879054.6875, 7962564.0625, 7962657.8125, 7992517.1875, 8019871.875, 8022614.0625, 8025746.875, 8064162.5, 8167459.375, 8180679.6875, 8355870.3125, 8442435.9375, 8442746.875, 8446581.25, 8447698.4375, 8448409.375, 8526400.0, 8560581.25, 8611507.8125, 8616320.3125, 8775215.625, 8775281.25, 8893004.6875, 8926309.375, 8930703.125, 8960784.375, 8975257.8125, 8980564.0625, 8985179.6875, 9000128.125, 9062864.0625, 9065403.125, 9101184.375, 9102367.1875, 9103618.75, 9107325.0, 9250164.0625, 9420429.6875, 9437951.5625, 9450250.0, 9452181.25, 9453046.875, 9456807.8125, 9457206.25, 9457307.8125, 9457871.875, 9461234.375, 9461262.5, 9462614.0625, 9464045.3125, 9465882.8125, 9495920.3125, 9497645.3125, 9498721.875, 9499885.9375, 9611681.25, 9636132.8125, 9636379.6875, 9640346.875, 9669757.8125, 9672685.9375, 9688815.625, 9771507.8125, 9839646.875, 9910960.9375, 9912234.375, 9949210.9375, 9951445.3125, 9951460.9375, 9951464.0625, 9955464.0625, 9955970.3125, 9972339.0625, 9979078.125, 9993679.6875, 9994264.0625, 9998473.4375, 10003431.25, 10052206.25, 10054159.375, 10959800.0, 10964095.3125, 11012920.3125, 11012937.5, 11022203.125, 11028926.5625, 11161106.25, 11180495.3125, 11187421.875, 11187950.0, 11188551.5625, 11190075.0, 11190629.6875, 11190790.625, 11194498.4375, 11195517.1875, 11195532.8125, 11195539.0625, 11195626.5625, 11195837.5, 11195867.1875, 11195896.875, 11197501.5625, 11197762.5, 11197821.875, 11198771.875, 11201506.25, 11201865.625, 11201868.75, 11202417.1875, 11203253.125, 11203481.25, 11203514.0625, 11203737.5, 11204310.9375, 11204403.125, 11204454.6875, 11204501.5625, 11204665.625, 11204917.1875, 11205232.8125, 11205764.0625, 11206662.5, 11207431.25, 11207451.5625, 11208034.375, 11208073.4375, 11208089.0625, 11208237.5, 11208381.25, 11208507.8125, 11208704.6875, 11208834.375, 11208990.625, 11209085.9375, 11209151.5625, 11209587.5, 11210445.3125, 11210582.8125, 11210592.1875, 11210679.6875, 11210832.8125, 11210940.625, 11210959.375, 11211203.125, 11211239.0625, 11211359.375, 11211481.25, 11211565.625, 11211668.75, 11211825.0, 11212012.5, 11212485.9375, 11212495.3125, 11212553.125, 11212778.125, 11213209.375, 11213531.25, 11213840.625, 11213840.625, 11214021.875, 11214078.125, 11214473.4375, 11214825.0, 11214832.8125, 11214923.4375, 11215784.375, 11215823.4375, 11215831.25, 11216232.8125, 11216340.625, 11216392.1875, 11216779.6875, 11217021.875, 11217050.0, 11217254.6875, 11217617.1875, 11217932.8125, 11218067.1875, 11218284.375, 11218446.875, 11218517.1875, 11218535.9375, 11218600.0, 11218700.0, 11219253.125, 11219442.1875, 11219445.3125, 11219606.25, 11219896.875, 11219914.0625, 11219976.5625, 11219992.1875, 11220334.375, 11221204.6875, 11221518.75, 11221695.3125, 11221854.6875, 11222093.75, 11222142.1875, 11222162.5, 11222415.625, 11222498.4375, 11222534.375, 11222732.8125, 11222987.5, 11223228.125, 11223468.75, 11223925.0, 11224106.25, 11224254.6875, 11225170.3125, 11225695.3125, 11225698.4375, 11225846.875, 11225856.25, 11225862.5, 11225909.375, 11225931.25, 11226034.375, 11226251.5625, 11226368.75, 11226378.125, 11226820.3125, 11227043.75, 11227204.6875, 11227270.3125, 11227315.625, 11227787.5, 11227946.875, 11228003.125, 11228509.375, 11228648.4375, 11228871.875, 11228935.9375, 11229195.3125, 11229203.125, 11229290.625, 11229335.9375, 11229339.0625, 11229623.4375, 11229743.75, 11229923.4375, 11229926.5625, 11230145.3125, 11230153.125, 11230234.375, 11230973.4375, 11231232.8125, 11231489.0625, 11232435.9375, 11232787.5, 11232871.875, 11232925.0, 11233004.6875, 11233014.0625, 11233367.1875, 11233589.0625, 11233795.3125, 11233840.625, 11234467.1875, 11234620.3125, 11234782.8125, 11235582.8125, 11236223.4375, 11236734.375, 11236784.375, 11237320.3125, 11237404.6875, 11237534.375, 11238987.5, 11239348.4375, 11240182.8125, 11240215.625, 11240596.875, 11241357.8125, 11241623.4375, 11241710.9375, 11241829.6875, 11243629.6875, 11244050.0, 11244135.9375, 11244601.5625, 11245193.75, 11245432.8125, 11245448.4375, 11245753.125, 11245871.875, 11246495.3125, 11246592.1875, 11246793.75, 11246826.5625, 11247076.5625, 11247535.9375, 11247651.5625, 11247662.5, 11247896.875, 11247942.1875, 11248128.125, 11248260.9375, 11248685.9375, 11248765.625, 11249225.0, 11249401.5625, 11249434.375, 11249507.8125, 11249515.625, 11249626.5625, 11249753.125, 11250242.1875, 11250293.75, 11250576.5625, 11250603.125, 11250621.875, 11250815.625, 11250975.0, 11251125.0, 11251400.0, 11251465.625, 11251634.375, 11252073.4375, 11252335.9375, 11252982.8125, 11253015.625, 11253020.3125, 11253367.1875, 11253728.125, 11254995.3125, 11255128.125, 11255500.0, 11255968.75, 11256068.75, 11256093.75, 11256254.6875, 11256262.5, 11256298.4375, 11256443.75, 11256779.6875, 11256973.4375, 11257245.3125, 11257325.0, 11257803.125, 11258634.375, 11258720.3125, 11259021.875, 11259131.25, 11261637.5, 11261673.4375, 11261914.0625, 11261932.8125, 11262885.9375, 11263273.4375, 11263320.3125, 11264709.375, 11264717.1875, 11264865.625, 11265012.5, 11265564.0625, 11267495.3125, 11267996.875, 11269020.3125, 11271014.0625, 11272453.125, 11272901.5625, 11278053.125, 11278064.0625], [28.004135066159478, 54.45487683603589, 49.176616110714505, 8.7271555055137, 17.37099468820231, 14.142540334638802, 31.176381113221673, 141.5525865055182, 68.9530198093729, 79.57148250040399, 67.93889279690228, 22.97398068300035, 14.51154817391596, 13.031617542690146, 28.67891624137493, 28.58629103967168, 74.00955011547272, 22.51372239062823, 14.08294137411716, 21.710237232937917, 129.35253493917637, 10.119867882545842, 31.790210936186302, 15.751590291645027, 14.287626483543951, 5.211572777864106, 112.97974698013425, 100.9626226386367, 46.50472874274642, 22.17127542591104, 76.97209959199101, 36.76735297075394, 5.46323717455812, 5.769534999742364, 32.760948872806345, 45.2176971250693, 97.92418883079716, 63.375113958045986, 6.8613971332754575, 15.663144652318262, 13.770642741687073, 13.931857621706568, 27.935505509386093, 22.309484846655444, 37.351607508783495, 6.269508405795551, 9.545311769048267, 51.528816921350895, 17.10735565835986, 14.074477330812627, 17.614528652970815, 7.330312652716141, 69.46143799436022, 44.59607448415745, 24.697873423291043, 23.924998955811493, 20.641592494994516, 91.9359837529082, 5.282654135837045, 24.841155882795924, 18.6217804254613, 14.714629544710942, 22.960251872807365, 116.47497491669361, 68.6651645092421, 5.8520080761849655, 54.217774535845784, 18.362422840168165, 17.374340967147994, 64.74821118073777, 79.7411897161826, 8.671588070443212, 32.4464755747491, 52.22479154648557, 10.002485682769548, 10.12049516618709, 155.10094687314887, 13.130027048396258, 83.90433856299663, 76.7239762483732, 18.328114602094978, 10.460315311148827, 18.020148103550724, 114.05789574175834, 24.524042659319075, 55.50978800458747, 157.50559984668377, 86.83420937715495, 60.259054244038616, 27.255228739107686, 110.72823207150972, 80.0538716121734, 16.172428238775783, 68.66999525795734, 11.415847761456806, 21.013827649683535, 8.542536693660402, 42.82501275197448, 46.92069652867763, 19.504652457636837, 6.883735631608488, 54.61078207601565, 36.101200442469896, 53.19876363473902, 167.1010725206569, 63.78008833907789, 89.23451463095547, 17.227088595924478, 38.33917593442391, 52.509727626975575, 38.27031579141638, 32.307704676699416, 20.81729069713243, 52.78049040360167, 54.35347074694303, 39.18324381319081, 47.20696026941137, 18.31098605168685, 199.16031562618522, 53.91674102639429, 26.180288735652532, 48.83274965801192, 54.23463395127133, 34.89629345346506, 62.38874814028727, 23.9238981366242, 65.00642163102238, 8.129641449264575, 51.89702489349098, 22.476109136776508, 5.71709183519186, 26.085262958747943, 127.50845042339803, 41.581684020739544, 88.7537002416737, 9.199676610347149, 85.96602438560731, 16.782874677732593, 82.18250743414862, 14.475109298822828, 12.182050085019121, 28.577600005923305, 71.12635074305182, 93.18538690374321, 11.997071427141265, 93.17000017631763, 47.41074411322636, 53.94286484629522, 65.25873210061631, 13.262774566967735, 24.62507135884794, 40.642479897176244, 111.10136809082265, 24.2923372854987, 39.757425950604926, 10.405191061055866, 98.28363899568953, 6.360389858755988, 175.82586261518173, 142.29019036563088, 103.12495836577524, 5.420551836305629, 10.089908692927182, 22.170113322923218, 76.642623613223, 34.197463684233455, 17.802765024295596, 68.03138793663122, 51.57838920006306, 26.14147119064086, 66.39688121604635, 115.55890475686037, 5.430972932483764, 25.24787608992044, 104.80671427065191, 31.393783813962333, 19.656100812295122, 21.266157623955955, 64.6170350617162, 54.41095299921919, 50.530006862992494, 9.555734091290686, 79.25830482051767, 83.30165456005284, 67.93979396307182, 21.45556074635902, 14.722490943518903, 38.02896446590337, 117.31396395302637, 7.5940115783021795, 82.89760581631539, 29.85115811216586, 26.755598884359078, 73.86780846193433, 62.13283021787002, 41.91187480047458, 28.587556285231763, 8.947963077123172, 162.91735514130292, 18.489623523944356, 75.93513890872472, 164.62567564461506, 52.41041231778944, 204.29652992927205, 75.81325772060185, 27.05160057595899, 78.71897425784152, 5.125572213230715, 117.32332228117629, 13.698762348825774, 19.257423111683607, 13.736979236047588, 119.40998495896623, 50.1374206628237, 86.0772882944577, 41.04452864279243, 75.44185478763049, 251.53591824494043, 5.320631439455757, 14.297155616062005, 21.564184947254127, 14.553645970875854, 55.905680659605245, 44.38010753320287, 44.413558562282944, 89.91968976247135, 22.146800439790937, 17.06050807594673, 75.62730050787076, 91.00923310500866, 157.99215556151154, 11.233498041044145, 10.560095532216893, 52.53062880647994, 9.24231347262467, 8.005980929731496, 121.86794960379595, 23.343872907306835, 22.704978066213563, 62.179823735432855, 6.964258085645491, 23.740435261205654, 29.992936128770136, 30.2504370759559, 71.16873847892153, 276.2761522407679, 182.26108178838854, 33.83472296621039, 12.575660877331918, 5.040510701428334, 25.96224345008954, 26.77486139145157, 63.265171418546956, 8.815163108738941, 15.081322458434272, 114.82559227116168, 148.06332135870647, 11.939771018169251, 11.152646200847068, 95.54567693576932, 51.406953862624846, 45.65393525607823, 7.596439446392941, 46.14718124877568, 8.072074460323671, 11.173191509350653, 89.01196703529891, 38.69894928450148, 13.451735346070338, 50.5710997041265, 16.680454176647395, 88.46507668844589, 165.46008292070323, 114.12665105506412, 86.51982734229739, 141.29752329126072, 7.72738623835078, 47.92898594800031, 6.68993183573925, 65.79307528453691, 62.19011543051489, 30.640906452630183, 18.70816362907402, 107.56717552080814, 17.267038315908646, 9.255691319223653, 191.067031889137, 117.68890926270772, 145.87224551718575, 50.294674782046926, 79.29001944845422, 162.2148635799753, 130.06313826257417, 34.384938930150504, 157.31237427593214, 9.599951783497936, 29.66737662258726, 33.151466054369166, 45.91851063682624, 69.066013529728, 6.743993117567036, 36.804681907565595, 14.941878382701622, 9.280918957923094, 42.25629018940199, 21.282273409333225, 7.881821026613237, 18.52279583024154, 100.26591785383724, 56.115512999382204, 5.282233905577684, 13.402725327959207, 138.05763918691213, 8.720759242778758, 76.99135298964424, 109.21513753734064, 77.60957409310183, 11.546756876584682, 163.60737843989324, 10.399321776905646, 80.25364454093683, 25.053653771899093, 91.03889030128596, 21.961883601884868, 20.625499607330767, 14.261922592724527, 68.0438643047051, 17.585869126352176, 8.623587388921298, 116.35624972381564, 14.913688944868085, 24.316941876452027, 6.293085110231906, 88.44698799676699, 93.5028881031553, 75.04989933805558, 65.21988919457733, 23.85092712599421, 22.95019286420903, 52.02577714105757, 6.722026086425435, 56.524471500243976, 10.62756355209439, 65.09080914901048, 93.46777396511064, 28.925691961344924, 199.4410175084053, 25.464466608469618, 5.783662501636688, 9.299441032092082, 103.86403533305953, 7.071699900085287, 318.8135937845692, 23.936529359310974, 273.63659854037314, 10.793913147983274, 30.215281925262076, 26.85437355218516, 5.627869570960894, 10.335735942571336, 20.006366091096787, 5.315368103937332, 5.912236821517081, 12.444343046023521, 44.78354902606861, 66.4805946662819, 59.21097676202495, 5.587164961047542, 29.175175795857516, 80.41234405715586, 7.135729478392734, 11.144365215114785, 98.54047826104693, 6.500143280157143, 171.8314461009964, 179.7461385372273, 5.115132740620922, 8.486873599131721, 78.13104762947317, 72.96061805620528, 7.607586814346054, 10.71887765624463, 39.44863336445709, 11.812071192331997, 30.753831853112548, 46.4121620631343, 9.945283399066584, 5.795869051122991, 6.269781911652211, 10.473337553611776, 50.41128252603298, 67.47234774975236, 71.99173223732026, 28.90645117125814, 18.245183785578817, 5.143990988641472, 121.33834280936993, 28.621868636640883, 6.324069715836658, 13.245901001599583, 62.032462087620274, 16.79600099700778, 20.593625194162392, 65.14311680674088, 24.043685343759808, 12.978637927546037, 68.20757847585233, 65.28052750078218, 101.54873785746591, 46.3051336159442, 6.484458915649442, 7.315765251804967, 6.082277466815764, 28.49958920267595, 15.518963812420548, 41.52913091948791, 32.31944911511664, 110.98346936257784, 52.00064032115896, 52.4210746606958, 27.642186274173543, 5.219342164130315, 26.616209818110963, 6.038216805773238, 19.626212447266543, 9.143904601139802, 75.88159042707652, 63.873417714512954, 67.85219423976868, 104.65301165030705, 66.52582860067741, 5.328834773010025, 43.57023398789412, 11.799187742479798, 25.1823346303305, 6.0921729305888705, 101.01446707783403, 51.525060958769444, 63.32473624253621, 22.332060367044804, 70.21863502795567, 165.93711543232735, 20.18091336817373, 56.631711155913976, 5.4963547445632965, 58.20549337105848, 5.874053337019227, 26.410358682870722, 10.672959808486198, 28.59529266325036, 22.511514411100823, 53.46514636096397, 10.079419885815062, 16.150662224288702, 13.977142676993154, 12.50181478272816, 11.427400701413731, 27.655982298208656, 12.220911771242019, 25.234199281964624, 75.07183096408153, 50.44347855536279, 8.248211197857321, 14.613321599567085, 60.77873522718346, 5.425455130416027, 6.124120825683453, 64.5033167161101, 66.01285577504332, 63.78528615929458, 15.821321071095376, 7.59241694912062, 8.544386710738577, 18.8590561500657, 6.931223582847929, 5.700741609626539, 18.5057989638402, 10.931426340712525, 8.734135803118898, 35.526575334960214, 46.229401562160916, 42.52997062539974, 72.41769674228013, 35.917393166854204, 6.76072189409603, 68.34433097254528, 38.00641721929438, 109.82536764891141, 47.40188353464862, 11.335947493762166, 104.347404756624, 96.99154401457082, 8.91143857189508, 18.938309216135067, 8.434284792845954, 10.15118166660058, 69.7336016041636, 9.609149053019696, 60.91319486253332, 19.798395567407653, 11.152520704661383, 32.200696958093616, 67.0474895114103, 60.554266816449925, 41.69865212049318, 15.036118469426423, 45.45740845144522, 10.186149624017878, 34.3858450053345, 83.32570131859583, 97.39304229201787, 19.278129002119012, 11.775425917515333, 5.496049220733638, 16.935693719023504, 36.92174625162946, 110.58406614631944, 24.4112635407473, 94.80670777207283, 22.206271048880314, 5.59179714404486, 8.352350653978844, 20.118139113707766, 5.242297991844984, 13.808437439734833, 13.612723552563304, 22.343390841692884, 14.314857828853418, 7.008328201623177, 24.4518445042273, 100.55881403231523, 9.35373995413424, 19.04880577798661, 46.284679000875165, 27.722989478527957, 13.341421581869362, 34.19434308421229, 14.53085662439005, 10.893506413374677, 102.76031074302503, 97.9759112140257, 11.89648731212004, 17.330375853812633, 24.7176626696463, 15.53440857875232, 8.692908019133451, 13.779291214972185, 8.805678921378282, 63.64203757729332, 5.798677768802496, 11.26248418356196, 44.38415320499082, 62.66169109947008, 5.337452382822108, 32.46711867650502, 17.75988528024709, 6.839437301142803, 16.18792736255865, 12.23869681136704, 8.869783371838095, 53.03772345741577, 16.507886065763408, 7.169664641955136, 12.796354235668428, 46.78001357253464, 8.719235623989974, 39.10522241219072, 25.23925473602877, 7.488579704629241, 9.157491434327097, 23.52009087327262, 48.777873159793145, 52.00594265695135, 23.273438553793024, 8.93722206402986, 37.30405525989252, 14.608312406349315, 11.414496513284352, 81.82130642383761, 14.264953067960088, 30.680506672555527, 18.345692930334838, 46.03749965525418, 47.27474890439121, 8.37862254581911, 6.944294906138245, 5.80360781977027, 13.164269688193741, 19.489627118434377, 37.0338344618543, 8.281106277680095, 12.098876108471494, 7.257530163928908, 8.003920677077629, 62.7226464261036, 8.832595591305672, 13.210165443111158, 64.20748615749449, 32.40247555910299, 57.804900487226185, 5.0389231710212385, 17.312769532895693, 19.055691318900315, 48.890017588268755, 13.793442637184224, 15.968493918541643, 13.355072762631083, 118.0651756517122, 14.519625886012076, 23.94648654426767, 15.578948739967533, 62.90275066894891, 58.51374460605288, 12.125629594368544, 9.280752086666947, 79.31615360407423, 73.5655854779356, 18.305928210615683, 14.828468975354237, 83.6904127018139, 29.450073901429306, 10.135919861965698, 69.38861663574022, 48.45465833774504, 5.917323102777014, 53.82403866580837, 5.873646382997264, 21.190270901630843, 15.9067860508892, 7.342019237746651, 19.2287219211954, 16.58910198573689, 67.45190990376365, 12.389848518404847, 23.50118340640181, 22.56941664860407, 76.18098415059389, 14.227680718903253, 79.5550518808472, 63.8032193834636, 55.238323098322226, 69.72179807374104, 49.39666130785384, 54.437667982450314, 12.573020644162181, 16.022190898761345, 20.228323314212176, 34.67481980927888, 31.599577748933548, 124.73477105766972, 60.55016518098011, 7.290903957036163, 18.150816424665788, 45.71632056987866, 11.532436090009897, 16.897624022651343, 6.3477794338245115, 39.94294437113499, 14.268775989340618, 78.3701594184952, 26.976365769273745, 30.64203942230793, 10.801679614480246, 19.11029360337758, 19.488510948473255, 19.045358286282415, 23.019644248077356, 8.719977023963297, 8.09062859047917, 81.40960015032573, 32.752651972820885, 66.47652749496667, 193.7930543039534, 54.42131893918439, 18.548227467057195, 41.84378549605001, 59.9109816507699, 54.12054015401077, 36.938549154627495, 13.5490813824813, 11.599648497016535, 95.82785321544763, 5.624618976162133, 8.610621845462541, 124.78895733259604, 26.829128690461904, 14.285302888820542, 54.06696493003524, 40.05716380072519, 12.815419231317069, 16.889897787115906, 13.222999483855862, 87.39188790831813, 12.536168262965802, 63.7806300360018, 10.607263204473464, 64.22099642173973, 6.822626418523934, 18.79175830030832, 25.05160544820778, 94.04538177785088, 41.87056991592709, 11.012641285418432, 15.51597116674031, 27.26596177466881, 13.849717532228361, 6.523460593191661, 7.2269944248630065, 5.876407697588953, 60.801749915856846, 20.55294653681222, 14.663065203587305, 69.74302118325252, 47.931263427148366, 5.410889347569368, 5.460602468464614, 18.978113668723523, 39.863161251906554, 19.589474271324175, 32.321039454877635, 73.7588212623066, 11.899280811047738, 80.76789723244838, 14.555125781007348, 7.22470181343092, 61.022502344621486, 32.98524996620758, 48.24951543454514, 15.51198848877878, 45.704809336885866, 74.85392022476178, 17.99798596409481, 18.77901143092195, 47.49668639054261, 6.997554214665304, 19.188932974328083, 7.114692110450862, 52.29734343820249, 62.99753634585063, 10.907538989764767])
caption, xmean,count, xle, Etot = energy_spectrum(E_tot)
hist_file(E_hist, xmean, count, caption);
([2867103.125, 2903231.25, 2998814.0625, 4098212.5, 4144818.75, 5258271.875, 5352690.625, 5461571.875, 5497721.875, 5619240.625, 5658171.875, 5721646.875, 5731573.4375, 5764593.75, 5790035.9375, 5803123.4375, 5805667.1875, 5819579.6875, 5821740.625, 5822293.75, 5842603.125, 5843859.375, 5844256.25, 5844770.3125, 5845217.1875, 5849839.0625, 5851093.75, 5852114.0625, 5853670.3125, 5857592.1875, 5858562.5, 5859243.75, 5859300.0, 5861710.9375, 5864332.8125, 5864457.8125, 5864489.0625, 5868446.875, 5879745.3125, 5914498.4375, 5914707.8125, 5915176.5625, 5915748.4375, 5916315.625, 5917454.6875, 5921493.75, 5995532.8125, 5997001.5625, 5999468.75, 5999490.625, 6000739.0625, 6010100.0, 6012304.6875, 6018004.6875, 6044267.1875, 6052178.125, 6074345.3125, 6093818.75, 6095489.0625, 6102165.625, 6104081.25, 6105751.5625, 6107634.375, 6108704.6875, 6109578.125, 6114017.1875, 6135143.75, 6140675.0, 6145784.375, 6152754.6875, 6154400.0, 6156384.375, 6159470.3125, 6167209.375, 6167265.625, 6176507.8125, 6179278.125, 6190117.1875, 6192496.875, 6192926.5625, 6192931.25, 6194978.125, 6195826.5625, 6198332.8125, 6198339.0625, 6199184.375, 6201628.125, 6204959.375, 6206357.8125, 6212656.25, 6216281.25, 6218531.25, 6219514.0625, 6220862.5, 6221150.0, 6221768.75, 6224729.6875, 6225043.75, 6225346.875, 6225354.6875, 6257029.6875, 6257267.1875, 6259101.5625, 6259942.1875, 6263535.9375, 6285028.125, 6296682.8125, 6305018.75, 6309668.75, 6311818.75, 6319423.4375, 6326190.625, 6327400.0, 6332039.0625, 6334760.9375, 6337250.0, 6338118.75, 6338364.0625, 6338810.9375, 6339031.25, 6339592.1875, 6340170.3125, 6340434.375, 6340934.375, 6341740.625, 6342409.375, 6343773.4375, 6344120.3125, 6345814.0625, 6352610.9375, 6353262.5, 6355070.3125, 6365167.1875, 6368264.0625, 6371356.25, 6371684.375, 6375517.1875, 6393025.0, 6393200.0, 6397478.125, 6398409.375, 6402840.625, 6405192.1875, 6406257.8125, 6423925.0, 6428384.375, 6433057.8125, 6433070.3125, 6433850.0, 6434931.25, 6436000.0, 6436365.625, 6436767.1875, 6437039.0625, 6437740.625, 6439126.5625, 6439246.875, 6439870.3125, 6442950.0, 6449026.5625, 6449228.125, 6451292.1875, 6452020.3125, 6455518.75, 6458957.8125, 6467815.625, 6467829.6875, 6469943.75, 6475129.6875, 6476384.375, 6477006.25, 6477843.75, 6478287.5, 6481942.1875, 6482445.3125, 6484218.75, 6484653.125, 6489179.6875, 6492098.4375, 6493145.3125, 6498526.5625, 6504662.5, 6508582.8125, 6522381.25, 6543128.125, 6557648.4375, 6566289.0625, 6587310.9375, 6590867.1875, 6592878.125, 6594092.1875, 6595267.1875, 6602287.5, 6602337.5, 6603201.5625, 6605573.4375, 6607370.3125, 6612118.75, 6614817.1875, 6614971.875, 6615131.25, 6615425.0, 6615943.75, 6621628.125, 6624282.8125, 6647653.125, 6680992.1875, 6681065.625, 6689842.1875, 6707889.0625, 6755125.0, 6758942.1875, 6829835.9375, 6836615.625, 6844859.375, 6878004.6875, 6878868.75, 6934468.75, 6946665.625, 6949948.4375, 6953493.75, 6955806.25, 6955848.4375, 6962114.0625, 6966592.1875, 6967379.6875, 6968346.875, 6969229.6875, 6969576.5625, 6977292.1875, 6982968.75, 6988098.4375, 6988898.4375, 6997115.625, 7000162.5, 7002176.5625, 7007115.625, 7024570.3125, 7025085.9375, 7039081.25, 7046950.0, 7049196.875, 7049198.4375, 7052475.0, 7091853.125, 7102889.0625, 7127784.375, 7151442.1875, 7163048.4375, 7163115.625, 7163376.5625, 7229795.3125, 7231464.0625, 7231492.1875, 7231493.75, 7232851.5625, 7233781.25, 7235998.4375, 7235998.4375, 7236243.75, 7236520.3125, 7238389.0625, 7258160.9375, 7259818.75, 7283862.5, 7284504.6875, 7285454.6875, 7285768.75, 7287015.625, 7287229.6875, 7318685.9375, 7335562.5, 7353550.0, 7354768.75, 7366065.625, 7366759.375, 7367440.625, 7367484.375, 7367548.4375, 7372251.5625, 7375056.25, 7375859.375, 7378198.4375, 7378370.3125, 7383176.5625, 7383228.125, 7384501.5625, 7388492.1875, 7410373.4375, 7435070.3125, 7439017.1875, 7445520.3125, 7452339.0625, 7491595.3125, 7511584.375, 7537589.0625, 7538145.3125, 7542226.5625, 7547965.625, 7557664.0625, 7560948.4375, 7561423.4375, 7562267.1875, 7562323.4375, 7562509.375, 7562606.25, 7563867.1875, 7564176.5625, 7564504.6875, 7565593.75, 7565659.375, 7565857.8125, 7565890.625, 7565975.0, 7566153.125, 7566373.4375, 7566404.6875, 7566698.4375, 7566900.0, 7566998.4375, 7567042.1875, 7567229.6875, 7567429.6875, 7567931.25, 7567985.9375, 7568067.1875, 7571492.1875, 7571768.75, 7571778.125, 7571806.25, 7574164.0625, 7578828.125, 7587695.3125, 7612656.25, 7647812.5, 7681884.375, 7693612.5, 7694878.125, 7694890.625, 7694904.6875, 7695693.75, 7696498.4375, 7696503.125, 7697968.75, 7701276.5625, 7723256.25, 7741726.5625, 7741946.875, 7743467.1875, 7748431.25, 7748959.375, 7753967.1875, 7755742.1875, 7757393.75, 7758668.75, 7760339.0625, 7769654.6875, 7771825.0, 7772239.0625, 7773807.8125, 7778804.6875, 7801482.8125, 7809334.375, 7821306.25, 7835095.3125, 7835776.5625, 7838084.375, 7838095.3125, 7842753.125, 7843104.6875, 7846175.0, 7846562.5, 7849350.0, 7854842.1875, 7879054.6875, 7962564.0625, 7962657.8125, 7992517.1875, 8019871.875, 8022614.0625, 8025746.875, 8064162.5, 8167459.375, 8180679.6875, 8355870.3125, 8442435.9375, 8442746.875, 8446581.25, 8447698.4375, 8448409.375, 8526400.0, 8560581.25, 8611507.8125, 8616320.3125, 8775215.625, 8775281.25, 8893004.6875, 8926309.375, 8930703.125, 8960784.375, 8975257.8125, 8980564.0625, 8985179.6875, 9000128.125, 9062864.0625, 9065403.125, 9101184.375, 9102367.1875, 9103618.75, 9107325.0, 9250164.0625, 9420429.6875, 9437951.5625, 9450250.0, 9452181.25, 9453046.875, 9456807.8125, 9457206.25, 9457307.8125, 9457871.875, 9461234.375, 9461262.5, 9462614.0625, 9464045.3125, 9465882.8125, 9495920.3125, 9497645.3125, 9498721.875, 9499885.9375, 9611681.25, 9636132.8125, 9636379.6875, 9640346.875, 9669757.8125, 9672685.9375, 9688815.625, 9771507.8125, 9839646.875, 9910960.9375, 9912234.375, 9949210.9375, 9951445.3125, 9951460.9375, 9951464.0625, 9955464.0625, 9955970.3125, 9972339.0625, 9979078.125, 9993679.6875, 9994264.0625, 9998473.4375, 10003431.25, 10052206.25, 10054159.375, 10959800.0, 10964095.3125, 11012920.3125, 11012937.5, 11022203.125, 11028926.5625, 11161106.25, 11180495.3125, 11187421.875, 11187950.0, 11188551.5625, 11190075.0, 11190629.6875, 11190790.625, 11194498.4375, 11195517.1875, 11195532.8125, 11195539.0625, 11195626.5625, 11195837.5, 11195867.1875, 11195896.875, 11197501.5625, 11197762.5, 11197821.875, 11198771.875, 11201506.25, 11201865.625, 11201868.75, 11202417.1875, 11203253.125, 11203481.25, 11203514.0625, 11203737.5, 11204310.9375, 11204403.125, 11204454.6875, 11204501.5625, 11204665.625, 11204917.1875, 11205232.8125, 11205764.0625, 11206662.5, 11207431.25, 11207451.5625, 11208034.375, 11208073.4375, 11208089.0625, 11208237.5, 11208381.25, 11208507.8125, 11208704.6875, 11208834.375, 11208990.625, 11209085.9375, 11209151.5625, 11209587.5, 11210445.3125, 11210582.8125, 11210592.1875, 11210679.6875, 11210832.8125, 11210940.625, 11210959.375, 11211203.125, 11211239.0625, 11211359.375, 11211481.25, 11211565.625, 11211668.75, 11211825.0, 11212012.5, 11212485.9375, 11212495.3125, 11212553.125, 11212778.125, 11213209.375, 11213531.25, 11213840.625, 11213840.625, 11214021.875, 11214078.125, 11214473.4375, 11214825.0, 11214832.8125, 11214923.4375, 11215784.375, 11215823.4375, 11215831.25, 11216232.8125, 11216340.625, 11216392.1875, 11216779.6875, 11217021.875, 11217050.0, 11217254.6875, 11217617.1875, 11217932.8125, 11218067.1875, 11218284.375, 11218446.875, 11218517.1875, 11218535.9375, 11218600.0, 11218700.0, 11219253.125, 11219442.1875, 11219445.3125, 11219606.25, 11219896.875, 11219914.0625, 11219976.5625, 11219992.1875, 11220334.375, 11221204.6875, 11221518.75, 11221695.3125, 11221854.6875, 11222093.75, 11222142.1875, 11222162.5, 11222415.625, 11222498.4375, 11222534.375, 11222732.8125, 11222987.5, 11223228.125, 11223468.75, 11223925.0, 11224106.25, 11224254.6875, 11225170.3125, 11225695.3125, 11225698.4375, 11225846.875, 11225856.25, 11225862.5, 11225909.375, 11225931.25, 11226034.375, 11226251.5625, 11226368.75, 11226378.125, 11226820.3125, 11227043.75, 11227204.6875, 11227270.3125, 11227315.625, 11227787.5, 11227946.875, 11228003.125, 11228509.375, 11228648.4375, 11228871.875, 11228935.9375, 11229195.3125, 11229203.125, 11229290.625, 11229335.9375, 11229339.0625, 11229623.4375, 11229743.75, 11229923.4375, 11229926.5625, 11230145.3125, 11230153.125, 11230234.375, 11230973.4375, 11231232.8125, 11231489.0625, 11232435.9375, 11232787.5, 11232871.875, 11232925.0, 11233004.6875, 11233014.0625, 11233367.1875, 11233589.0625, 11233795.3125, 11233840.625, 11234467.1875, 11234620.3125, 11234782.8125, 11235582.8125, 11236223.4375, 11236734.375, 11236784.375, 11237320.3125, 11237404.6875, 11237534.375, 11238987.5, 11239348.4375, 11240182.8125, 11240215.625, 11240596.875, 11241357.8125, 11241623.4375, 11241710.9375, 11241829.6875, 11243629.6875, 11244050.0, 11244135.9375, 11244601.5625, 11245193.75, 11245432.8125, 11245448.4375, 11245753.125, 11245871.875, 11246495.3125, 11246592.1875, 11246793.75, 11246826.5625, 11247076.5625, 11247535.9375, 11247651.5625, 11247662.5, 11247896.875, 11247942.1875, 11248128.125, 11248260.9375, 11248685.9375, 11248765.625, 11249225.0, 11249401.5625, 11249434.375, 11249507.8125, 11249515.625, 11249626.5625, 11249753.125, 11250242.1875, 11250293.75, 11250576.5625, 11250603.125, 11250621.875, 11250815.625, 11250975.0, 11251125.0, 11251400.0, 11251465.625, 11251634.375, 11252073.4375, 11252335.9375, 11252982.8125, 11253015.625, 11253020.3125, 11253367.1875, 11253728.125, 11254995.3125, 11255128.125, 11255500.0, 11255968.75, 11256068.75, 11256093.75, 11256254.6875, 11256262.5, 11256298.4375, 11256443.75, 11256779.6875, 11256973.4375, 11257245.3125, 11257325.0, 11257803.125, 11258634.375, 11258720.3125, 11259021.875, 11259131.25, 11261637.5, 11261673.4375, 11261914.0625, 11261932.8125, 11262885.9375, 11263273.4375, 11263320.3125, 11264709.375, 11264717.1875, 11264865.625, 11265012.5, 11265564.0625, 11267495.3125, 11267996.875, 11269020.3125, 11271014.0625, 11272453.125, 11272901.5625, 11278053.125, 11278064.0625], [28.004135066159478, 54.45487683603589, 49.176616110714505, 8.7271555055137, 17.37099468820231, 14.142540334638802, 31.176381113221673, 141.5525865055182, 68.9530198093729, 79.57148250040399, 67.93889279690228, 22.97398068300035, 14.51154817391596, 13.031617542690146, 28.67891624137493, 28.58629103967168, 74.00955011547272, 22.51372239062823, 14.08294137411716, 21.710237232937917, 129.35253493917637, 10.119867882545842, 31.790210936186302, 15.751590291645027, 14.287626483543951, 5.211572777864106, 112.97974698013425, 100.9626226386367, 46.50472874274642, 22.17127542591104, 76.97209959199101, 36.76735297075394, 5.46323717455812, 5.769534999742364, 32.760948872806345, 45.2176971250693, 97.92418883079716, 63.375113958045986, 6.8613971332754575, 15.663144652318262, 13.770642741687073, 13.931857621706568, 27.935505509386093, 22.309484846655444, 37.351607508783495, 6.269508405795551, 9.545311769048267, 51.528816921350895, 17.10735565835986, 14.074477330812627, 17.614528652970815, 7.330312652716141, 69.46143799436022, 44.59607448415745, 24.697873423291043, 23.924998955811493, 20.641592494994516, 91.9359837529082, 5.282654135837045, 24.841155882795924, 18.6217804254613, 14.714629544710942, 22.960251872807365, 116.47497491669361, 68.6651645092421, 5.8520080761849655, 54.217774535845784, 18.362422840168165, 17.374340967147994, 64.74821118073777, 79.7411897161826, 8.671588070443212, 32.4464755747491, 52.22479154648557, 10.002485682769548, 10.12049516618709, 155.10094687314887, 13.130027048396258, 83.90433856299663, 76.7239762483732, 18.328114602094978, 10.460315311148827, 18.020148103550724, 114.05789574175834, 24.524042659319075, 55.50978800458747, 157.50559984668377, 86.83420937715495, 60.259054244038616, 27.255228739107686, 110.72823207150972, 80.0538716121734, 16.172428238775783, 68.66999525795734, 11.415847761456806, 21.013827649683535, 8.542536693660402, 42.82501275197448, 46.92069652867763, 19.504652457636837, 6.883735631608488, 54.61078207601565, 36.101200442469896, 53.19876363473902, 167.1010725206569, 63.78008833907789, 89.23451463095547, 17.227088595924478, 38.33917593442391, 52.509727626975575, 38.27031579141638, 32.307704676699416, 20.81729069713243, 52.78049040360167, 54.35347074694303, 39.18324381319081, 47.20696026941137, 18.31098605168685, 199.16031562618522, 53.91674102639429, 26.180288735652532, 48.83274965801192, 54.23463395127133, 34.89629345346506, 62.38874814028727, 23.9238981366242, 65.00642163102238, 8.129641449264575, 51.89702489349098, 22.476109136776508, 5.71709183519186, 26.085262958747943, 127.50845042339803, 41.581684020739544, 88.7537002416737, 9.199676610347149, 85.96602438560731, 16.782874677732593, 82.18250743414862, 14.475109298822828, 12.182050085019121, 28.577600005923305, 71.12635074305182, 93.18538690374321, 11.997071427141265, 93.17000017631763, 47.41074411322636, 53.94286484629522, 65.25873210061631, 13.262774566967735, 24.62507135884794, 40.642479897176244, 111.10136809082265, 24.2923372854987, 39.757425950604926, 10.405191061055866, 98.28363899568953, 6.360389858755988, 175.82586261518173, 142.29019036563088, 103.12495836577524, 5.420551836305629, 10.089908692927182, 22.170113322923218, 76.642623613223, 34.197463684233455, 17.802765024295596, 68.03138793663122, 51.57838920006306, 26.14147119064086, 66.39688121604635, 115.55890475686037, 5.430972932483764, 25.24787608992044, 104.80671427065191, 31.393783813962333, 19.656100812295122, 21.266157623955955, 64.6170350617162, 54.41095299921919, 50.530006862992494, 9.555734091290686, 79.25830482051767, 83.30165456005284, 67.93979396307182, 21.45556074635902, 14.722490943518903, 38.02896446590337, 117.31396395302637, 7.5940115783021795, 82.89760581631539, 29.85115811216586, 26.755598884359078, 73.86780846193433, 62.13283021787002, 41.91187480047458, 28.587556285231763, 8.947963077123172, 162.91735514130292, 18.489623523944356, 75.93513890872472, 164.62567564461506, 52.41041231778944, 204.29652992927205, 75.81325772060185, 27.05160057595899, 78.71897425784152, 5.125572213230715, 117.32332228117629, 13.698762348825774, 19.257423111683607, 13.736979236047588, 119.40998495896623, 50.1374206628237, 86.0772882944577, 41.04452864279243, 75.44185478763049, 251.53591824494043, 5.320631439455757, 14.297155616062005, 21.564184947254127, 14.553645970875854, 55.905680659605245, 44.38010753320287, 44.413558562282944, 89.91968976247135, 22.146800439790937, 17.06050807594673, 75.62730050787076, 91.00923310500866, 157.99215556151154, 11.233498041044145, 10.560095532216893, 52.53062880647994, 9.24231347262467, 8.005980929731496, 121.86794960379595, 23.343872907306835, 22.704978066213563, 62.179823735432855, 6.964258085645491, 23.740435261205654, 29.992936128770136, 30.2504370759559, 71.16873847892153, 276.2761522407679, 182.26108178838854, 33.83472296621039, 12.575660877331918, 5.040510701428334, 25.96224345008954, 26.77486139145157, 63.265171418546956, 8.815163108738941, 15.081322458434272, 114.82559227116168, 148.06332135870647, 11.939771018169251, 11.152646200847068, 95.54567693576932, 51.406953862624846, 45.65393525607823, 7.596439446392941, 46.14718124877568, 8.072074460323671, 11.173191509350653, 89.01196703529891, 38.69894928450148, 13.451735346070338, 50.5710997041265, 16.680454176647395, 88.46507668844589, 165.46008292070323, 114.12665105506412, 86.51982734229739, 141.29752329126072, 7.72738623835078, 47.92898594800031, 6.68993183573925, 65.79307528453691, 62.19011543051489, 30.640906452630183, 18.70816362907402, 107.56717552080814, 17.267038315908646, 9.255691319223653, 191.067031889137, 117.68890926270772, 145.87224551718575, 50.294674782046926, 79.29001944845422, 162.2148635799753, 130.06313826257417, 34.384938930150504, 157.31237427593214, 9.599951783497936, 29.66737662258726, 33.151466054369166, 45.91851063682624, 69.066013529728, 6.743993117567036, 36.804681907565595, 14.941878382701622, 9.280918957923094, 42.25629018940199, 21.282273409333225, 7.881821026613237, 18.52279583024154, 100.26591785383724, 56.115512999382204, 5.282233905577684, 13.402725327959207, 138.05763918691213, 8.720759242778758, 76.99135298964424, 109.21513753734064, 77.60957409310183, 11.546756876584682, 163.60737843989324, 10.399321776905646, 80.25364454093683, 25.053653771899093, 91.03889030128596, 21.961883601884868, 20.625499607330767, 14.261922592724527, 68.0438643047051, 17.585869126352176, 8.623587388921298, 116.35624972381564, 14.913688944868085, 24.316941876452027, 6.293085110231906, 88.44698799676699, 93.5028881031553, 75.04989933805558, 65.21988919457733, 23.85092712599421, 22.95019286420903, 52.02577714105757, 6.722026086425435, 56.524471500243976, 10.62756355209439, 65.09080914901048, 93.46777396511064, 28.925691961344924, 199.4410175084053, 25.464466608469618, 5.783662501636688, 9.299441032092082, 103.86403533305953, 7.071699900085287, 318.8135937845692, 23.936529359310974, 273.63659854037314, 10.793913147983274, 30.215281925262076, 26.85437355218516, 5.627869570960894, 10.335735942571336, 20.006366091096787, 5.315368103937332, 5.912236821517081, 12.444343046023521, 44.78354902606861, 66.4805946662819, 59.21097676202495, 5.587164961047542, 29.175175795857516, 80.41234405715586, 7.135729478392734, 11.144365215114785, 98.54047826104693, 6.500143280157143, 171.8314461009964, 179.7461385372273, 5.115132740620922, 8.486873599131721, 78.13104762947317, 72.96061805620528, 7.607586814346054, 10.71887765624463, 39.44863336445709, 11.812071192331997, 30.753831853112548, 46.4121620631343, 9.945283399066584, 5.795869051122991, 6.269781911652211, 10.473337553611776, 50.41128252603298, 67.47234774975236, 71.99173223732026, 28.90645117125814, 18.245183785578817, 5.143990988641472, 121.33834280936993, 28.621868636640883, 6.324069715836658, 13.245901001599583, 62.032462087620274, 16.79600099700778, 20.593625194162392, 65.14311680674088, 24.043685343759808, 12.978637927546037, 68.20757847585233, 65.28052750078218, 101.54873785746591, 46.3051336159442, 6.484458915649442, 7.315765251804967, 6.082277466815764, 28.49958920267595, 15.518963812420548, 41.52913091948791, 32.31944911511664, 110.98346936257784, 52.00064032115896, 52.4210746606958, 27.642186274173543, 5.219342164130315, 26.616209818110963, 6.038216805773238, 19.626212447266543, 9.143904601139802, 75.88159042707652, 63.873417714512954, 67.85219423976868, 104.65301165030705, 66.52582860067741, 5.328834773010025, 43.57023398789412, 11.799187742479798, 25.1823346303305, 6.0921729305888705, 101.01446707783403, 51.525060958769444, 63.32473624253621, 22.332060367044804, 70.21863502795567, 165.93711543232735, 20.18091336817373, 56.631711155913976, 5.4963547445632965, 58.20549337105848, 5.874053337019227, 26.410358682870722, 10.672959808486198, 28.59529266325036, 22.511514411100823, 53.46514636096397, 10.079419885815062, 16.150662224288702, 13.977142676993154, 12.50181478272816, 11.427400701413731, 27.655982298208656, 12.220911771242019, 25.234199281964624, 75.07183096408153, 50.44347855536279, 8.248211197857321, 14.613321599567085, 60.77873522718346, 5.425455130416027, 6.124120825683453, 64.5033167161101, 66.01285577504332, 63.78528615929458, 15.821321071095376, 7.59241694912062, 8.544386710738577, 18.8590561500657, 6.931223582847929, 5.700741609626539, 18.5057989638402, 10.931426340712525, 8.734135803118898, 35.526575334960214, 46.229401562160916, 42.52997062539974, 72.41769674228013, 35.917393166854204, 6.76072189409603, 68.34433097254528, 38.00641721929438, 109.82536764891141, 47.40188353464862, 11.335947493762166, 104.347404756624, 96.99154401457082, 8.91143857189508, 18.938309216135067, 8.434284792845954, 10.15118166660058, 69.7336016041636, 9.609149053019696, 60.91319486253332, 19.798395567407653, 11.152520704661383, 32.200696958093616, 67.0474895114103, 60.554266816449925, 41.69865212049318, 15.036118469426423, 45.45740845144522, 10.186149624017878, 34.3858450053345, 83.32570131859583, 97.39304229201787, 19.278129002119012, 11.775425917515333, 5.496049220733638, 16.935693719023504, 36.92174625162946, 110.58406614631944, 24.4112635407473, 94.80670777207283, 22.206271048880314, 5.59179714404486, 8.352350653978844, 20.118139113707766, 5.242297991844984, 13.808437439734833, 13.612723552563304, 22.343390841692884, 14.314857828853418, 7.008328201623177, 24.4518445042273, 100.55881403231523, 9.35373995413424, 19.04880577798661, 46.284679000875165, 27.722989478527957, 13.341421581869362, 34.19434308421229, 14.53085662439005, 10.893506413374677, 102.76031074302503, 97.9759112140257, 11.89648731212004, 17.330375853812633, 24.7176626696463, 15.53440857875232, 8.692908019133451, 13.779291214972185, 8.805678921378282, 63.64203757729332, 5.798677768802496, 11.26248418356196, 44.38415320499082, 62.66169109947008, 5.337452382822108, 32.46711867650502, 17.75988528024709, 6.839437301142803, 16.18792736255865, 12.23869681136704, 8.869783371838095, 53.03772345741577, 16.507886065763408, 7.169664641955136, 12.796354235668428, 46.78001357253464, 8.719235623989974, 39.10522241219072, 25.23925473602877, 7.488579704629241, 9.157491434327097, 23.52009087327262, 48.777873159793145, 52.00594265695135, 23.273438553793024, 8.93722206402986, 37.30405525989252, 14.608312406349315, 11.414496513284352, 81.82130642383761, 14.264953067960088, 30.680506672555527, 18.345692930334838, 46.03749965525418, 47.27474890439121, 8.37862254581911, 6.944294906138245, 5.80360781977027, 13.164269688193741, 19.489627118434377, 37.0338344618543, 8.281106277680095, 12.098876108471494, 7.257530163928908, 8.003920677077629, 62.7226464261036, 8.832595591305672, 13.210165443111158, 64.20748615749449, 32.40247555910299, 57.804900487226185, 5.0389231710212385, 17.312769532895693, 19.055691318900315, 48.890017588268755, 13.793442637184224, 15.968493918541643, 13.355072762631083, 118.0651756517122, 14.519625886012076, 23.94648654426767, 15.578948739967533, 62.90275066894891, 58.51374460605288, 12.125629594368544, 9.280752086666947, 79.31615360407423, 73.5655854779356, 18.305928210615683, 14.828468975354237, 83.6904127018139, 29.450073901429306, 10.135919861965698, 69.38861663574022, 48.45465833774504, 5.917323102777014, 53.82403866580837, 5.873646382997264, 21.190270901630843, 15.9067860508892, 7.342019237746651, 19.2287219211954, 16.58910198573689, 67.45190990376365, 12.389848518404847, 23.50118340640181, 22.56941664860407, 76.18098415059389, 14.227680718903253, 79.5550518808472, 63.8032193834636, 55.238323098322226, 69.72179807374104, 49.39666130785384, 54.437667982450314, 12.573020644162181, 16.022190898761345, 20.228323314212176, 34.67481980927888, 31.599577748933548, 124.73477105766972, 60.55016518098011, 7.290903957036163, 18.150816424665788, 45.71632056987866, 11.532436090009897, 16.897624022651343, 6.3477794338245115, 39.94294437113499, 14.268775989340618, 78.3701594184952, 26.976365769273745, 30.64203942230793, 10.801679614480246, 19.11029360337758, 19.488510948473255, 19.045358286282415, 23.019644248077356, 8.719977023963297, 8.09062859047917, 81.40960015032573, 32.752651972820885, 66.47652749496667, 193.7930543039534, 54.42131893918439, 18.548227467057195, 41.84378549605001, 59.9109816507699, 54.12054015401077, 36.938549154627495, 13.5490813824813, 11.599648497016535, 95.82785321544763, 5.624618976162133, 8.610621845462541, 124.78895733259604, 26.829128690461904, 14.285302888820542, 54.06696493003524, 40.05716380072519, 12.815419231317069, 16.889897787115906, 13.222999483855862, 87.39188790831813, 12.536168262965802, 63.7806300360018, 10.607263204473464, 64.22099642173973, 6.822626418523934, 18.79175830030832, 25.05160544820778, 94.04538177785088, 41.87056991592709, 11.012641285418432, 15.51597116674031, 27.26596177466881, 13.849717532228361, 6.523460593191661, 7.2269944248630065, 5.876407697588953, 60.801749915856846, 20.55294653681222, 14.663065203587305, 69.74302118325252, 47.931263427148366, 5.410889347569368, 5.460602468464614, 18.978113668723523, 39.863161251906554, 19.589474271324175, 32.321039454877635, 73.7588212623066, 11.899280811047738, 80.76789723244838, 14.555125781007348, 7.22470181343092, 61.022502344621486, 32.98524996620758, 48.24951543454514, 15.51198848877878, 45.704809336885866, 74.85392022476178, 17.99798596409481, 18.77901143092195, 47.49668639054261, 6.997554214665304, 19.188932974328083, 7.114692110450862, 52.29734343820249, 62.99753634585063, 10.907538989764767])
caption, T_hit,count = hits_in_time_hist_new(T_pom, dt, t_plasma_start, t_plasma_end, is_plasma, figure_count_in_time_hist)
hist_file(count_in_time_hist, T_hit, count, caption);
([2867103.125, 2903231.25, 2998814.0625, 4098212.5, 4144818.75, 5258271.875, 5352690.625, 5461571.875, 5497721.875, 5619240.625, 5658171.875, 5721646.875, 5731573.4375, 5764593.75, 5790035.9375, 5803123.4375, 5805667.1875, 5819579.6875, 5821740.625, 5822293.75, 5842603.125, 5843859.375, 5844256.25, 5844770.3125, 5845217.1875, 5849839.0625, 5851093.75, 5852114.0625, 5853670.3125, 5857592.1875, 5858562.5, 5859243.75, 5859300.0, 5861710.9375, 5864332.8125, 5864457.8125, 5864489.0625, 5868446.875, 5879745.3125, 5914498.4375, 5914707.8125, 5915176.5625, 5915748.4375, 5916315.625, 5917454.6875, 5921493.75, 5995532.8125, 5997001.5625, 5999468.75, 5999490.625, 6000739.0625, 6010100.0, 6012304.6875, 6018004.6875, 6044267.1875, 6052178.125, 6074345.3125, 6093818.75, 6095489.0625, 6102165.625, 6104081.25, 6105751.5625, 6107634.375, 6108704.6875, 6109578.125, 6114017.1875, 6135143.75, 6140675.0, 6145784.375, 6152754.6875, 6154400.0, 6156384.375, 6159470.3125, 6167209.375, 6167265.625, 6176507.8125, 6179278.125, 6190117.1875, 6192496.875, 6192926.5625, 6192931.25, 6194978.125, 6195826.5625, 6198332.8125, 6198339.0625, 6199184.375, 6201628.125, 6204959.375, 6206357.8125, 6212656.25, 6216281.25, 6218531.25, 6219514.0625, 6220862.5, 6221150.0, 6221768.75, 6224729.6875, 6225043.75, 6225346.875, 6225354.6875, 6257029.6875, 6257267.1875, 6259101.5625, 6259942.1875, 6263535.9375, 6285028.125, 6296682.8125, 6305018.75, 6309668.75, 6311818.75, 6319423.4375, 6326190.625, 6327400.0, 6332039.0625, 6334760.9375, 6337250.0, 6338118.75, 6338364.0625, 6338810.9375, 6339031.25, 6339592.1875, 6340170.3125, 6340434.375, 6340934.375, 6341740.625, 6342409.375, 6343773.4375, 6344120.3125, 6345814.0625, 6352610.9375, 6353262.5, 6355070.3125, 6365167.1875, 6368264.0625, 6371356.25, 6371684.375, 6375517.1875, 6393025.0, 6393200.0, 6397478.125, 6398409.375, 6402840.625, 6405192.1875, 6406257.8125, 6423925.0, 6428384.375, 6433057.8125, 6433070.3125, 6433850.0, 6434931.25, 6436000.0, 6436365.625, 6436767.1875, 6437039.0625, 6437740.625, 6439126.5625, 6439246.875, 6439870.3125, 6442950.0, 6449026.5625, 6449228.125, 6451292.1875, 6452020.3125, 6455518.75, 6458957.8125, 6467815.625, 6467829.6875, 6469943.75, 6475129.6875, 6476384.375, 6477006.25, 6477843.75, 6478287.5, 6481942.1875, 6482445.3125, 6484218.75, 6484653.125, 6489179.6875, 6492098.4375, 6493145.3125, 6498526.5625, 6504662.5, 6508582.8125, 6522381.25, 6543128.125, 6557648.4375, 6566289.0625, 6587310.9375, 6590867.1875, 6592878.125, 6594092.1875, 6595267.1875, 6602287.5, 6602337.5, 6603201.5625, 6605573.4375, 6607370.3125, 6612118.75, 6614817.1875, 6614971.875, 6615131.25, 6615425.0, 6615943.75, 6621628.125, 6624282.8125, 6647653.125, 6680992.1875, 6681065.625, 6689842.1875, 6707889.0625, 6755125.0, 6758942.1875, 6829835.9375, 6836615.625, 6844859.375, 6878004.6875, 6878868.75, 6934468.75, 6946665.625, 6949948.4375, 6953493.75, 6955806.25, 6955848.4375, 6962114.0625, 6966592.1875, 6967379.6875, 6968346.875, 6969229.6875, 6969576.5625, 6977292.1875, 6982968.75, 6988098.4375, 6988898.4375, 6997115.625, 7000162.5, 7002176.5625, 7007115.625, 7024570.3125, 7025085.9375, 7039081.25, 7046950.0, 7049196.875, 7049198.4375, 7052475.0, 7091853.125, 7102889.0625, 7127784.375, 7151442.1875, 7163048.4375, 7163115.625, 7163376.5625, 7229795.3125, 7231464.0625, 7231492.1875, 7231493.75, 7232851.5625, 7233781.25, 7235998.4375, 7235998.4375, 7236243.75, 7236520.3125, 7238389.0625, 7258160.9375, 7259818.75, 7283862.5, 7284504.6875, 7285454.6875, 7285768.75, 7287015.625, 7287229.6875, 7318685.9375, 7335562.5, 7353550.0, 7354768.75, 7366065.625, 7366759.375, 7367440.625, 7367484.375, 7367548.4375, 7372251.5625, 7375056.25, 7375859.375, 7378198.4375, 7378370.3125, 7383176.5625, 7383228.125, 7384501.5625, 7388492.1875, 7410373.4375, 7435070.3125, 7439017.1875, 7445520.3125, 7452339.0625, 7491595.3125, 7511584.375, 7537589.0625, 7538145.3125, 7542226.5625, 7547965.625, 7557664.0625, 7560948.4375, 7561423.4375, 7562267.1875, 7562323.4375, 7562509.375, 7562606.25, 7563867.1875, 7564176.5625, 7564504.6875, 7565593.75, 7565659.375, 7565857.8125, 7565890.625, 7565975.0, 7566153.125, 7566373.4375, 7566404.6875, 7566698.4375, 7566900.0, 7566998.4375, 7567042.1875, 7567229.6875, 7567429.6875, 7567931.25, 7567985.9375, 7568067.1875, 7571492.1875, 7571768.75, 7571778.125, 7571806.25, 7574164.0625, 7578828.125, 7587695.3125, 7612656.25, 7647812.5, 7681884.375, 7693612.5, 7694878.125, 7694890.625, 7694904.6875, 7695693.75, 7696498.4375, 7696503.125, 7697968.75, 7701276.5625, 7723256.25, 7741726.5625, 7741946.875, 7743467.1875, 7748431.25, 7748959.375, 7753967.1875, 7755742.1875, 7757393.75, 7758668.75, 7760339.0625, 7769654.6875, 7771825.0, 7772239.0625, 7773807.8125, 7778804.6875, 7801482.8125, 7809334.375, 7821306.25, 7835095.3125, 7835776.5625, 7838084.375, 7838095.3125, 7842753.125, 7843104.6875, 7846175.0, 7846562.5, 7849350.0, 7854842.1875, 7879054.6875, 7962564.0625, 7962657.8125, 7992517.1875, 8019871.875, 8022614.0625, 8025746.875, 8064162.5, 8167459.375, 8180679.6875, 8355870.3125, 8442435.9375, 8442746.875, 8446581.25, 8447698.4375, 8448409.375, 8526400.0, 8560581.25, 8611507.8125, 8616320.3125, 8775215.625, 8775281.25, 8893004.6875, 8926309.375, 8930703.125, 8960784.375, 8975257.8125, 8980564.0625, 8985179.6875, 9000128.125, 9062864.0625, 9065403.125, 9101184.375, 9102367.1875, 9103618.75, 9107325.0, 9250164.0625, 9420429.6875, 9437951.5625, 9450250.0, 9452181.25, 9453046.875, 9456807.8125, 9457206.25, 9457307.8125, 9457871.875, 9461234.375, 9461262.5, 9462614.0625, 9464045.3125, 9465882.8125, 9495920.3125, 9497645.3125, 9498721.875, 9499885.9375, 9611681.25, 9636132.8125, 9636379.6875, 9640346.875, 9669757.8125, 9672685.9375, 9688815.625, 9771507.8125, 9839646.875, 9910960.9375, 9912234.375, 9949210.9375, 9951445.3125, 9951460.9375, 9951464.0625, 9955464.0625, 9955970.3125, 9972339.0625, 9979078.125, 9993679.6875, 9994264.0625, 9998473.4375, 10003431.25, 10052206.25, 10054159.375, 10959800.0, 10964095.3125, 11012920.3125, 11012937.5, 11022203.125, 11028926.5625, 11161106.25, 11180495.3125, 11187421.875, 11187950.0, 11188551.5625, 11190075.0, 11190629.6875, 11190790.625, 11194498.4375, 11195517.1875, 11195532.8125, 11195539.0625, 11195626.5625, 11195837.5, 11195867.1875, 11195896.875, 11197501.5625, 11197762.5, 11197821.875, 11198771.875, 11201506.25, 11201865.625, 11201868.75, 11202417.1875, 11203253.125, 11203481.25, 11203514.0625, 11203737.5, 11204310.9375, 11204403.125, 11204454.6875, 11204501.5625, 11204665.625, 11204917.1875, 11205232.8125, 11205764.0625, 11206662.5, 11207431.25, 11207451.5625, 11208034.375, 11208073.4375, 11208089.0625, 11208237.5, 11208381.25, 11208507.8125, 11208704.6875, 11208834.375, 11208990.625, 11209085.9375, 11209151.5625, 11209587.5, 11210445.3125, 11210582.8125, 11210592.1875, 11210679.6875, 11210832.8125, 11210940.625, 11210959.375, 11211203.125, 11211239.0625, 11211359.375, 11211481.25, 11211565.625, 11211668.75, 11211825.0, 11212012.5, 11212485.9375, 11212495.3125, 11212553.125, 11212778.125, 11213209.375, 11213531.25, 11213840.625, 11213840.625, 11214021.875, 11214078.125, 11214473.4375, 11214825.0, 11214832.8125, 11214923.4375, 11215784.375, 11215823.4375, 11215831.25, 11216232.8125, 11216340.625, 11216392.1875, 11216779.6875, 11217021.875, 11217050.0, 11217254.6875, 11217617.1875, 11217932.8125, 11218067.1875, 11218284.375, 11218446.875, 11218517.1875, 11218535.9375, 11218600.0, 11218700.0, 11219253.125, 11219442.1875, 11219445.3125, 11219606.25, 11219896.875, 11219914.0625, 11219976.5625, 11219992.1875, 11220334.375, 11221204.6875, 11221518.75, 11221695.3125, 11221854.6875, 11222093.75, 11222142.1875, 11222162.5, 11222415.625, 11222498.4375, 11222534.375, 11222732.8125, 11222987.5, 11223228.125, 11223468.75, 11223925.0, 11224106.25, 11224254.6875, 11225170.3125, 11225695.3125, 11225698.4375, 11225846.875, 11225856.25, 11225862.5, 11225909.375, 11225931.25, 11226034.375, 11226251.5625, 11226368.75, 11226378.125, 11226820.3125, 11227043.75, 11227204.6875, 11227270.3125, 11227315.625, 11227787.5, 11227946.875, 11228003.125, 11228509.375, 11228648.4375, 11228871.875, 11228935.9375, 11229195.3125, 11229203.125, 11229290.625, 11229335.9375, 11229339.0625, 11229623.4375, 11229743.75, 11229923.4375, 11229926.5625, 11230145.3125, 11230153.125, 11230234.375, 11230973.4375, 11231232.8125, 11231489.0625, 11232435.9375, 11232787.5, 11232871.875, 11232925.0, 11233004.6875, 11233014.0625, 11233367.1875, 11233589.0625, 11233795.3125, 11233840.625, 11234467.1875, 11234620.3125, 11234782.8125, 11235582.8125, 11236223.4375, 11236734.375, 11236784.375, 11237320.3125, 11237404.6875, 11237534.375, 11238987.5, 11239348.4375, 11240182.8125, 11240215.625, 11240596.875, 11241357.8125, 11241623.4375, 11241710.9375, 11241829.6875, 11243629.6875, 11244050.0, 11244135.9375, 11244601.5625, 11245193.75, 11245432.8125, 11245448.4375, 11245753.125, 11245871.875, 11246495.3125, 11246592.1875, 11246793.75, 11246826.5625, 11247076.5625, 11247535.9375, 11247651.5625, 11247662.5, 11247896.875, 11247942.1875, 11248128.125, 11248260.9375, 11248685.9375, 11248765.625, 11249225.0, 11249401.5625, 11249434.375, 11249507.8125, 11249515.625, 11249626.5625, 11249753.125, 11250242.1875, 11250293.75, 11250576.5625, 11250603.125, 11250621.875, 11250815.625, 11250975.0, 11251125.0, 11251400.0, 11251465.625, 11251634.375, 11252073.4375, 11252335.9375, 11252982.8125, 11253015.625, 11253020.3125, 11253367.1875, 11253728.125, 11254995.3125, 11255128.125, 11255500.0, 11255968.75, 11256068.75, 11256093.75, 11256254.6875, 11256262.5, 11256298.4375, 11256443.75, 11256779.6875, 11256973.4375, 11257245.3125, 11257325.0, 11257803.125, 11258634.375, 11258720.3125, 11259021.875, 11259131.25, 11261637.5, 11261673.4375, 11261914.0625, 11261932.8125, 11262885.9375, 11263273.4375, 11263320.3125, 11264709.375, 11264717.1875, 11264865.625, 11265012.5, 11265564.0625, 11267495.3125, 11267996.875, 11269020.3125, 11271014.0625, 11272453.125, 11272901.5625, 11278053.125, 11278064.0625], [28.004135066159478, 54.45487683603589, 49.176616110714505, 8.7271555055137, 17.37099468820231, 14.142540334638802, 31.176381113221673, 141.5525865055182, 68.9530198093729, 79.57148250040399, 67.93889279690228, 22.97398068300035, 14.51154817391596, 13.031617542690146, 28.67891624137493, 28.58629103967168, 74.00955011547272, 22.51372239062823, 14.08294137411716, 21.710237232937917, 129.35253493917637, 10.119867882545842, 31.790210936186302, 15.751590291645027, 14.287626483543951, 5.211572777864106, 112.97974698013425, 100.9626226386367, 46.50472874274642, 22.17127542591104, 76.97209959199101, 36.76735297075394, 5.46323717455812, 5.769534999742364, 32.760948872806345, 45.2176971250693, 97.92418883079716, 63.375113958045986, 6.8613971332754575, 15.663144652318262, 13.770642741687073, 13.931857621706568, 27.935505509386093, 22.309484846655444, 37.351607508783495, 6.269508405795551, 9.545311769048267, 51.528816921350895, 17.10735565835986, 14.074477330812627, 17.614528652970815, 7.330312652716141, 69.46143799436022, 44.59607448415745, 24.697873423291043, 23.924998955811493, 20.641592494994516, 91.9359837529082, 5.282654135837045, 24.841155882795924, 18.6217804254613, 14.714629544710942, 22.960251872807365, 116.47497491669361, 68.6651645092421, 5.8520080761849655, 54.217774535845784, 18.362422840168165, 17.374340967147994, 64.74821118073777, 79.7411897161826, 8.671588070443212, 32.4464755747491, 52.22479154648557, 10.002485682769548, 10.12049516618709, 155.10094687314887, 13.130027048396258, 83.90433856299663, 76.7239762483732, 18.328114602094978, 10.460315311148827, 18.020148103550724, 114.05789574175834, 24.524042659319075, 55.50978800458747, 157.50559984668377, 86.83420937715495, 60.259054244038616, 27.255228739107686, 110.72823207150972, 80.0538716121734, 16.172428238775783, 68.66999525795734, 11.415847761456806, 21.013827649683535, 8.542536693660402, 42.82501275197448, 46.92069652867763, 19.504652457636837, 6.883735631608488, 54.61078207601565, 36.101200442469896, 53.19876363473902, 167.1010725206569, 63.78008833907789, 89.23451463095547, 17.227088595924478, 38.33917593442391, 52.509727626975575, 38.27031579141638, 32.307704676699416, 20.81729069713243, 52.78049040360167, 54.35347074694303, 39.18324381319081, 47.20696026941137, 18.31098605168685, 199.16031562618522, 53.91674102639429, 26.180288735652532, 48.83274965801192, 54.23463395127133, 34.89629345346506, 62.38874814028727, 23.9238981366242, 65.00642163102238, 8.129641449264575, 51.89702489349098, 22.476109136776508, 5.71709183519186, 26.085262958747943, 127.50845042339803, 41.581684020739544, 88.7537002416737, 9.199676610347149, 85.96602438560731, 16.782874677732593, 82.18250743414862, 14.475109298822828, 12.182050085019121, 28.577600005923305, 71.12635074305182, 93.18538690374321, 11.997071427141265, 93.17000017631763, 47.41074411322636, 53.94286484629522, 65.25873210061631, 13.262774566967735, 24.62507135884794, 40.642479897176244, 111.10136809082265, 24.2923372854987, 39.757425950604926, 10.405191061055866, 98.28363899568953, 6.360389858755988, 175.82586261518173, 142.29019036563088, 103.12495836577524, 5.420551836305629, 10.089908692927182, 22.170113322923218, 76.642623613223, 34.197463684233455, 17.802765024295596, 68.03138793663122, 51.57838920006306, 26.14147119064086, 66.39688121604635, 115.55890475686037, 5.430972932483764, 25.24787608992044, 104.80671427065191, 31.393783813962333, 19.656100812295122, 21.266157623955955, 64.6170350617162, 54.41095299921919, 50.530006862992494, 9.555734091290686, 79.25830482051767, 83.30165456005284, 67.93979396307182, 21.45556074635902, 14.722490943518903, 38.02896446590337, 117.31396395302637, 7.5940115783021795, 82.89760581631539, 29.85115811216586, 26.755598884359078, 73.86780846193433, 62.13283021787002, 41.91187480047458, 28.587556285231763, 8.947963077123172, 162.91735514130292, 18.489623523944356, 75.93513890872472, 164.62567564461506, 52.41041231778944, 204.29652992927205, 75.81325772060185, 27.05160057595899, 78.71897425784152, 5.125572213230715, 117.32332228117629, 13.698762348825774, 19.257423111683607, 13.736979236047588, 119.40998495896623, 50.1374206628237, 86.0772882944577, 41.04452864279243, 75.44185478763049, 251.53591824494043, 5.320631439455757, 14.297155616062005, 21.564184947254127, 14.553645970875854, 55.905680659605245, 44.38010753320287, 44.413558562282944, 89.91968976247135, 22.146800439790937, 17.06050807594673, 75.62730050787076, 91.00923310500866, 157.99215556151154, 11.233498041044145, 10.560095532216893, 52.53062880647994, 9.24231347262467, 8.005980929731496, 121.86794960379595, 23.343872907306835, 22.704978066213563, 62.179823735432855, 6.964258085645491, 23.740435261205654, 29.992936128770136, 30.2504370759559, 71.16873847892153, 276.2761522407679, 182.26108178838854, 33.83472296621039, 12.575660877331918, 5.040510701428334, 25.96224345008954, 26.77486139145157, 63.265171418546956, 8.815163108738941, 15.081322458434272, 114.82559227116168, 148.06332135870647, 11.939771018169251, 11.152646200847068, 95.54567693576932, 51.406953862624846, 45.65393525607823, 7.596439446392941, 46.14718124877568, 8.072074460323671, 11.173191509350653, 89.01196703529891, 38.69894928450148, 13.451735346070338, 50.5710997041265, 16.680454176647395, 88.46507668844589, 165.46008292070323, 114.12665105506412, 86.51982734229739, 141.29752329126072, 7.72738623835078, 47.92898594800031, 6.68993183573925, 65.79307528453691, 62.19011543051489, 30.640906452630183, 18.70816362907402, 107.56717552080814, 17.267038315908646, 9.255691319223653, 191.067031889137, 117.68890926270772, 145.87224551718575, 50.294674782046926, 79.29001944845422, 162.2148635799753, 130.06313826257417, 34.384938930150504, 157.31237427593214, 9.599951783497936, 29.66737662258726, 33.151466054369166, 45.91851063682624, 69.066013529728, 6.743993117567036, 36.804681907565595, 14.941878382701622, 9.280918957923094, 42.25629018940199, 21.282273409333225, 7.881821026613237, 18.52279583024154, 100.26591785383724, 56.115512999382204, 5.282233905577684, 13.402725327959207, 138.05763918691213, 8.720759242778758, 76.99135298964424, 109.21513753734064, 77.60957409310183, 11.546756876584682, 163.60737843989324, 10.399321776905646, 80.25364454093683, 25.053653771899093, 91.03889030128596, 21.961883601884868, 20.625499607330767, 14.261922592724527, 68.0438643047051, 17.585869126352176, 8.623587388921298, 116.35624972381564, 14.913688944868085, 24.316941876452027, 6.293085110231906, 88.44698799676699, 93.5028881031553, 75.04989933805558, 65.21988919457733, 23.85092712599421, 22.95019286420903, 52.02577714105757, 6.722026086425435, 56.524471500243976, 10.62756355209439, 65.09080914901048, 93.46777396511064, 28.925691961344924, 199.4410175084053, 25.464466608469618, 5.783662501636688, 9.299441032092082, 103.86403533305953, 7.071699900085287, 318.8135937845692, 23.936529359310974, 273.63659854037314, 10.793913147983274, 30.215281925262076, 26.85437355218516, 5.627869570960894, 10.335735942571336, 20.006366091096787, 5.315368103937332, 5.912236821517081, 12.444343046023521, 44.78354902606861, 66.4805946662819, 59.21097676202495, 5.587164961047542, 29.175175795857516, 80.41234405715586, 7.135729478392734, 11.144365215114785, 98.54047826104693, 6.500143280157143, 171.8314461009964, 179.7461385372273, 5.115132740620922, 8.486873599131721, 78.13104762947317, 72.96061805620528, 7.607586814346054, 10.71887765624463, 39.44863336445709, 11.812071192331997, 30.753831853112548, 46.4121620631343, 9.945283399066584, 5.795869051122991, 6.269781911652211, 10.473337553611776, 50.41128252603298, 67.47234774975236, 71.99173223732026, 28.90645117125814, 18.245183785578817, 5.143990988641472, 121.33834280936993, 28.621868636640883, 6.324069715836658, 13.245901001599583, 62.032462087620274, 16.79600099700778, 20.593625194162392, 65.14311680674088, 24.043685343759808, 12.978637927546037, 68.20757847585233, 65.28052750078218, 101.54873785746591, 46.3051336159442, 6.484458915649442, 7.315765251804967, 6.082277466815764, 28.49958920267595, 15.518963812420548, 41.52913091948791, 32.31944911511664, 110.98346936257784, 52.00064032115896, 52.4210746606958, 27.642186274173543, 5.219342164130315, 26.616209818110963, 6.038216805773238, 19.626212447266543, 9.143904601139802, 75.88159042707652, 63.873417714512954, 67.85219423976868, 104.65301165030705, 66.52582860067741, 5.328834773010025, 43.57023398789412, 11.799187742479798, 25.1823346303305, 6.0921729305888705, 101.01446707783403, 51.525060958769444, 63.32473624253621, 22.332060367044804, 70.21863502795567, 165.93711543232735, 20.18091336817373, 56.631711155913976, 5.4963547445632965, 58.20549337105848, 5.874053337019227, 26.410358682870722, 10.672959808486198, 28.59529266325036, 22.511514411100823, 53.46514636096397, 10.079419885815062, 16.150662224288702, 13.977142676993154, 12.50181478272816, 11.427400701413731, 27.655982298208656, 12.220911771242019, 25.234199281964624, 75.07183096408153, 50.44347855536279, 8.248211197857321, 14.613321599567085, 60.77873522718346, 5.425455130416027, 6.124120825683453, 64.5033167161101, 66.01285577504332, 63.78528615929458, 15.821321071095376, 7.59241694912062, 8.544386710738577, 18.8590561500657, 6.931223582847929, 5.700741609626539, 18.5057989638402, 10.931426340712525, 8.734135803118898, 35.526575334960214, 46.229401562160916, 42.52997062539974, 72.41769674228013, 35.917393166854204, 6.76072189409603, 68.34433097254528, 38.00641721929438, 109.82536764891141, 47.40188353464862, 11.335947493762166, 104.347404756624, 96.99154401457082, 8.91143857189508, 18.938309216135067, 8.434284792845954, 10.15118166660058, 69.7336016041636, 9.609149053019696, 60.91319486253332, 19.798395567407653, 11.152520704661383, 32.200696958093616, 67.0474895114103, 60.554266816449925, 41.69865212049318, 15.036118469426423, 45.45740845144522, 10.186149624017878, 34.3858450053345, 83.32570131859583, 97.39304229201787, 19.278129002119012, 11.775425917515333, 5.496049220733638, 16.935693719023504, 36.92174625162946, 110.58406614631944, 24.4112635407473, 94.80670777207283, 22.206271048880314, 5.59179714404486, 8.352350653978844, 20.118139113707766, 5.242297991844984, 13.808437439734833, 13.612723552563304, 22.343390841692884, 14.314857828853418, 7.008328201623177, 24.4518445042273, 100.55881403231523, 9.35373995413424, 19.04880577798661, 46.284679000875165, 27.722989478527957, 13.341421581869362, 34.19434308421229, 14.53085662439005, 10.893506413374677, 102.76031074302503, 97.9759112140257, 11.89648731212004, 17.330375853812633, 24.7176626696463, 15.53440857875232, 8.692908019133451, 13.779291214972185, 8.805678921378282, 63.64203757729332, 5.798677768802496, 11.26248418356196, 44.38415320499082, 62.66169109947008, 5.337452382822108, 32.46711867650502, 17.75988528024709, 6.839437301142803, 16.18792736255865, 12.23869681136704, 8.869783371838095, 53.03772345741577, 16.507886065763408, 7.169664641955136, 12.796354235668428, 46.78001357253464, 8.719235623989974, 39.10522241219072, 25.23925473602877, 7.488579704629241, 9.157491434327097, 23.52009087327262, 48.777873159793145, 52.00594265695135, 23.273438553793024, 8.93722206402986, 37.30405525989252, 14.608312406349315, 11.414496513284352, 81.82130642383761, 14.264953067960088, 30.680506672555527, 18.345692930334838, 46.03749965525418, 47.27474890439121, 8.37862254581911, 6.944294906138245, 5.80360781977027, 13.164269688193741, 19.489627118434377, 37.0338344618543, 8.281106277680095, 12.098876108471494, 7.257530163928908, 8.003920677077629, 62.7226464261036, 8.832595591305672, 13.210165443111158, 64.20748615749449, 32.40247555910299, 57.804900487226185, 5.0389231710212385, 17.312769532895693, 19.055691318900315, 48.890017588268755, 13.793442637184224, 15.968493918541643, 13.355072762631083, 118.0651756517122, 14.519625886012076, 23.94648654426767, 15.578948739967533, 62.90275066894891, 58.51374460605288, 12.125629594368544, 9.280752086666947, 79.31615360407423, 73.5655854779356, 18.305928210615683, 14.828468975354237, 83.6904127018139, 29.450073901429306, 10.135919861965698, 69.38861663574022, 48.45465833774504, 5.917323102777014, 53.82403866580837, 5.873646382997264, 21.190270901630843, 15.9067860508892, 7.342019237746651, 19.2287219211954, 16.58910198573689, 67.45190990376365, 12.389848518404847, 23.50118340640181, 22.56941664860407, 76.18098415059389, 14.227680718903253, 79.5550518808472, 63.8032193834636, 55.238323098322226, 69.72179807374104, 49.39666130785384, 54.437667982450314, 12.573020644162181, 16.022190898761345, 20.228323314212176, 34.67481980927888, 31.599577748933548, 124.73477105766972, 60.55016518098011, 7.290903957036163, 18.150816424665788, 45.71632056987866, 11.532436090009897, 16.897624022651343, 6.3477794338245115, 39.94294437113499, 14.268775989340618, 78.3701594184952, 26.976365769273745, 30.64203942230793, 10.801679614480246, 19.11029360337758, 19.488510948473255, 19.045358286282415, 23.019644248077356, 8.719977023963297, 8.09062859047917, 81.40960015032573, 32.752651972820885, 66.47652749496667, 193.7930543039534, 54.42131893918439, 18.548227467057195, 41.84378549605001, 59.9109816507699, 54.12054015401077, 36.938549154627495, 13.5490813824813, 11.599648497016535, 95.82785321544763, 5.624618976162133, 8.610621845462541, 124.78895733259604, 26.829128690461904, 14.285302888820542, 54.06696493003524, 40.05716380072519, 12.815419231317069, 16.889897787115906, 13.222999483855862, 87.39188790831813, 12.536168262965802, 63.7806300360018, 10.607263204473464, 64.22099642173973, 6.822626418523934, 18.79175830030832, 25.05160544820778, 94.04538177785088, 41.87056991592709, 11.012641285418432, 15.51597116674031, 27.26596177466881, 13.849717532228361, 6.523460593191661, 7.2269944248630065, 5.876407697588953, 60.801749915856846, 20.55294653681222, 14.663065203587305, 69.74302118325252, 47.931263427148366, 5.410889347569368, 5.460602468464614, 18.978113668723523, 39.863161251906554, 19.589474271324175, 32.321039454877635, 73.7588212623066, 11.899280811047738, 80.76789723244838, 14.555125781007348, 7.22470181343092, 61.022502344621486, 32.98524996620758, 48.24951543454514, 15.51198848877878, 45.704809336885866, 74.85392022476178, 17.99798596409481, 18.77901143092195, 47.49668639054261, 6.997554214665304, 19.188932974328083, 7.114692110450862, 52.29734343820249, 62.99753634585063, 10.907538989764767])
Detected energies during the discharge + Energy spectrum
multiplot(icon_fig, T_int_first,E,xle,Etot)