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 = 44416
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);
([3718259.375, 3730809.375, 3893754.6875, 3898814.0625, 3905628.125, 4153059.375, 4207115.625, 4250493.75, 4276145.3125, 4276815.625, 4660646.875, 4660659.375, 4694559.375, 4782328.125, 4854331.25, 4914331.25, 5092700.0, 5730234.375, 5868882.8125, 5923445.3125, 5936978.125, 5995639.0625, 6071270.3125, 6078114.0625, 6145390.625, 6198148.4375, 6203665.625, 6295128.125, 6315484.375, 6315535.9375, 6320520.3125, 6324481.25, 6324520.3125, 6326371.875, 6340553.125, 6348331.25, 6354803.125, 6375406.25, 6378237.5, 6381720.3125, 6386554.6875, 6441814.0625, 6445748.4375, 6446065.625, 6446685.9375, 6446957.8125, 6447990.625, 6448009.375, 6448495.3125, 6453032.8125, 6464742.1875, 6465612.5, 6470665.625, 6470853.125, 6474009.375, 6483209.375, 6486743.75, 6486795.3125, 6491242.1875, 6496151.5625, 6503235.9375, 6506064.0625, 6508651.5625, 6512506.25, 6513075.0, 6516160.9375, 6516718.75, 6516735.9375, 6518917.1875, 6520160.9375, 6520332.8125, 6521076.5625, 6523460.9375, 6524095.3125, 6525093.75, 6530548.4375, 6548976.5625, 6551243.75, 6562381.25, 6562460.9375, 6562660.9375, 6567301.5625, 6578343.75, 6580031.25, 6592117.1875, 6603115.625, 6617001.5625, 6624121.875, 6632234.375, 6641604.6875, 6644375.0, 6647189.0625, 6659884.375, 6660295.3125, 6670920.3125, 6675415.625, 6682942.1875, 6686567.1875, 6686570.3125, 6697231.25, 6731353.125, 6759217.1875, 6790176.5625, 6808359.375, 6809475.0, 6812281.25, 6818871.875, 6819320.3125, 6827590.625, 6827635.9375, 6827653.125, 6827950.0, 6827957.8125, 6840309.375, 6842156.25, 6852048.4375, 6852095.3125, 6876331.25, 6886125.0, 6913128.125, 6913987.5, 6916370.3125, 6936754.6875, 6937446.875, 6946339.0625, 7002675.0, 7002687.5, 7002690.625, 7014289.0625, 7018076.5625, 7024212.5, 7024915.625, 7025875.0, 7026057.8125, 7026406.25, 7027895.3125, 7031328.125, 7032635.9375, 7032645.3125, 7042146.875, 7054526.5625, 7065156.25, 7065834.375, 7102068.75, 7121906.25, 7135064.0625, 7144273.4375, 7164753.125, 7167421.875, 7167473.4375, 7179156.25, 7185317.1875, 7193785.9375, 7195064.0625, 7198093.75, 7200379.6875, 7204207.8125, 7223604.6875, 7228056.25, 7233543.75, 7234968.75, 7235162.5, 7240085.9375, 7246965.625, 7271625.0, 7276920.3125, 7281048.4375, 7281095.3125, 7281759.375, 7284557.8125, 7291343.75, 7294160.9375, 7294907.8125, 7296909.375, 7297117.1875, 7298065.625, 7299334.375, 7299387.5, 7299471.875, 7304826.5625, 7305839.0625, 7312329.6875, 7318970.3125, 7321181.25, 7322492.1875, 7322498.4375, 7323184.375, 7329675.0, 7338196.875, 7342935.9375, 7343362.5, 7348707.8125, 7350310.9375, 7351373.4375, 7351673.4375, 7352165.625, 7352331.25, 7352381.25, 7353660.9375, 7354746.875, 7355368.75, 7355678.125, 7355762.5, 7356071.875, 7356737.5, 7357264.0625, 7357915.625, 7359365.625, 7368912.5, 7373935.9375, 7378467.1875, 7381639.0625, 7385526.5625, 7390856.25, 7401435.9375, 7402184.375, 7403760.9375, 7403814.0625, 7404604.6875, 7405153.125, 7405896.875, 7406156.25, 7406342.1875, 7406515.625, 7406534.375, 7406704.6875, 7408390.625, 7409439.0625, 7410215.625, 7414010.9375, 7417743.75, 7417939.0625, 7441234.375, 7441251.5625, 7441270.3125, 7444990.625, 7451503.125, 7452170.3125, 7453548.4375, 7453667.1875, 7453693.75, 7454340.625, 7455696.875, 7456495.3125, 7458129.6875, 7460042.1875, 7463428.125, 7469998.4375, 7475762.5, 7476537.5, 7477650.0, 7478460.9375, 7481089.0625, 7483657.8125, 7483664.0625, 7490053.125, 7490106.25, 7490157.8125, 7502909.375, 7509292.1875, 7515048.4375, 7517396.875, 7521003.125, 7521945.3125, 7527912.5, 7533629.6875, 7533759.375, 7534018.75, 7534917.1875, 7535050.0, 7540979.6875, 7544065.625, 7545170.3125, 7545935.9375, 7546475.0, 7548420.3125, 7548589.0625, 7549193.75, 7571471.875, 7620209.375, 7641742.1875, 7648796.875, 7649054.6875, 7675339.0625, 7676960.9375, 7710635.9375, 7711410.9375, 7715390.625, 7718696.875, 7727412.5, 7739984.375, 7746628.125, 7792431.25, 7799053.125, 7822517.1875, 7853100.0, 7856853.125, 7869348.4375, 7882364.0625, 7907262.5, 7919193.75, 7944679.6875, 7947881.25, 7947907.8125, 7949921.875, 7950621.875, 7967995.3125, 7985704.6875, 7988245.3125, 7988948.4375, 7989242.1875, 8012373.4375, 8030432.8125, 8031031.25, 8031564.0625, 8031800.0, 8031881.25, 8032001.5625, 8032076.5625, 8033464.0625, 8042873.4375, 8042903.125, 8046864.0625, 8048954.6875, 8049900.0, 8147259.375, 8157885.9375, 8163748.4375, 8166042.1875, 8200095.3125, 8225414.0625, 8225778.125, 8241887.5, 8242195.3125, 8243412.5, 8244021.875, 8246803.125, 8250818.75, 8250823.4375, 8257887.5, 8258625.0, 8258642.1875, 8258731.25, 8259073.4375, 8259481.25, 8260156.25, 8260390.625, 8260828.125, 8260840.625, 8263926.5625, 8264895.3125, 8265251.5625, 8265334.375, 8265476.5625, 8266567.1875, 8266725.0, 8268071.875, 8269815.625, 8270907.8125, 8270989.0625, 8271195.3125, 8272115.625, 8295823.4375, 8313740.625, 8315200.0, 8315209.375, 8315650.0, 8315845.3125, 8322106.25, 8335967.1875, 8339039.0625, 8341589.0625, 8341631.25, 8342678.125, 8343250.0, 8353575.0, 8420306.25, 8427165.625, 8442348.4375, 8444400.0, 8450831.25, 8454917.1875, 8461531.25, 8484940.625, 8485503.125, 8485526.5625, 8487009.375, 8487129.6875, 8487732.8125, 8488726.5625, 8489926.5625, 8497912.5, 8500259.375, 8501587.5, 8502739.0625, 8504076.5625, 8504985.9375, 8505809.375, 8506645.3125, 8507437.5, 8510453.125, 8533493.75, 8549179.6875, 8549254.6875, 8549842.1875, 8567807.8125, 8584731.25, 8616273.4375, 8617778.125, 8619465.625, 8620082.8125, 8643859.375, 8646242.1875, 8685700.0, 8729587.5, 8731792.1875, 8731926.5625, 8732704.6875, 8748859.375, 8753565.625, 8754526.5625, 8754534.375, 8762175.0, 8788145.3125, 8788146.875, 8790384.375, 8796142.1875, 8798279.6875, 8832200.0, 8844110.9375, 8844800.0, 8847639.0625, 8850218.75, 8852073.4375, 8852795.3125, 8866662.5, 8872353.125, 8897028.125, 8901890.625, 8906171.875, 8907554.6875, 8908390.625, 8923435.9375, 8930298.4375, 8933185.9375, 8934432.8125, 8934475.0, 8934931.25, 8935390.625, 8937403.125, 8938556.25, 8939881.25, 8961251.5625, 8961270.3125, 8965768.75, 8966612.5, 8970714.0625, 8973457.8125, 8973815.625, 8992179.6875, 9000093.75, 9049690.625, 9063565.625, 9102270.3125, 9104339.0625, 9105096.875, 9109176.5625, 9109215.625, 9110104.6875, 9142848.4375, 9143515.625, 9154596.875, 9160628.125, 9161179.6875, 9161443.75, 9162289.0625, 9164337.5, 9166762.5, 9193487.5, 9194373.4375, 9196396.875, 9212995.3125, 9213076.5625, 9216192.1875, 9220053.125, 9223507.8125, 9229953.125, 9245812.5, 9247535.9375, 9288956.25, 9292062.5, 9292984.375, 9294929.6875, 9296375.0, 9299501.5625, 9341264.0625, 9341450.0, 9370353.125, 9371515.625, 9371731.25, 9372764.0625, 9398310.9375, 9405759.375, 9406070.3125, 9408159.375, 9409629.6875, 9411896.875, 9414056.25, 9427857.8125, 9427973.4375, 9427985.9375, 9428423.4375, 9430673.4375, 9430732.8125, 9432729.6875, 9433740.625, 9435090.625, 9435567.1875, 9440359.375, 9440651.5625, 9440668.75, 9441643.75, 9442596.875, 9444670.3125, 9447843.75, 9466703.125, 9472181.25, 9472564.0625, 9472720.3125, 9472739.0625, 9474223.4375, 9474231.25, 9480590.625, 9486275.0, 9486342.1875, 9486625.0, 9488676.5625, 9538037.5, 9575796.875, 9619153.125, 9638823.4375, 9797857.8125, 9977745.3125, 9982857.8125, 9986442.1875, 10037198.4375, 10038057.8125, 10074335.9375, 10133864.0625, 10143346.875, 10149317.1875, 10165540.625, 10165556.25, 10168157.8125, 10223342.1875, 10223345.3125, 10249812.5, 10291953.125, 10302829.6875, 10313523.4375, 10314862.5, 10314954.6875, 10436634.375, 11152448.4375, 11157092.1875, 11157189.0625, 11162209.375, 11162621.875, 11163150.0, 11163610.9375, 11163628.125, 11165470.3125, 11166510.9375, 11171976.5625, 11172332.8125, 11172792.1875, 11172831.25, 11178904.6875, 11178973.4375, 11181482.8125, 11182754.6875, 11185362.5, 11186406.25, 11227615.625, 234330389.0625], [51.81348810622824, 56.62203663740266, 57.62906380130759, 48.50108498856048, 43.35535157667983, 9.726341720934345, 79.78929455077181, 10.965941607075914, 7.926419310224667, 8.242055390139042, 14.940859168846632, 63.88618642590539, 20.7799595245082, 10.447089989377108, 24.29186053908166, 38.806204568636694, 22.35022506127917, 74.27152245989441, 5.410256405656962, 5.7070617269358195, 84.77538267534372, 16.603952364345865, 58.04415077081655, 20.70212551964449, 103.17966533938603, 56.78493717008509, 31.597136559246113, 69.70941598408486, 6.940769684319742, 5.409236844584782, 7.583595537888259, 7.916863738510844, 77.71228783281455, 6.119546215289333, 75.66129829916895, 6.482267279693462, 148.73075980086634, 32.70850108971895, 60.848619718547376, 36.99127845927031, 60.314211054881994, 23.831910021641267, 7.143700434358464, 20.163701867445525, 63.10187516042372, 32.26194919744282, 34.89517575229515, 14.9814297748373, 110.72144136874016, 7.092439797971066, 145.6475993218524, 64.81968178578268, 19.241496631881347, 45.60253522939462, 14.003891108013244, 60.526570355753556, 199.6672577878265, 27.632861081892564, 135.0523828956577, 26.43208835050023, 25.049123652235274, 62.807505682620146, 23.251699753362587, 34.41809012540902, 5.306345667236003, 32.8277763718281, 18.79437974993178, 23.70440402704764, 97.44094489849495, 35.40733435597752, 14.194909115414596, 57.99577124676082, 12.592576347588308, 7.29229056467497, 7.156431969935829, 19.140503376524737, 78.99713792006374, 5.817690921606084, 190.49241989921853, 5.1503577239851825, 6.616791911643514, 69.23795959582202, 54.22207006580188, 12.194799388175717, 30.014891232530424, 35.00190074269995, 90.76876295298422, 59.110097704007714, 42.015509628911246, 123.41528444156673, 6.205938083788943, 66.24106374423837, 43.53327060869927, 29.136431249748075, 7.411992408491051, 21.77802627274504, 82.98374865436996, 18.719715676932857, 80.15783189645876, 17.896059350779453, 5.399464659206118, 59.59456339897545, 48.44260776065721, 126.54185796335301, 40.900164229384345, 55.79019598596, 200.7497971066636, 8.154370099255098, 23.518834778429706, 42.727099523868226, 22.014477748205653, 45.06828080360835, 14.905589726700798, 44.255877758511296, 12.96567472944883, 75.54465664483375, 46.44664425386315, 6.652166193737166, 24.850354323972862, 6.9341728705504915, 39.88640579727155, 8.02932797756475, 37.634324033286724, 14.983788198297749, 184.08684837581887, 15.495595940327412, 31.11702584253633, 22.728907744319304, 39.02434330072693, 151.6273446978982, 5.3438246880055615, 75.95724110437288, 32.74613329872292, 6.529382763555912, 42.875397955293195, 64.92651657221374, 120.72486156910088, 63.202080534292804, 24.585414316921728, 9.987890133470826, 9.564371877640038, 31.2914336292801, 5.211814636782879, 9.866568965765197, 5.576382654281494, 184.40100488174366, 14.827430218194852, 12.72664077044182, 78.41692648750767, 5.0464077447185804, 110.49385245465112, 25.679504897630114, 69.69837729818582, 129.94244804862632, 21.20658140190226, 55.966960029613986, 58.00268436766175, 60.07057614784551, 9.321461433571242, 67.51078424083141, 67.2671988221577, 14.96821316481877, 26.300563563065914, 100.46423641697083, 10.590757035957242, 31.169865527964934, 18.740261306822855, 6.151284364587184, 6.7680088172241675, 58.262068161792364, 119.8891144236946, 12.55653593705549, 86.28790324586981, 9.758381577448963, 50.861393297039896, 12.584234261845566, 17.261661645607397, 14.967526823417714, 5.026494662445916, 29.84006551836561, 16.28610313992371, 120.43809188073318, 55.9114366289553, 31.522941354682384, 56.70849174462255, 8.432660928231943, 15.248793018799136, 9.905828848927642, 22.317974234661023, 24.52975827218481, 77.26135352871862, 7.679742934528872, 5.536849146880723, 111.99802698371754, 170.57515001703052, 8.519588494304687, 23.671297585764556, 53.061267964752176, 106.99105483358272, 88.19965971083585, 104.41300431542408, 25.059766962814653, 38.93438805298729, 47.613472887124225, 58.35718825552347, 18.552625867575898, 27.853050137150703, 14.92436999700882, 31.653312104556864, 24.04368639765979, 6.920154643079342, 54.038699207901246, 15.948869170000881, 11.098464261072388, 40.836265042816414, 15.291699524602594, 66.02073950949571, 40.90295074915835, 111.51335705134743, 82.38837788620863, 122.09811600989498, 30.53734096095979, 24.086392401047384, 8.68213297553139, 15.995439164097425, 74.06651149527139, 46.24744717936815, 64.88277980953387, 59.784953354436034, 42.99346359455612, 6.804010181660518, 27.942782439746182, 34.03121337683676, 28.699287577219437, 79.0639971185871, 88.84093731877437, 60.60716459699509, 13.813342194677299, 16.220924445159824, 25.964786801054125, 76.68970547446122, 7.044191682691083, 109.41554293354903, 38.20124802211757, 12.742948632501157, 17.60901598005534, 37.88932581767814, 23.93199679473661, 23.867623220152293, 47.516810348298435, 58.593433437296426, 46.26036070496309, 83.77958847330014, 17.10921595791958, 8.126900220909565, 17.08591502425818, 56.760607264121724, 5.057876760100074, 61.291019175274826, 29.04816305048524, 13.154846989397651, 18.32607984074618, 22.34667937798447, 16.516863363390545, 84.1765957292492, 46.82038247653598, 8.89272168455071, 42.04921340649878, 67.41002687797133, 35.1915196411673, 10.945965770467062, 6.351561119614264, 82.03077547193485, 33.04788056667796, 89.86402014510662, 7.470731837735218, 20.05792155941263, 48.68732797089058, 27.33163961435482, 25.497274834857752, 6.919065420390735, 31.632615941416166, 28.232848678564018, 101.05029778784586, 44.847590670040546, 32.28363858058747, 12.561535924386922, 9.47854138650646, 14.739963628902599, 42.587665335186834, 43.829180052390235, 19.700209494620196, 25.1757563770073, 13.952496034030098, 19.584432295611713, 66.70170502856038, 15.953597493321569, 110.29996583529866, 165.22416407015504, 9.4469268712589, 72.56438486185816, 6.902880374515771, 45.131149677207496, 19.63510041654571, 6.223796717338818, 40.91739286818918, 26.77732120660465, 29.022169362119392, 5.38831235283806, 135.62752552663366, 46.39947221914649, 31.888392102797454, 98.50617530145283, 99.3312950675478, 64.71615041984622, 25.239271738633825, 66.29832334291697, 43.86300083287034, 51.32861787412561, 15.394422067002854, 63.253223481719054, 5.562433749733104, 13.460876039886406, 19.103864701949163, 23.19823477463338, 8.84110920323116, 87.19901491799251, 33.2752216318513, 98.16382041248009, 15.200962148884472, 15.009356772828912, 247.79752249095714, 95.9696076364444, 142.5165707821891, 11.624607324368032, 13.964889274591176, 59.69192150911728, 69.26790460270897, 7.270140330823709, 216.828350966362, 21.284009974917304, 55.79807558557228, 14.408989313299358, 189.36133723678591, 12.9881946328123, 5.640317832228084, 42.28870593086766, 16.381107965421933, 22.56343787269723, 54.63434918041493, 18.070343968521442, 39.56255233343896, 69.40653248079322, 55.46114732881176, 26.986036939193575, 48.51328173737565, 100.9411351954959, 7.014801133305018, 13.85580447817587, 22.7684003867358, 38.192612566983556, 14.921869074332642, 131.06339596781717, 15.628764486377301, 14.986561910708364, 5.729630491982268, 155.31966115322865, 52.54091579800794, 5.239507394275367, 13.630404346736027, 16.283536055845126, 47.35316899632216, 30.260234659094298, 38.69557065195784, 129.8402429037319, 190.7463668981214, 25.404880205309944, 91.60562886960308, 16.284323005486936, 36.3264354275434, 77.74791057355736, 48.8388922920996, 19.81994688840592, 137.77150298260256, 20.961108533500102, 44.61344953495759, 22.994405138422998, 30.959238568505096, 59.27359889581118, 25.528473071387506, 27.414823578772754, 10.401065576596677, 107.32969628980362, 96.63994680826636, 85.24702431152213, 67.62421143146715, 5.202554697601524, 55.211800662266064, 34.299612864148116, 16.124209701014752, 10.431199137866615, 10.302505561600428, 11.4754255560753, 5.209226674787426, 93.79042266912407, 94.00752004769924, 63.63522116953205, 90.62055169078602, 14.23821219400159, 27.877088994850734, 9.729109041025946, 23.382653984276335, 78.52855309519985, 75.7082390166627, 28.718701199102956, 7.4286483703518655, 5.517260330617119, 11.19284684688678, 22.564067710503725, 15.17760784794669, 61.66207707885458, 11.893556021869946, 9.1323153846641, 80.00333689971033, 18.60328291136078, 123.01040118599427, 58.09014744256977, 51.52309898653968, 19.481675641434208, 17.78199729151843, 39.584061911291094, 49.7082864488648, 7.98301613046211, 25.759685653082705, 18.996725836978683, 49.86692083652133, 72.74820582696256, 59.08193509348524, 159.70534109916514, 66.76726490752934, 139.00006685268986, 51.41417648309728, 28.37594975446625, 80.2284102996678, 78.82741634178593, 9.674857874985516, 48.02440593010413, 23.17873462649178, 15.152254765297396, 73.39096904205728, 54.62869186804164, 29.6211013160715, 54.45973132077428, 15.930602816168351, 9.01411323064112, 30.064701268322356, 70.68833501723931, 45.958307159043635, 17.422444006904072, 32.81026387028675, 50.763480522940455, 35.05645424325104, 58.22440650154074, 111.70911267449314, 19.576990895678858, 50.554465591072244, 43.77854493710124, 65.06698297005913, 43.01775832802294, 47.22983322308236, 173.71151378115567, 6.814572732297812, 34.56913121437905, 10.124231657299264, 45.90071748408788, 34.6870801421575, 19.767249831838484, 115.95834757322193, 8.296249613385562, 40.95440984236482, 44.06164558213468, 19.568606663774936, 5.149567637972924, 70.36437466479079, 24.57678448002094, 43.62616201227873, 32.744697922305136, 29.194309541581198, 11.187201366690207, 5.298980840153539, 27.211288768652704, 54.6723080579429, 8.152655571936277, 62.85068215284454, 79.05841657596878, 27.55115278174349, 84.91716908457953, 38.88562737307747, 62.26919687295597, 31.921980103506172, 6.15601114912261, 73.94640832755499, 37.56026783061372, 12.385920754241566, 37.976828896559574, 10.264629248428411, 41.0355882980313, 31.223808904927193, 11.241487324098275, 34.83993879847457, 8.614674146646967, 20.863625310055983, 9.468359690648798, 11.448846957192098, 11.990084852207213, 71.3207729459514, 14.242203797458727, 99.20187817869977, 13.123663409117139, 29.330647406471137, 20.389631108445077, 26.5539228867947, 60.17244154024156, 7.289534810055455, 19.062203319646482, 15.738167091318862, 77.55062129180175, 21.473403049058543, 46.31914178335928, 47.33614249670919, 54.62035806625535, 15.00944046125685, 5.588106869837932, 143.41996485323313, 54.65731205387098, 91.46006392799526, 55.169910927793836, 18.600060399541732, 22.550692824568927, 32.287260651611476, 25.40328413194674, 111.19817718481526, 62.7515613122402, 11.094837113708074, 23.770977741236457, 43.13590247887752, 10.55952330501137, 104.67910669719637, 72.33307303490449, 17.47589986011287, 32.801614107337635, 13.764921699644457, 75.59183388229627, 8.361615184959154, 33.44323636399481, 74.3592973082221, 30.599998474755484, 18.383460678753295, 7.815701549756816, 53.68998017137297, 54.71767575156547, 5.080515633966628, 14.346073131927884, 31.782492828829067, 65.66081231807345, 71.96655100344806, 17.80723750818762, 69.88330763746974, 52.05488265768676, 15.332093552286858, 82.69791359546939, 16.419153540877492, 57.17424896664289, 70.68944373729653, 12.57005734430867, 17.717748793979087, 7.042919156202689, 54.87384809153163, 5.370090144459559, 65.84648482320769, 7.8587750700915295, 10.567175117311077, 19.291536854303907, 12.521286530286538, 17.54943437081029])
caption, xmean,count, xle, Etot = energy_spectrum(E_tot)
hist_file(E_hist, xmean, count, caption);
([3718259.375, 3730809.375, 3893754.6875, 3898814.0625, 3905628.125, 4153059.375, 4207115.625, 4250493.75, 4276145.3125, 4276815.625, 4660646.875, 4660659.375, 4694559.375, 4782328.125, 4854331.25, 4914331.25, 5092700.0, 5730234.375, 5868882.8125, 5923445.3125, 5936978.125, 5995639.0625, 6071270.3125, 6078114.0625, 6145390.625, 6198148.4375, 6203665.625, 6295128.125, 6315484.375, 6315535.9375, 6320520.3125, 6324481.25, 6324520.3125, 6326371.875, 6340553.125, 6348331.25, 6354803.125, 6375406.25, 6378237.5, 6381720.3125, 6386554.6875, 6441814.0625, 6445748.4375, 6446065.625, 6446685.9375, 6446957.8125, 6447990.625, 6448009.375, 6448495.3125, 6453032.8125, 6464742.1875, 6465612.5, 6470665.625, 6470853.125, 6474009.375, 6483209.375, 6486743.75, 6486795.3125, 6491242.1875, 6496151.5625, 6503235.9375, 6506064.0625, 6508651.5625, 6512506.25, 6513075.0, 6516160.9375, 6516718.75, 6516735.9375, 6518917.1875, 6520160.9375, 6520332.8125, 6521076.5625, 6523460.9375, 6524095.3125, 6525093.75, 6530548.4375, 6548976.5625, 6551243.75, 6562381.25, 6562460.9375, 6562660.9375, 6567301.5625, 6578343.75, 6580031.25, 6592117.1875, 6603115.625, 6617001.5625, 6624121.875, 6632234.375, 6641604.6875, 6644375.0, 6647189.0625, 6659884.375, 6660295.3125, 6670920.3125, 6675415.625, 6682942.1875, 6686567.1875, 6686570.3125, 6697231.25, 6731353.125, 6759217.1875, 6790176.5625, 6808359.375, 6809475.0, 6812281.25, 6818871.875, 6819320.3125, 6827590.625, 6827635.9375, 6827653.125, 6827950.0, 6827957.8125, 6840309.375, 6842156.25, 6852048.4375, 6852095.3125, 6876331.25, 6886125.0, 6913128.125, 6913987.5, 6916370.3125, 6936754.6875, 6937446.875, 6946339.0625, 7002675.0, 7002687.5, 7002690.625, 7014289.0625, 7018076.5625, 7024212.5, 7024915.625, 7025875.0, 7026057.8125, 7026406.25, 7027895.3125, 7031328.125, 7032635.9375, 7032645.3125, 7042146.875, 7054526.5625, 7065156.25, 7065834.375, 7102068.75, 7121906.25, 7135064.0625, 7144273.4375, 7164753.125, 7167421.875, 7167473.4375, 7179156.25, 7185317.1875, 7193785.9375, 7195064.0625, 7198093.75, 7200379.6875, 7204207.8125, 7223604.6875, 7228056.25, 7233543.75, 7234968.75, 7235162.5, 7240085.9375, 7246965.625, 7271625.0, 7276920.3125, 7281048.4375, 7281095.3125, 7281759.375, 7284557.8125, 7291343.75, 7294160.9375, 7294907.8125, 7296909.375, 7297117.1875, 7298065.625, 7299334.375, 7299387.5, 7299471.875, 7304826.5625, 7305839.0625, 7312329.6875, 7318970.3125, 7321181.25, 7322492.1875, 7322498.4375, 7323184.375, 7329675.0, 7338196.875, 7342935.9375, 7343362.5, 7348707.8125, 7350310.9375, 7351373.4375, 7351673.4375, 7352165.625, 7352331.25, 7352381.25, 7353660.9375, 7354746.875, 7355368.75, 7355678.125, 7355762.5, 7356071.875, 7356737.5, 7357264.0625, 7357915.625, 7359365.625, 7368912.5, 7373935.9375, 7378467.1875, 7381639.0625, 7385526.5625, 7390856.25, 7401435.9375, 7402184.375, 7403760.9375, 7403814.0625, 7404604.6875, 7405153.125, 7405896.875, 7406156.25, 7406342.1875, 7406515.625, 7406534.375, 7406704.6875, 7408390.625, 7409439.0625, 7410215.625, 7414010.9375, 7417743.75, 7417939.0625, 7441234.375, 7441251.5625, 7441270.3125, 7444990.625, 7451503.125, 7452170.3125, 7453548.4375, 7453667.1875, 7453693.75, 7454340.625, 7455696.875, 7456495.3125, 7458129.6875, 7460042.1875, 7463428.125, 7469998.4375, 7475762.5, 7476537.5, 7477650.0, 7478460.9375, 7481089.0625, 7483657.8125, 7483664.0625, 7490053.125, 7490106.25, 7490157.8125, 7502909.375, 7509292.1875, 7515048.4375, 7517396.875, 7521003.125, 7521945.3125, 7527912.5, 7533629.6875, 7533759.375, 7534018.75, 7534917.1875, 7535050.0, 7540979.6875, 7544065.625, 7545170.3125, 7545935.9375, 7546475.0, 7548420.3125, 7548589.0625, 7549193.75, 7571471.875, 7620209.375, 7641742.1875, 7648796.875, 7649054.6875, 7675339.0625, 7676960.9375, 7710635.9375, 7711410.9375, 7715390.625, 7718696.875, 7727412.5, 7739984.375, 7746628.125, 7792431.25, 7799053.125, 7822517.1875, 7853100.0, 7856853.125, 7869348.4375, 7882364.0625, 7907262.5, 7919193.75, 7944679.6875, 7947881.25, 7947907.8125, 7949921.875, 7950621.875, 7967995.3125, 7985704.6875, 7988245.3125, 7988948.4375, 7989242.1875, 8012373.4375, 8030432.8125, 8031031.25, 8031564.0625, 8031800.0, 8031881.25, 8032001.5625, 8032076.5625, 8033464.0625, 8042873.4375, 8042903.125, 8046864.0625, 8048954.6875, 8049900.0, 8147259.375, 8157885.9375, 8163748.4375, 8166042.1875, 8200095.3125, 8225414.0625, 8225778.125, 8241887.5, 8242195.3125, 8243412.5, 8244021.875, 8246803.125, 8250818.75, 8250823.4375, 8257887.5, 8258625.0, 8258642.1875, 8258731.25, 8259073.4375, 8259481.25, 8260156.25, 8260390.625, 8260828.125, 8260840.625, 8263926.5625, 8264895.3125, 8265251.5625, 8265334.375, 8265476.5625, 8266567.1875, 8266725.0, 8268071.875, 8269815.625, 8270907.8125, 8270989.0625, 8271195.3125, 8272115.625, 8295823.4375, 8313740.625, 8315200.0, 8315209.375, 8315650.0, 8315845.3125, 8322106.25, 8335967.1875, 8339039.0625, 8341589.0625, 8341631.25, 8342678.125, 8343250.0, 8353575.0, 8420306.25, 8427165.625, 8442348.4375, 8444400.0, 8450831.25, 8454917.1875, 8461531.25, 8484940.625, 8485503.125, 8485526.5625, 8487009.375, 8487129.6875, 8487732.8125, 8488726.5625, 8489926.5625, 8497912.5, 8500259.375, 8501587.5, 8502739.0625, 8504076.5625, 8504985.9375, 8505809.375, 8506645.3125, 8507437.5, 8510453.125, 8533493.75, 8549179.6875, 8549254.6875, 8549842.1875, 8567807.8125, 8584731.25, 8616273.4375, 8617778.125, 8619465.625, 8620082.8125, 8643859.375, 8646242.1875, 8685700.0, 8729587.5, 8731792.1875, 8731926.5625, 8732704.6875, 8748859.375, 8753565.625, 8754526.5625, 8754534.375, 8762175.0, 8788145.3125, 8788146.875, 8790384.375, 8796142.1875, 8798279.6875, 8832200.0, 8844110.9375, 8844800.0, 8847639.0625, 8850218.75, 8852073.4375, 8852795.3125, 8866662.5, 8872353.125, 8897028.125, 8901890.625, 8906171.875, 8907554.6875, 8908390.625, 8923435.9375, 8930298.4375, 8933185.9375, 8934432.8125, 8934475.0, 8934931.25, 8935390.625, 8937403.125, 8938556.25, 8939881.25, 8961251.5625, 8961270.3125, 8965768.75, 8966612.5, 8970714.0625, 8973457.8125, 8973815.625, 8992179.6875, 9000093.75, 9049690.625, 9063565.625, 9102270.3125, 9104339.0625, 9105096.875, 9109176.5625, 9109215.625, 9110104.6875, 9142848.4375, 9143515.625, 9154596.875, 9160628.125, 9161179.6875, 9161443.75, 9162289.0625, 9164337.5, 9166762.5, 9193487.5, 9194373.4375, 9196396.875, 9212995.3125, 9213076.5625, 9216192.1875, 9220053.125, 9223507.8125, 9229953.125, 9245812.5, 9247535.9375, 9288956.25, 9292062.5, 9292984.375, 9294929.6875, 9296375.0, 9299501.5625, 9341264.0625, 9341450.0, 9370353.125, 9371515.625, 9371731.25, 9372764.0625, 9398310.9375, 9405759.375, 9406070.3125, 9408159.375, 9409629.6875, 9411896.875, 9414056.25, 9427857.8125, 9427973.4375, 9427985.9375, 9428423.4375, 9430673.4375, 9430732.8125, 9432729.6875, 9433740.625, 9435090.625, 9435567.1875, 9440359.375, 9440651.5625, 9440668.75, 9441643.75, 9442596.875, 9444670.3125, 9447843.75, 9466703.125, 9472181.25, 9472564.0625, 9472720.3125, 9472739.0625, 9474223.4375, 9474231.25, 9480590.625, 9486275.0, 9486342.1875, 9486625.0, 9488676.5625, 9538037.5, 9575796.875, 9619153.125, 9638823.4375, 9797857.8125, 9977745.3125, 9982857.8125, 9986442.1875, 10037198.4375, 10038057.8125, 10074335.9375, 10133864.0625, 10143346.875, 10149317.1875, 10165540.625, 10165556.25, 10168157.8125, 10223342.1875, 10223345.3125, 10249812.5, 10291953.125, 10302829.6875, 10313523.4375, 10314862.5, 10314954.6875, 10436634.375, 11152448.4375, 11157092.1875, 11157189.0625, 11162209.375, 11162621.875, 11163150.0, 11163610.9375, 11163628.125, 11165470.3125, 11166510.9375, 11171976.5625, 11172332.8125, 11172792.1875, 11172831.25, 11178904.6875, 11178973.4375, 11181482.8125, 11182754.6875, 11185362.5, 11186406.25, 11227615.625, 234330389.0625], [51.81348810622824, 56.62203663740266, 57.62906380130759, 48.50108498856048, 43.35535157667983, 9.726341720934345, 79.78929455077181, 10.965941607075914, 7.926419310224667, 8.242055390139042, 14.940859168846632, 63.88618642590539, 20.7799595245082, 10.447089989377108, 24.29186053908166, 38.806204568636694, 22.35022506127917, 74.27152245989441, 5.410256405656962, 5.7070617269358195, 84.77538267534372, 16.603952364345865, 58.04415077081655, 20.70212551964449, 103.17966533938603, 56.78493717008509, 31.597136559246113, 69.70941598408486, 6.940769684319742, 5.409236844584782, 7.583595537888259, 7.916863738510844, 77.71228783281455, 6.119546215289333, 75.66129829916895, 6.482267279693462, 148.73075980086634, 32.70850108971895, 60.848619718547376, 36.99127845927031, 60.314211054881994, 23.831910021641267, 7.143700434358464, 20.163701867445525, 63.10187516042372, 32.26194919744282, 34.89517575229515, 14.9814297748373, 110.72144136874016, 7.092439797971066, 145.6475993218524, 64.81968178578268, 19.241496631881347, 45.60253522939462, 14.003891108013244, 60.526570355753556, 199.6672577878265, 27.632861081892564, 135.0523828956577, 26.43208835050023, 25.049123652235274, 62.807505682620146, 23.251699753362587, 34.41809012540902, 5.306345667236003, 32.8277763718281, 18.79437974993178, 23.70440402704764, 97.44094489849495, 35.40733435597752, 14.194909115414596, 57.99577124676082, 12.592576347588308, 7.29229056467497, 7.156431969935829, 19.140503376524737, 78.99713792006374, 5.817690921606084, 190.49241989921853, 5.1503577239851825, 6.616791911643514, 69.23795959582202, 54.22207006580188, 12.194799388175717, 30.014891232530424, 35.00190074269995, 90.76876295298422, 59.110097704007714, 42.015509628911246, 123.41528444156673, 6.205938083788943, 66.24106374423837, 43.53327060869927, 29.136431249748075, 7.411992408491051, 21.77802627274504, 82.98374865436996, 18.719715676932857, 80.15783189645876, 17.896059350779453, 5.399464659206118, 59.59456339897545, 48.44260776065721, 126.54185796335301, 40.900164229384345, 55.79019598596, 200.7497971066636, 8.154370099255098, 23.518834778429706, 42.727099523868226, 22.014477748205653, 45.06828080360835, 14.905589726700798, 44.255877758511296, 12.96567472944883, 75.54465664483375, 46.44664425386315, 6.652166193737166, 24.850354323972862, 6.9341728705504915, 39.88640579727155, 8.02932797756475, 37.634324033286724, 14.983788198297749, 184.08684837581887, 15.495595940327412, 31.11702584253633, 22.728907744319304, 39.02434330072693, 151.6273446978982, 5.3438246880055615, 75.95724110437288, 32.74613329872292, 6.529382763555912, 42.875397955293195, 64.92651657221374, 120.72486156910088, 63.202080534292804, 24.585414316921728, 9.987890133470826, 9.564371877640038, 31.2914336292801, 5.211814636782879, 9.866568965765197, 5.576382654281494, 184.40100488174366, 14.827430218194852, 12.72664077044182, 78.41692648750767, 5.0464077447185804, 110.49385245465112, 25.679504897630114, 69.69837729818582, 129.94244804862632, 21.20658140190226, 55.966960029613986, 58.00268436766175, 60.07057614784551, 9.321461433571242, 67.51078424083141, 67.2671988221577, 14.96821316481877, 26.300563563065914, 100.46423641697083, 10.590757035957242, 31.169865527964934, 18.740261306822855, 6.151284364587184, 6.7680088172241675, 58.262068161792364, 119.8891144236946, 12.55653593705549, 86.28790324586981, 9.758381577448963, 50.861393297039896, 12.584234261845566, 17.261661645607397, 14.967526823417714, 5.026494662445916, 29.84006551836561, 16.28610313992371, 120.43809188073318, 55.9114366289553, 31.522941354682384, 56.70849174462255, 8.432660928231943, 15.248793018799136, 9.905828848927642, 22.317974234661023, 24.52975827218481, 77.26135352871862, 7.679742934528872, 5.536849146880723, 111.99802698371754, 170.57515001703052, 8.519588494304687, 23.671297585764556, 53.061267964752176, 106.99105483358272, 88.19965971083585, 104.41300431542408, 25.059766962814653, 38.93438805298729, 47.613472887124225, 58.35718825552347, 18.552625867575898, 27.853050137150703, 14.92436999700882, 31.653312104556864, 24.04368639765979, 6.920154643079342, 54.038699207901246, 15.948869170000881, 11.098464261072388, 40.836265042816414, 15.291699524602594, 66.02073950949571, 40.90295074915835, 111.51335705134743, 82.38837788620863, 122.09811600989498, 30.53734096095979, 24.086392401047384, 8.68213297553139, 15.995439164097425, 74.06651149527139, 46.24744717936815, 64.88277980953387, 59.784953354436034, 42.99346359455612, 6.804010181660518, 27.942782439746182, 34.03121337683676, 28.699287577219437, 79.0639971185871, 88.84093731877437, 60.60716459699509, 13.813342194677299, 16.220924445159824, 25.964786801054125, 76.68970547446122, 7.044191682691083, 109.41554293354903, 38.20124802211757, 12.742948632501157, 17.60901598005534, 37.88932581767814, 23.93199679473661, 23.867623220152293, 47.516810348298435, 58.593433437296426, 46.26036070496309, 83.77958847330014, 17.10921595791958, 8.126900220909565, 17.08591502425818, 56.760607264121724, 5.057876760100074, 61.291019175274826, 29.04816305048524, 13.154846989397651, 18.32607984074618, 22.34667937798447, 16.516863363390545, 84.1765957292492, 46.82038247653598, 8.89272168455071, 42.04921340649878, 67.41002687797133, 35.1915196411673, 10.945965770467062, 6.351561119614264, 82.03077547193485, 33.04788056667796, 89.86402014510662, 7.470731837735218, 20.05792155941263, 48.68732797089058, 27.33163961435482, 25.497274834857752, 6.919065420390735, 31.632615941416166, 28.232848678564018, 101.05029778784586, 44.847590670040546, 32.28363858058747, 12.561535924386922, 9.47854138650646, 14.739963628902599, 42.587665335186834, 43.829180052390235, 19.700209494620196, 25.1757563770073, 13.952496034030098, 19.584432295611713, 66.70170502856038, 15.953597493321569, 110.29996583529866, 165.22416407015504, 9.4469268712589, 72.56438486185816, 6.902880374515771, 45.131149677207496, 19.63510041654571, 6.223796717338818, 40.91739286818918, 26.77732120660465, 29.022169362119392, 5.38831235283806, 135.62752552663366, 46.39947221914649, 31.888392102797454, 98.50617530145283, 99.3312950675478, 64.71615041984622, 25.239271738633825, 66.29832334291697, 43.86300083287034, 51.32861787412561, 15.394422067002854, 63.253223481719054, 5.562433749733104, 13.460876039886406, 19.103864701949163, 23.19823477463338, 8.84110920323116, 87.19901491799251, 33.2752216318513, 98.16382041248009, 15.200962148884472, 15.009356772828912, 247.79752249095714, 95.9696076364444, 142.5165707821891, 11.624607324368032, 13.964889274591176, 59.69192150911728, 69.26790460270897, 7.270140330823709, 216.828350966362, 21.284009974917304, 55.79807558557228, 14.408989313299358, 189.36133723678591, 12.9881946328123, 5.640317832228084, 42.28870593086766, 16.381107965421933, 22.56343787269723, 54.63434918041493, 18.070343968521442, 39.56255233343896, 69.40653248079322, 55.46114732881176, 26.986036939193575, 48.51328173737565, 100.9411351954959, 7.014801133305018, 13.85580447817587, 22.7684003867358, 38.192612566983556, 14.921869074332642, 131.06339596781717, 15.628764486377301, 14.986561910708364, 5.729630491982268, 155.31966115322865, 52.54091579800794, 5.239507394275367, 13.630404346736027, 16.283536055845126, 47.35316899632216, 30.260234659094298, 38.69557065195784, 129.8402429037319, 190.7463668981214, 25.404880205309944, 91.60562886960308, 16.284323005486936, 36.3264354275434, 77.74791057355736, 48.8388922920996, 19.81994688840592, 137.77150298260256, 20.961108533500102, 44.61344953495759, 22.994405138422998, 30.959238568505096, 59.27359889581118, 25.528473071387506, 27.414823578772754, 10.401065576596677, 107.32969628980362, 96.63994680826636, 85.24702431152213, 67.62421143146715, 5.202554697601524, 55.211800662266064, 34.299612864148116, 16.124209701014752, 10.431199137866615, 10.302505561600428, 11.4754255560753, 5.209226674787426, 93.79042266912407, 94.00752004769924, 63.63522116953205, 90.62055169078602, 14.23821219400159, 27.877088994850734, 9.729109041025946, 23.382653984276335, 78.52855309519985, 75.7082390166627, 28.718701199102956, 7.4286483703518655, 5.517260330617119, 11.19284684688678, 22.564067710503725, 15.17760784794669, 61.66207707885458, 11.893556021869946, 9.1323153846641, 80.00333689971033, 18.60328291136078, 123.01040118599427, 58.09014744256977, 51.52309898653968, 19.481675641434208, 17.78199729151843, 39.584061911291094, 49.7082864488648, 7.98301613046211, 25.759685653082705, 18.996725836978683, 49.86692083652133, 72.74820582696256, 59.08193509348524, 159.70534109916514, 66.76726490752934, 139.00006685268986, 51.41417648309728, 28.37594975446625, 80.2284102996678, 78.82741634178593, 9.674857874985516, 48.02440593010413, 23.17873462649178, 15.152254765297396, 73.39096904205728, 54.62869186804164, 29.6211013160715, 54.45973132077428, 15.930602816168351, 9.01411323064112, 30.064701268322356, 70.68833501723931, 45.958307159043635, 17.422444006904072, 32.81026387028675, 50.763480522940455, 35.05645424325104, 58.22440650154074, 111.70911267449314, 19.576990895678858, 50.554465591072244, 43.77854493710124, 65.06698297005913, 43.01775832802294, 47.22983322308236, 173.71151378115567, 6.814572732297812, 34.56913121437905, 10.124231657299264, 45.90071748408788, 34.6870801421575, 19.767249831838484, 115.95834757322193, 8.296249613385562, 40.95440984236482, 44.06164558213468, 19.568606663774936, 5.149567637972924, 70.36437466479079, 24.57678448002094, 43.62616201227873, 32.744697922305136, 29.194309541581198, 11.187201366690207, 5.298980840153539, 27.211288768652704, 54.6723080579429, 8.152655571936277, 62.85068215284454, 79.05841657596878, 27.55115278174349, 84.91716908457953, 38.88562737307747, 62.26919687295597, 31.921980103506172, 6.15601114912261, 73.94640832755499, 37.56026783061372, 12.385920754241566, 37.976828896559574, 10.264629248428411, 41.0355882980313, 31.223808904927193, 11.241487324098275, 34.83993879847457, 8.614674146646967, 20.863625310055983, 9.468359690648798, 11.448846957192098, 11.990084852207213, 71.3207729459514, 14.242203797458727, 99.20187817869977, 13.123663409117139, 29.330647406471137, 20.389631108445077, 26.5539228867947, 60.17244154024156, 7.289534810055455, 19.062203319646482, 15.738167091318862, 77.55062129180175, 21.473403049058543, 46.31914178335928, 47.33614249670919, 54.62035806625535, 15.00944046125685, 5.588106869837932, 143.41996485323313, 54.65731205387098, 91.46006392799526, 55.169910927793836, 18.600060399541732, 22.550692824568927, 32.287260651611476, 25.40328413194674, 111.19817718481526, 62.7515613122402, 11.094837113708074, 23.770977741236457, 43.13590247887752, 10.55952330501137, 104.67910669719637, 72.33307303490449, 17.47589986011287, 32.801614107337635, 13.764921699644457, 75.59183388229627, 8.361615184959154, 33.44323636399481, 74.3592973082221, 30.599998474755484, 18.383460678753295, 7.815701549756816, 53.68998017137297, 54.71767575156547, 5.080515633966628, 14.346073131927884, 31.782492828829067, 65.66081231807345, 71.96655100344806, 17.80723750818762, 69.88330763746974, 52.05488265768676, 15.332093552286858, 82.69791359546939, 16.419153540877492, 57.17424896664289, 70.68944373729653, 12.57005734430867, 17.717748793979087, 7.042919156202689, 54.87384809153163, 5.370090144459559, 65.84648482320769, 7.8587750700915295, 10.567175117311077, 19.291536854303907, 12.521286530286538, 17.54943437081029])
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);
([3718259.375, 3730809.375, 3893754.6875, 3898814.0625, 3905628.125, 4153059.375, 4207115.625, 4250493.75, 4276145.3125, 4276815.625, 4660646.875, 4660659.375, 4694559.375, 4782328.125, 4854331.25, 4914331.25, 5092700.0, 5730234.375, 5868882.8125, 5923445.3125, 5936978.125, 5995639.0625, 6071270.3125, 6078114.0625, 6145390.625, 6198148.4375, 6203665.625, 6295128.125, 6315484.375, 6315535.9375, 6320520.3125, 6324481.25, 6324520.3125, 6326371.875, 6340553.125, 6348331.25, 6354803.125, 6375406.25, 6378237.5, 6381720.3125, 6386554.6875, 6441814.0625, 6445748.4375, 6446065.625, 6446685.9375, 6446957.8125, 6447990.625, 6448009.375, 6448495.3125, 6453032.8125, 6464742.1875, 6465612.5, 6470665.625, 6470853.125, 6474009.375, 6483209.375, 6486743.75, 6486795.3125, 6491242.1875, 6496151.5625, 6503235.9375, 6506064.0625, 6508651.5625, 6512506.25, 6513075.0, 6516160.9375, 6516718.75, 6516735.9375, 6518917.1875, 6520160.9375, 6520332.8125, 6521076.5625, 6523460.9375, 6524095.3125, 6525093.75, 6530548.4375, 6548976.5625, 6551243.75, 6562381.25, 6562460.9375, 6562660.9375, 6567301.5625, 6578343.75, 6580031.25, 6592117.1875, 6603115.625, 6617001.5625, 6624121.875, 6632234.375, 6641604.6875, 6644375.0, 6647189.0625, 6659884.375, 6660295.3125, 6670920.3125, 6675415.625, 6682942.1875, 6686567.1875, 6686570.3125, 6697231.25, 6731353.125, 6759217.1875, 6790176.5625, 6808359.375, 6809475.0, 6812281.25, 6818871.875, 6819320.3125, 6827590.625, 6827635.9375, 6827653.125, 6827950.0, 6827957.8125, 6840309.375, 6842156.25, 6852048.4375, 6852095.3125, 6876331.25, 6886125.0, 6913128.125, 6913987.5, 6916370.3125, 6936754.6875, 6937446.875, 6946339.0625, 7002675.0, 7002687.5, 7002690.625, 7014289.0625, 7018076.5625, 7024212.5, 7024915.625, 7025875.0, 7026057.8125, 7026406.25, 7027895.3125, 7031328.125, 7032635.9375, 7032645.3125, 7042146.875, 7054526.5625, 7065156.25, 7065834.375, 7102068.75, 7121906.25, 7135064.0625, 7144273.4375, 7164753.125, 7167421.875, 7167473.4375, 7179156.25, 7185317.1875, 7193785.9375, 7195064.0625, 7198093.75, 7200379.6875, 7204207.8125, 7223604.6875, 7228056.25, 7233543.75, 7234968.75, 7235162.5, 7240085.9375, 7246965.625, 7271625.0, 7276920.3125, 7281048.4375, 7281095.3125, 7281759.375, 7284557.8125, 7291343.75, 7294160.9375, 7294907.8125, 7296909.375, 7297117.1875, 7298065.625, 7299334.375, 7299387.5, 7299471.875, 7304826.5625, 7305839.0625, 7312329.6875, 7318970.3125, 7321181.25, 7322492.1875, 7322498.4375, 7323184.375, 7329675.0, 7338196.875, 7342935.9375, 7343362.5, 7348707.8125, 7350310.9375, 7351373.4375, 7351673.4375, 7352165.625, 7352331.25, 7352381.25, 7353660.9375, 7354746.875, 7355368.75, 7355678.125, 7355762.5, 7356071.875, 7356737.5, 7357264.0625, 7357915.625, 7359365.625, 7368912.5, 7373935.9375, 7378467.1875, 7381639.0625, 7385526.5625, 7390856.25, 7401435.9375, 7402184.375, 7403760.9375, 7403814.0625, 7404604.6875, 7405153.125, 7405896.875, 7406156.25, 7406342.1875, 7406515.625, 7406534.375, 7406704.6875, 7408390.625, 7409439.0625, 7410215.625, 7414010.9375, 7417743.75, 7417939.0625, 7441234.375, 7441251.5625, 7441270.3125, 7444990.625, 7451503.125, 7452170.3125, 7453548.4375, 7453667.1875, 7453693.75, 7454340.625, 7455696.875, 7456495.3125, 7458129.6875, 7460042.1875, 7463428.125, 7469998.4375, 7475762.5, 7476537.5, 7477650.0, 7478460.9375, 7481089.0625, 7483657.8125, 7483664.0625, 7490053.125, 7490106.25, 7490157.8125, 7502909.375, 7509292.1875, 7515048.4375, 7517396.875, 7521003.125, 7521945.3125, 7527912.5, 7533629.6875, 7533759.375, 7534018.75, 7534917.1875, 7535050.0, 7540979.6875, 7544065.625, 7545170.3125, 7545935.9375, 7546475.0, 7548420.3125, 7548589.0625, 7549193.75, 7571471.875, 7620209.375, 7641742.1875, 7648796.875, 7649054.6875, 7675339.0625, 7676960.9375, 7710635.9375, 7711410.9375, 7715390.625, 7718696.875, 7727412.5, 7739984.375, 7746628.125, 7792431.25, 7799053.125, 7822517.1875, 7853100.0, 7856853.125, 7869348.4375, 7882364.0625, 7907262.5, 7919193.75, 7944679.6875, 7947881.25, 7947907.8125, 7949921.875, 7950621.875, 7967995.3125, 7985704.6875, 7988245.3125, 7988948.4375, 7989242.1875, 8012373.4375, 8030432.8125, 8031031.25, 8031564.0625, 8031800.0, 8031881.25, 8032001.5625, 8032076.5625, 8033464.0625, 8042873.4375, 8042903.125, 8046864.0625, 8048954.6875, 8049900.0, 8147259.375, 8157885.9375, 8163748.4375, 8166042.1875, 8200095.3125, 8225414.0625, 8225778.125, 8241887.5, 8242195.3125, 8243412.5, 8244021.875, 8246803.125, 8250818.75, 8250823.4375, 8257887.5, 8258625.0, 8258642.1875, 8258731.25, 8259073.4375, 8259481.25, 8260156.25, 8260390.625, 8260828.125, 8260840.625, 8263926.5625, 8264895.3125, 8265251.5625, 8265334.375, 8265476.5625, 8266567.1875, 8266725.0, 8268071.875, 8269815.625, 8270907.8125, 8270989.0625, 8271195.3125, 8272115.625, 8295823.4375, 8313740.625, 8315200.0, 8315209.375, 8315650.0, 8315845.3125, 8322106.25, 8335967.1875, 8339039.0625, 8341589.0625, 8341631.25, 8342678.125, 8343250.0, 8353575.0, 8420306.25, 8427165.625, 8442348.4375, 8444400.0, 8450831.25, 8454917.1875, 8461531.25, 8484940.625, 8485503.125, 8485526.5625, 8487009.375, 8487129.6875, 8487732.8125, 8488726.5625, 8489926.5625, 8497912.5, 8500259.375, 8501587.5, 8502739.0625, 8504076.5625, 8504985.9375, 8505809.375, 8506645.3125, 8507437.5, 8510453.125, 8533493.75, 8549179.6875, 8549254.6875, 8549842.1875, 8567807.8125, 8584731.25, 8616273.4375, 8617778.125, 8619465.625, 8620082.8125, 8643859.375, 8646242.1875, 8685700.0, 8729587.5, 8731792.1875, 8731926.5625, 8732704.6875, 8748859.375, 8753565.625, 8754526.5625, 8754534.375, 8762175.0, 8788145.3125, 8788146.875, 8790384.375, 8796142.1875, 8798279.6875, 8832200.0, 8844110.9375, 8844800.0, 8847639.0625, 8850218.75, 8852073.4375, 8852795.3125, 8866662.5, 8872353.125, 8897028.125, 8901890.625, 8906171.875, 8907554.6875, 8908390.625, 8923435.9375, 8930298.4375, 8933185.9375, 8934432.8125, 8934475.0, 8934931.25, 8935390.625, 8937403.125, 8938556.25, 8939881.25, 8961251.5625, 8961270.3125, 8965768.75, 8966612.5, 8970714.0625, 8973457.8125, 8973815.625, 8992179.6875, 9000093.75, 9049690.625, 9063565.625, 9102270.3125, 9104339.0625, 9105096.875, 9109176.5625, 9109215.625, 9110104.6875, 9142848.4375, 9143515.625, 9154596.875, 9160628.125, 9161179.6875, 9161443.75, 9162289.0625, 9164337.5, 9166762.5, 9193487.5, 9194373.4375, 9196396.875, 9212995.3125, 9213076.5625, 9216192.1875, 9220053.125, 9223507.8125, 9229953.125, 9245812.5, 9247535.9375, 9288956.25, 9292062.5, 9292984.375, 9294929.6875, 9296375.0, 9299501.5625, 9341264.0625, 9341450.0, 9370353.125, 9371515.625, 9371731.25, 9372764.0625, 9398310.9375, 9405759.375, 9406070.3125, 9408159.375, 9409629.6875, 9411896.875, 9414056.25, 9427857.8125, 9427973.4375, 9427985.9375, 9428423.4375, 9430673.4375, 9430732.8125, 9432729.6875, 9433740.625, 9435090.625, 9435567.1875, 9440359.375, 9440651.5625, 9440668.75, 9441643.75, 9442596.875, 9444670.3125, 9447843.75, 9466703.125, 9472181.25, 9472564.0625, 9472720.3125, 9472739.0625, 9474223.4375, 9474231.25, 9480590.625, 9486275.0, 9486342.1875, 9486625.0, 9488676.5625, 9538037.5, 9575796.875, 9619153.125, 9638823.4375, 9797857.8125, 9977745.3125, 9982857.8125, 9986442.1875, 10037198.4375, 10038057.8125, 10074335.9375, 10133864.0625, 10143346.875, 10149317.1875, 10165540.625, 10165556.25, 10168157.8125, 10223342.1875, 10223345.3125, 10249812.5, 10291953.125, 10302829.6875, 10313523.4375, 10314862.5, 10314954.6875, 10436634.375, 11152448.4375, 11157092.1875, 11157189.0625, 11162209.375, 11162621.875, 11163150.0, 11163610.9375, 11163628.125, 11165470.3125, 11166510.9375, 11171976.5625, 11172332.8125, 11172792.1875, 11172831.25, 11178904.6875, 11178973.4375, 11181482.8125, 11182754.6875, 11185362.5, 11186406.25, 11227615.625, 234330389.0625], [51.81348810622824, 56.62203663740266, 57.62906380130759, 48.50108498856048, 43.35535157667983, 9.726341720934345, 79.78929455077181, 10.965941607075914, 7.926419310224667, 8.242055390139042, 14.940859168846632, 63.88618642590539, 20.7799595245082, 10.447089989377108, 24.29186053908166, 38.806204568636694, 22.35022506127917, 74.27152245989441, 5.410256405656962, 5.7070617269358195, 84.77538267534372, 16.603952364345865, 58.04415077081655, 20.70212551964449, 103.17966533938603, 56.78493717008509, 31.597136559246113, 69.70941598408486, 6.940769684319742, 5.409236844584782, 7.583595537888259, 7.916863738510844, 77.71228783281455, 6.119546215289333, 75.66129829916895, 6.482267279693462, 148.73075980086634, 32.70850108971895, 60.848619718547376, 36.99127845927031, 60.314211054881994, 23.831910021641267, 7.143700434358464, 20.163701867445525, 63.10187516042372, 32.26194919744282, 34.89517575229515, 14.9814297748373, 110.72144136874016, 7.092439797971066, 145.6475993218524, 64.81968178578268, 19.241496631881347, 45.60253522939462, 14.003891108013244, 60.526570355753556, 199.6672577878265, 27.632861081892564, 135.0523828956577, 26.43208835050023, 25.049123652235274, 62.807505682620146, 23.251699753362587, 34.41809012540902, 5.306345667236003, 32.8277763718281, 18.79437974993178, 23.70440402704764, 97.44094489849495, 35.40733435597752, 14.194909115414596, 57.99577124676082, 12.592576347588308, 7.29229056467497, 7.156431969935829, 19.140503376524737, 78.99713792006374, 5.817690921606084, 190.49241989921853, 5.1503577239851825, 6.616791911643514, 69.23795959582202, 54.22207006580188, 12.194799388175717, 30.014891232530424, 35.00190074269995, 90.76876295298422, 59.110097704007714, 42.015509628911246, 123.41528444156673, 6.205938083788943, 66.24106374423837, 43.53327060869927, 29.136431249748075, 7.411992408491051, 21.77802627274504, 82.98374865436996, 18.719715676932857, 80.15783189645876, 17.896059350779453, 5.399464659206118, 59.59456339897545, 48.44260776065721, 126.54185796335301, 40.900164229384345, 55.79019598596, 200.7497971066636, 8.154370099255098, 23.518834778429706, 42.727099523868226, 22.014477748205653, 45.06828080360835, 14.905589726700798, 44.255877758511296, 12.96567472944883, 75.54465664483375, 46.44664425386315, 6.652166193737166, 24.850354323972862, 6.9341728705504915, 39.88640579727155, 8.02932797756475, 37.634324033286724, 14.983788198297749, 184.08684837581887, 15.495595940327412, 31.11702584253633, 22.728907744319304, 39.02434330072693, 151.6273446978982, 5.3438246880055615, 75.95724110437288, 32.74613329872292, 6.529382763555912, 42.875397955293195, 64.92651657221374, 120.72486156910088, 63.202080534292804, 24.585414316921728, 9.987890133470826, 9.564371877640038, 31.2914336292801, 5.211814636782879, 9.866568965765197, 5.576382654281494, 184.40100488174366, 14.827430218194852, 12.72664077044182, 78.41692648750767, 5.0464077447185804, 110.49385245465112, 25.679504897630114, 69.69837729818582, 129.94244804862632, 21.20658140190226, 55.966960029613986, 58.00268436766175, 60.07057614784551, 9.321461433571242, 67.51078424083141, 67.2671988221577, 14.96821316481877, 26.300563563065914, 100.46423641697083, 10.590757035957242, 31.169865527964934, 18.740261306822855, 6.151284364587184, 6.7680088172241675, 58.262068161792364, 119.8891144236946, 12.55653593705549, 86.28790324586981, 9.758381577448963, 50.861393297039896, 12.584234261845566, 17.261661645607397, 14.967526823417714, 5.026494662445916, 29.84006551836561, 16.28610313992371, 120.43809188073318, 55.9114366289553, 31.522941354682384, 56.70849174462255, 8.432660928231943, 15.248793018799136, 9.905828848927642, 22.317974234661023, 24.52975827218481, 77.26135352871862, 7.679742934528872, 5.536849146880723, 111.99802698371754, 170.57515001703052, 8.519588494304687, 23.671297585764556, 53.061267964752176, 106.99105483358272, 88.19965971083585, 104.41300431542408, 25.059766962814653, 38.93438805298729, 47.613472887124225, 58.35718825552347, 18.552625867575898, 27.853050137150703, 14.92436999700882, 31.653312104556864, 24.04368639765979, 6.920154643079342, 54.038699207901246, 15.948869170000881, 11.098464261072388, 40.836265042816414, 15.291699524602594, 66.02073950949571, 40.90295074915835, 111.51335705134743, 82.38837788620863, 122.09811600989498, 30.53734096095979, 24.086392401047384, 8.68213297553139, 15.995439164097425, 74.06651149527139, 46.24744717936815, 64.88277980953387, 59.784953354436034, 42.99346359455612, 6.804010181660518, 27.942782439746182, 34.03121337683676, 28.699287577219437, 79.0639971185871, 88.84093731877437, 60.60716459699509, 13.813342194677299, 16.220924445159824, 25.964786801054125, 76.68970547446122, 7.044191682691083, 109.41554293354903, 38.20124802211757, 12.742948632501157, 17.60901598005534, 37.88932581767814, 23.93199679473661, 23.867623220152293, 47.516810348298435, 58.593433437296426, 46.26036070496309, 83.77958847330014, 17.10921595791958, 8.126900220909565, 17.08591502425818, 56.760607264121724, 5.057876760100074, 61.291019175274826, 29.04816305048524, 13.154846989397651, 18.32607984074618, 22.34667937798447, 16.516863363390545, 84.1765957292492, 46.82038247653598, 8.89272168455071, 42.04921340649878, 67.41002687797133, 35.1915196411673, 10.945965770467062, 6.351561119614264, 82.03077547193485, 33.04788056667796, 89.86402014510662, 7.470731837735218, 20.05792155941263, 48.68732797089058, 27.33163961435482, 25.497274834857752, 6.919065420390735, 31.632615941416166, 28.232848678564018, 101.05029778784586, 44.847590670040546, 32.28363858058747, 12.561535924386922, 9.47854138650646, 14.739963628902599, 42.587665335186834, 43.829180052390235, 19.700209494620196, 25.1757563770073, 13.952496034030098, 19.584432295611713, 66.70170502856038, 15.953597493321569, 110.29996583529866, 165.22416407015504, 9.4469268712589, 72.56438486185816, 6.902880374515771, 45.131149677207496, 19.63510041654571, 6.223796717338818, 40.91739286818918, 26.77732120660465, 29.022169362119392, 5.38831235283806, 135.62752552663366, 46.39947221914649, 31.888392102797454, 98.50617530145283, 99.3312950675478, 64.71615041984622, 25.239271738633825, 66.29832334291697, 43.86300083287034, 51.32861787412561, 15.394422067002854, 63.253223481719054, 5.562433749733104, 13.460876039886406, 19.103864701949163, 23.19823477463338, 8.84110920323116, 87.19901491799251, 33.2752216318513, 98.16382041248009, 15.200962148884472, 15.009356772828912, 247.79752249095714, 95.9696076364444, 142.5165707821891, 11.624607324368032, 13.964889274591176, 59.69192150911728, 69.26790460270897, 7.270140330823709, 216.828350966362, 21.284009974917304, 55.79807558557228, 14.408989313299358, 189.36133723678591, 12.9881946328123, 5.640317832228084, 42.28870593086766, 16.381107965421933, 22.56343787269723, 54.63434918041493, 18.070343968521442, 39.56255233343896, 69.40653248079322, 55.46114732881176, 26.986036939193575, 48.51328173737565, 100.9411351954959, 7.014801133305018, 13.85580447817587, 22.7684003867358, 38.192612566983556, 14.921869074332642, 131.06339596781717, 15.628764486377301, 14.986561910708364, 5.729630491982268, 155.31966115322865, 52.54091579800794, 5.239507394275367, 13.630404346736027, 16.283536055845126, 47.35316899632216, 30.260234659094298, 38.69557065195784, 129.8402429037319, 190.7463668981214, 25.404880205309944, 91.60562886960308, 16.284323005486936, 36.3264354275434, 77.74791057355736, 48.8388922920996, 19.81994688840592, 137.77150298260256, 20.961108533500102, 44.61344953495759, 22.994405138422998, 30.959238568505096, 59.27359889581118, 25.528473071387506, 27.414823578772754, 10.401065576596677, 107.32969628980362, 96.63994680826636, 85.24702431152213, 67.62421143146715, 5.202554697601524, 55.211800662266064, 34.299612864148116, 16.124209701014752, 10.431199137866615, 10.302505561600428, 11.4754255560753, 5.209226674787426, 93.79042266912407, 94.00752004769924, 63.63522116953205, 90.62055169078602, 14.23821219400159, 27.877088994850734, 9.729109041025946, 23.382653984276335, 78.52855309519985, 75.7082390166627, 28.718701199102956, 7.4286483703518655, 5.517260330617119, 11.19284684688678, 22.564067710503725, 15.17760784794669, 61.66207707885458, 11.893556021869946, 9.1323153846641, 80.00333689971033, 18.60328291136078, 123.01040118599427, 58.09014744256977, 51.52309898653968, 19.481675641434208, 17.78199729151843, 39.584061911291094, 49.7082864488648, 7.98301613046211, 25.759685653082705, 18.996725836978683, 49.86692083652133, 72.74820582696256, 59.08193509348524, 159.70534109916514, 66.76726490752934, 139.00006685268986, 51.41417648309728, 28.37594975446625, 80.2284102996678, 78.82741634178593, 9.674857874985516, 48.02440593010413, 23.17873462649178, 15.152254765297396, 73.39096904205728, 54.62869186804164, 29.6211013160715, 54.45973132077428, 15.930602816168351, 9.01411323064112, 30.064701268322356, 70.68833501723931, 45.958307159043635, 17.422444006904072, 32.81026387028675, 50.763480522940455, 35.05645424325104, 58.22440650154074, 111.70911267449314, 19.576990895678858, 50.554465591072244, 43.77854493710124, 65.06698297005913, 43.01775832802294, 47.22983322308236, 173.71151378115567, 6.814572732297812, 34.56913121437905, 10.124231657299264, 45.90071748408788, 34.6870801421575, 19.767249831838484, 115.95834757322193, 8.296249613385562, 40.95440984236482, 44.06164558213468, 19.568606663774936, 5.149567637972924, 70.36437466479079, 24.57678448002094, 43.62616201227873, 32.744697922305136, 29.194309541581198, 11.187201366690207, 5.298980840153539, 27.211288768652704, 54.6723080579429, 8.152655571936277, 62.85068215284454, 79.05841657596878, 27.55115278174349, 84.91716908457953, 38.88562737307747, 62.26919687295597, 31.921980103506172, 6.15601114912261, 73.94640832755499, 37.56026783061372, 12.385920754241566, 37.976828896559574, 10.264629248428411, 41.0355882980313, 31.223808904927193, 11.241487324098275, 34.83993879847457, 8.614674146646967, 20.863625310055983, 9.468359690648798, 11.448846957192098, 11.990084852207213, 71.3207729459514, 14.242203797458727, 99.20187817869977, 13.123663409117139, 29.330647406471137, 20.389631108445077, 26.5539228867947, 60.17244154024156, 7.289534810055455, 19.062203319646482, 15.738167091318862, 77.55062129180175, 21.473403049058543, 46.31914178335928, 47.33614249670919, 54.62035806625535, 15.00944046125685, 5.588106869837932, 143.41996485323313, 54.65731205387098, 91.46006392799526, 55.169910927793836, 18.600060399541732, 22.550692824568927, 32.287260651611476, 25.40328413194674, 111.19817718481526, 62.7515613122402, 11.094837113708074, 23.770977741236457, 43.13590247887752, 10.55952330501137, 104.67910669719637, 72.33307303490449, 17.47589986011287, 32.801614107337635, 13.764921699644457, 75.59183388229627, 8.361615184959154, 33.44323636399481, 74.3592973082221, 30.599998474755484, 18.383460678753295, 7.815701549756816, 53.68998017137297, 54.71767575156547, 5.080515633966628, 14.346073131927884, 31.782492828829067, 65.66081231807345, 71.96655100344806, 17.80723750818762, 69.88330763746974, 52.05488265768676, 15.332093552286858, 82.69791359546939, 16.419153540877492, 57.17424896664289, 70.68944373729653, 12.57005734430867, 17.717748793979087, 7.042919156202689, 54.87384809153163, 5.370090144459559, 65.84648482320769, 7.8587750700915295, 10.567175117311077, 19.291536854303907, 12.521286530286538, 17.54943437081029])
Detected energies during the discharge + Energy spectrum
multiplot(icon_fig, T_int_first,E,xle,Etot)