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
import matplotlib.cm as cm
#from matplotlib.mlab import griddata
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" t3pa2cls_XV_pc - zkousim vyzobat vysoke energie (jednotlive interakce) - funkce single_interaction. Dale delam prumernou velikost stopy stopy interakce pro danou energii - funkce size_of_interactions_average. Dale delam spektra 2 casti vyboje podle zadaneho casu - primarne pro double breakdown, tj. funkce energy_spectra_doublebreakdown
#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 = 44395 #test discharge for which the notebook will definitely work
shot_no = 47173
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
calib[j][i]=float(word[j]) #j = radek, i = sloupec0 - pouze pro stavajici kalibraci - verze XV
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))
ClmNo.append(int(int(matrix_index[i]))//int(256)) #ver XV - bude pro novou kalibraci - nyn9 to bere 3patnou kalibraci jednotlivych pixelu (cislovani radku a sloupcu stejne jako v pixetu)
RowNo.append(int(int(matrix_index[i]))%int(256)) ##ver XV - bude super pro novou kalibraci - odpovida radkum a sloupcum v pixetu. Nyni bere spatne kalibrace pixelu (viz fce load_calib)
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 Timewalk_parameters_Si():
#SI - korekce na TimeWalk - parametry
A = -1.21988
B = 4.33638
C = 29.5075
D = 1
sigma_A=0.7013
sigma_B=0.1366
sigma_C=4.753
sigma_D=0
return A, B, C, D, sigma_A, sigma_B, sigma_C, sigma_D
def Timewalk(E,T):
i=0
A, B, C, D, sigma_A, sigma_B, sigma_C, sigma_D = Timewalk_parameters_Si()
while i < len(T):
timewalk=float(0)
timewalk = (C / (E[i] - B)) + A
if(timewalk<0):
timewalk=0
T[i]=T[i]-timewalk
i=i+1
return E,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=[]
N_tot=[]
eventNo=0 #for high_energy_event function
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))
N_tot.append(len(TCl)) #new in ver. XV
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')
#eventNo=single_interaction(eventNo,Etot, Tfirst, ECl, TCl, RowNoCl, ClmNoCl,path)
i=i+1
t3pa_cls.close
return T_first, E_tot, N_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, drawstyle='steps-mid')
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.plot(T_hit, count, drawstyle='steps-mid')
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.fill_between(xmean, count,step='mid') #pre mid post
plt.plot(xmean, count, drawstyle='steps-mid')
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, drawstyle='steps-mid')
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].fill_between(x2, y2,step='mid') #pre mid post
ax[1].plot(x2, y2, drawstyle='steps-mid')
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
def single_interaction(eventNo,Etot, Tfirst, ECl, TCl, RowNoCl, ClmNoCl,path): # ver XV
#tuto funkci volam ve funkci file_t3pa_cls_new(file_t3pa_cls,T):
#This function is calling in function file_t3pa_cls_new(file_t3pa_cls,T)
high_E = 1500 #[keV] - zadani, jaka energie je pro me vysoka
if(Etot>=high_E or len(ECl)>15):
#if (len(ECl)>15): #len(ECl) = pocet pixelu dane interakce
print("Total energy of track: "+str(Etot)+" keV\n")
A, B, C, D, sigma_A, sigma_B, sigma_C, sigma_D = Timewalk_parameters_Si()
######################
#SI - rekonstrukce z(t) - parametry
a=0.0193947
b=-0.0273934
sigma_a=0.0004163
sigma_b=0.009832
#######################
time=[]
sigma_time=[]
time_min = []
time_max=[]
z_rec=[]
z_rec_min=[]
z_rec_max=[]
sigma_z_rec=[]
for i in range(0, len(TCl)):
time.append(TCl[i] - Tfirst)
#chyba urceni casu = chyba timewalk ->
sigma_time.append(np.sqrt(((sigma_C / (pow((ECl[i] - B), D)))*(sigma_C / (pow((ECl[i] - B), D)))) + (((sigma_B*C*D) / (pow((ECl[i] - B), (D + 1))))*((sigma_B*C*D) / (pow((ECl[i] - B), (D + 1))))) + (((sigma_D*C*math.log(ECl[i] - B)) / (pow((ECl[i] - B), D)))* ((sigma_D*C*math.log(ECl[i] - B)) / (pow((ECl[i] - B), D)))) + (sigma_A*sigma_A)))
time_min.append(time[i] - sigma_time[i])
time_max.append(time[i] + sigma_time[i])
#//
#//rekonstrukce hloubky interakce
z_rec.append(a * time[i] + (b))
sigma_z_rec.append(np.sqrt(((time[i]*time[i])*(sigma_a*sigma_a)) + (sigma_b*sigma_b) + (a*a)*(sigma_time[i]*sigma_time[i])))
z_rec_min.append(z_rec[i] - sigma_z_rec[i])
z_rec_max.append(z_rec[i] + sigma_z_rec[i])
#//
single_interaction_file=str(path)+'event'+str(eventNo)+'.txt'
single_interaction_2D_fig=str(path)+'2D_event'+str(eventNo)+'.png'
single_interaction_3D_fig=str(path)+'3D_event'+str(eventNo)+'.png'
with open(single_interaction_file, "w", encoding="utf-8") as f:
f.write('#\n')
f.write('# x_mean y_mean z_rec z_rec_min z_rec_max sigma_z_rec\n')
f.write('#E_tot='+str(Etot)+'\n')
f.write('\n')
for m in range(0,len(TCl)):
#print(str(RowNoCl[m])+' '+str(ClmNoCl[m])+' '+str(z_rec[m])+' '+str(z_rec_min[m])+' '+str(z_rec_max[m])+' '+str(sigma_z_rec[m])+' '+str(ECl[m])+'\n')
f.write(str(RowNoCl[m])+' '+str(ClmNoCl[m])+' '+str(z_rec[m])+' '+str(z_rec_min[m])+' '+str(z_rec_max[m])+' '+str(sigma_z_rec[m])+' '+str(ECl[m])+'\n')
f.close
############################### plot
#binwidth=1
if ((max(RowNoCl)-min(RowNoCl))>=(max(ClmNoCl)-min(ClmNoCl))):
rang=max(RowNoCl)-min(RowNoCl)
#bins=(range((min(RowNoCl)-1), (max(RowNoCl)+3), binwidth), range((min(ClmNoCl)-1), (min(ClmNoCl)+rang+3), binwidth))
x_min=min(RowNoCl)-1
x_max=max(RowNoCl)+2
y_min=min(ClmNoCl)-1
y_max=min(ClmNoCl)+rang+2
else:
rang = max(ClmNoCl)-min(ClmNoCl)
#bins=(range((min(RowNoCl)-1), (min(RowNoCl)+rang+3), binwidth), range((min(ClmNoCl)-1), (max(ClmNoCl)+3), binwidth))
x_min=min(RowNoCl)-1
x_max=min(RowNoCl)+rang+2
y_min=min(ClmNoCl)-1
y_max=max(ClmNoCl)+2
###############$$$$$$$$$$$$$$$$$$$$
rows, cols = (x_max-x_min, x_max-x_min)
#arrECl = [[0]*cols]*rows
arrECl= [[0] * cols for _ in range(rows)]
for i in range (x_min,x_max):
for j in range (y_min,y_max):
for k in range(0,len(RowNoCl)):
if ((i==RowNoCl[k]) and (j==ClmNoCl[k])):
#print(str(i)+" "+str(j)+" "+str(RowNoCl[k])+" "+str(ClmNoCl[k])+"\n")
arrECl[i-x_min][j-y_min]=ECl[k]
arrECl=np.transpose(arrECl)
arrECl[arrECl == 0] = np.nan
#2D plot
plt.imshow(arrECl,cmap='jet', interpolation='none', origin=[(x_min-0.2),(y_min-0.2)], aspect='equal', extent=[x_min-0.2,x_max,y_min-0.2,y_max])
###############$$$$$$$$$$$$$$$$$$$$
cb=plt.colorbar(pad=0.005)
plt.tick_params(axis="x",direction="in")
plt.tick_params(axis="y",direction="in")
cb.ax.tick_params(axis='y', direction='in')
cb.set_label('Energy in pixel [keV]')
plt.xlabel('x [pixel]')
plt.ylabel('y [pixel]')
plt.title('$E_{tot}$ = '+str(round(Etot, 2))+' keV, $N_{tot}$ = '+str(len(ECl)))
plt.savefig(single_interaction_2D_fig, dpi = 1000)
plt.show()
plt.close()
############################### plot
############## 3D plot
# Creating figure
fig = plt.figure(figsize = (16, 9))
ax = plt.axes(projection ="3d")
# Add x, y gridlines
ax.grid(b = True, color ='grey', #
linestyle ='-.', linewidth = 0.3,
alpha = 0.2)
# Creating plot
sctt = ax.scatter3D(RowNoCl, ClmNoCl, z_rec,
alpha = 0.8,
c = ECl,
cmap = 'jet',
s = 4000, #size of bubbles in plot
marker ='o')
plt.title('$E_{tot}$ = '+str(round(Etot, 2))+' keV, $N_{tot}$ = '+str(len(ECl)))
ax.set_xlabel('x [pixel]', fontweight ='bold')
ax.set_ylabel('y [pixel]', fontweight ='bold')
ax.set_zlabel('z [mm]', fontweight ='bold')
cb=fig.colorbar(sctt, ax = ax, shrink = 0.5,aspect = 10,pad=0.00005) #
cb.ax.tick_params(axis='y', direction='in')
cb.set_label('Energy in pixel [keV]', fontweight ='bold')
plt.savefig(single_interaction_3D_fig, dpi = 1000)
# show plot
plt.show()
plt.close()
############## 3D plot
eventNo=eventNo+1
return eventNo
def size_of_interactions_average(Etot, Ntot,file_hist): #ver XV
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=[]
count=[]
nop=[] #number of pixels
nop_mean=[] #mean number of pixels in dE
sigma=[] #root mean square error of the mean - stredni kvadraticka chyba prumeru
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.append(0)
nop.append(0)
nop_mean.append(0)
sigma.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
nop[E_index]=nop[E_index]+Ntot[i] #ver XV
for l in range(0,pocet):
if nop[l]!=0:
nop_mean[l]=float(nop[l])/float(count[l])
#####Computing sigma
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])):
if nop_mean[E_index]!=0:
sigma[E_index]=sigma[E_index]+((float(Ntot[i])-float(nop_mean[E_index]))*(float(Ntot[i])-float(nop_mean[E_index])))
for l in range(0,pocet):
if nop[l]!=0 and count[l]>1:
sigma[l]=np.sqrt(sigma[l]/(float(count[l])*(float(count[l])-1)))
if nop[l]!=0 and count[l]==1:
sigma[l]=10
#####Computing sigma
#####write to file
with open(file_hist, "w", encoding="utf-8") as hist:
hist.write('# x_mean [keV] mean_size_of_interaction [pixel] sigma_mean_size_of_interaction\n')
for m in range(0,len(xmean)):
hist.write(str(xmean[m])+' '+str(nop_mean[m])+' '+str(sigma[m])+'\n')
hist.close
#####write to file
plt.rcParams.update({'font.size': 20})
fig, ax = plt.subplots(figsize =(10, 7))
#plt.fill_between(xmean, nop,step='mid',color='blue', alpha=0.3) #pre mid post
#plt.fill_between(xmean, nop,step='mid') #pre mid post
plt.plot(xmean, nop_mean, drawstyle='steps-mid')
plt.errorbar(xmean, nop_mean, yerr = sigma,fmt ='.', linewidth=0.7)
plt.title(detector+', #'+str(shot_no))
plt.xlabel('Energy [keV]')
plt.ylabel('Average size of interaction [pixel]')
plt.xlim(0,500)
plt.ylim(0,17)
#ax.set_yscale('log') #log scale y
caption = '# x = energy in keV, dE= '+str(dE)+' keV'
plt.savefig(figure_size_interaction, dpi = 1000)
return
def energy_spectra_doublebreakdown(Etot, Tfirst, file_hist):
#this function separates discharge into two parts acording to time Tsep and creates energy spectrum for each part.
#This is for discharges with double brakdown
Tsep=14636000 # [ns]
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_first=[]
count_second=[]
for l in range(0,pocet):
count_first.append(0)
count_second.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])):
if(Tfirst[i]<Tsep):
count_first[E_index]=count_first[E_index]+1
else:
count_second[E_index]=count_second[E_index]+1
caption = '# x = energy in keV, dE= '+str(dE)+' keV'
with open(file_hist, "w", encoding="utf-8") as hist:
hist.write('#\n')
hist.write('#'+str(caption)+'\n')
hist.write('# x_mean count_before_2nd_breakdown count_2nd_breakdown\n')
hist.write('\n')
for m in range(0,len(xmean)):
hist.write(str(xmean[m])+' '+str(count_first[m])+' '+str(count_second[m])+'\n')
hist.close
plt.rcParams.update({'font.size': 20})
fig, ax = plt.subplots(figsize =(10, 7))
#plt.fill_between(xmean, count_first,step='mid') #pre mid post
plt.plot(xmean, count_first, label='Before 2nd breakdown', drawstyle='steps-mid')
plt.plot(xmean, count_second, label='2nd breakdown', drawstyle='steps-mid')
plt.legend(loc='best')
plt.title(detector+', #'+str(shot_no))
plt.xlabel('Energy [keV]')
plt.ylabel('Count')
plt.xlim(0,500)
ax.set_yscale('log') #log scale y
plt.savefig(figure_energy_spectra_doublebreakdown, 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'
size_interaction= 'H03-W0051_shot_'+str(shot)+'size_interaction.txt'
file_energy_spectra_doublebreakdown= 'H03-W0051_shot_'+str(shot)+'energy_spectra_doublebreakdown.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'
figure_size_interaction= 'H03-W0051_shot_'+str(shot)+'size_interaction'
figure_energy_spectra_doublebreakdown= 'H03-W0051_shot_'+str(shot)+'energy_spectra_doublebreakdown'
#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)
E,T=Timewalk(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, Ntot = 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);
([4370906.985450057, 4401642.151821744, 6642965.625, 6663316.69858955, 6714003.623722497, 6930258.334710694, 7053098.4375, 7053612.201971535, 7096127.995371239, 7107152.968689946, 7116116.658681988, 7116151.452955108, 7150375.728765635, 7154083.593744998, 7191771.571096803, 7192735.113326114, 7193411.850192204, 7193599.684568938, 7196331.3073915895, 7196796.875, 7199158.920746523, 7199322.22187931, 7199757.11953828, 7199776.100170928, 7201065.9149036575, 7201490.7086707195, 7205540.625, 7235495.023270311, 7269549.200062414, 7288315.54869578, 7288330.026119154, 7288871.820926049, 7289129.75631135, 7289929.68196971, 7290193.75, 7292035.9375, 7293314.0625, 7343070.290665172, 7356006.083369717, 7358385.984983338, 7361715.625, 7376034.026918878, 7386516.9590579765, 7388017.624289471, 7388257.865540917, 7389642.1875, 7390004.6875, 7391196.74890853, 7400000.0, 7400494.115052949, 7403277.847187919, 7422767.137755564, 7423157.272072568, 7424452.904899001, 7425651.977251267, 7426624.721254924, 7427088.901412703, 7427770.3125, 7428715.236016777, 7439048.771867921, 7441679.060089906, 7442406.25, 7442427.352999908, 7449057.8125, 7465348.4375, 7469086.5638612965, 7507679.140538246, 7510620.3125, 7511826.173344281, 7512110.9375, 7514878.125, 7515577.319479505, 7520834.483830826, 7522225.786499193, 7523441.239371483, 7526222.657177177, 7532196.875, 7534794.501914006, 7538678.125, 7539034.284582891, 7542057.2245799545, 7543278.125, 7570494.92974501, 7572842.031656012, 7583374.372387435, 7584804.379707441, 7625821.875, 7641581.063056312, 7642803.07420849, 7651960.840544706, 7653521.875, 7654429.6875, 7654968.75, 7654970.630118619, 7655728.244157148, 7656408.697737158, 7680025.757892199, 7690480.150590246, 7701178.113120784, 7701192.753691563, 7713660.860902538, 7734655.847202574, 7745849.523905499, 7865476.819754555, 7882255.472506998, 7895451.054038457, 7896796.408729821, 7910520.122597249, 7934164.0625, 7934303.125, 7934504.973021128, 7935088.500478798, 7952112.06947754, 7957538.451858296, 7959987.5, 7994660.9375, 7994685.276937356, 8068406.25, 8074539.907032518, 8075787.007805439, 8116259.633523258, 8118475.59684815, 8121499.140046374, 8124005.358732556, 8125144.649671303, 8128156.25, 8136995.816218386, 8148165.974978136, 8152506.25, 8152522.845443851, 8173003.703559094, 8178208.29708829, 8181559.698804775, 8181819.705834043, 8209320.048532821, 8210435.571691213, 8212028.811160904, 8212761.262853533, 8216490.625, 8217031.704652952, 8218684.351456969, 8219386.257854802, 8223260.527596575, 8225493.362878096, 8230212.5, 8231764.120714447, 8246566.4142213715, 8248562.5, 8255829.031956044, 8294808.961777639, 8294875.0, 8430109.375, 8447918.75, 8475270.907905823, 8482191.172732392, 8484088.427129697, 8501050.0, 8529511.933860427, 8619590.19466736, 8676793.476654375, 8742379.527647246, 8755865.625, 8758207.8125, 8791953.125, 8794552.102201877, 8916108.601176314, 8930614.487084713, 8938013.047759065, 9042701.77365656, 9734796.875, 9768174.15434393, 9791544.32490409, 9791555.88615451, 9795314.024064625, 9810701.329294663, 9829053.595528541, 9876643.948951637, 9878500.611165665, 9880314.374538036, 9891695.3125, 9892146.70698553, 9894039.142360404, 9912626.912417432, 9915439.227974162, 9918721.080647735, 9928350.61920872, 9930188.178533822, 9932107.8125, 9932705.940063225, 9933759.29432163, 9935276.5625, 9935452.120716603, 9945640.339394318, 9991629.6875, 9993865.625, 9996784.375, 9998796.406151779, 10002016.699568456, 10002742.877964692, 10002913.026661744, 10003151.5625, 10003392.1875, 10006296.875, 10014596.875, 10021793.75, 10021812.5, 10024765.082758985, 10026245.3125, 10030337.5, 10031370.710875385, 10032823.746696731, 10033073.32668894, 10033448.4375, 10034525.630234284, 10034989.0625, 10036213.438400047, 10044629.627967633, 10045548.075341942, 10045803.037447784, 10048931.324968671, 10050116.40016061, 10050151.555492233, 10050645.3125, 10051381.25, 10052116.128607769, 10052845.210785516, 10056520.3125, 10056867.1875, 10887265.47640752, 10892126.40415062, 10927485.9375, 10944489.209436284, 10949979.529715896, 10950004.401189402, 10950025.798215725, 10965446.260752648, 10966537.103543377, 10972350.0, 10973173.19537529, 11001196.875, 11006078.946275368, 11008869.881367391, 11013060.255192166, 11016687.43194056, 11046725.0, 11048156.352954837, 11055316.75535922, 11055544.452010125, 11055633.196353342, 11056407.93531933, 11064223.844798649, 11070676.343548296, 11078079.608755352, 11091354.6875, 11091920.830408933, 11093480.846248662, 11095496.463874392, 11095551.268008763, 11098631.25, 11098910.317764658, 11099423.4375, 11100442.1875, 11101132.396507833, 11101333.6403874, 11101917.1875, 11102537.06015821, 11106158.589054776, 11109041.046375502, 11109212.710141355, 11109498.4375, 11110175.228071736, 11110350.0, 11110913.250803359, 11111907.049762974, 11112196.555557564, 11112875.89541868, 11112913.782314545, 11113955.844800359, 11114473.24574512, 11114663.986409917, 11115136.845443673, 11115153.901898015, 11116056.26216547, 11118370.3125, 11124248.189748261, 11124778.125, 11129670.312054852, 11129675.691570096, 11138170.9252542, 11139034.375, 11139059.90659096, 11139158.983596966, 11139695.053165518, 11140049.293818131, 11140269.74356031, 11140288.714561107, 11141439.769660098, 11142493.75, 11142565.625, 11143547.440018706, 11144043.75, 11144136.58535522, 11144220.113607628, 11144767.165604634, 11145532.8125, 11145580.569883566, 11148386.619395636, 11149627.33041523, 11150308.100710643, 11151176.52870959, 11152032.881884182, 11154310.9375, 11154350.735609371, 11174431.412410999, 11180742.145439327, 11183369.185650334, 11185373.29005379, 11187387.5, 11191871.528048854, 11192976.73247024, 11193193.787631847, 11194099.209976625, 11194403.333277814, 11195170.447303236, 11196116.4904081, 11202193.75, 11219476.65320886, 11224211.945712881, 11225457.11673164, 11225843.497508086, 11225997.481350483, 11226702.29491284, 11229524.381997721, 11242492.1875, 11253125.259991905, 11288442.1875, 11800842.906021459, 11872081.896593729, 11874568.034772618, 11874867.142378781, 11884096.71926952, 11959488.981184226, 12024027.730578471, 12281457.8125, 12287556.145442424, 12288352.079146238, 12290589.0625, 12291848.4375, 12291984.038777106, 12854553.121820074, 13003184.375, 13056356.3863371, 13374092.729754575, 13380858.258861706, 14426329.919628857, 14532584.287025332, 14534137.708607567, 14534312.338084074, 14534899.202439215, 14535618.75, 14535838.397900512, 14536222.560375724, 14536230.895877458, 14536411.705778623, 15685228.44735187, 15685310.325857138, 15686547.59745424, 15687112.5, 15687816.359273857, 15688972.339160439, 15689326.501496736, 15690712.5, 15690991.3085225, 15691020.704992473, 15691190.625, 15691676.498879122, 15692127.842682282, 15692414.407318274, 15693454.6875, 15693930.56406759, 15694146.875, 15694357.536047291, 15694605.757175624, 15695165.001316732, 15695496.453088054, 15696461.672502954, 15696674.894050976, 15697164.018021712, 15697376.046993967, 15697744.11303578, 15697870.961353773, 15697921.965189563, 15698121.72512986, 15699089.817694873, 15699124.084698012, 15699234.433472095, 15699246.144438297, 15699557.301652448, 15699620.638632452, 15699768.428485982, 15700204.658247061, 15700212.397664696, 15700831.25, 15700971.353570806, 15701049.8661642, 15701547.29357089, 15701966.746976022, 15702043.802931946, 15702056.938088384, 15702148.638625465, 15702409.505848316, 15702622.497500451, 15702878.554340694, 15702901.5625, 15703110.9375, 15703128.741658365, 15703221.875, 15703249.27948925, 15703274.205391267, 15703306.382358257, 15703381.25, 15703401.11535219, 15703646.438504538, 15703666.400298053, 15703865.416057156, 15704320.3125, 15704513.894090174, 15704659.106722467, 15704681.88921501, 15704754.218747236, 15704952.203091998, 15705284.375, 15705356.25, 15705386.779535128, 15705454.516845219, 15705467.072659254, 15705608.272712547, 15705757.352783075, 15705953.057990942, 15706176.92454207, 15706196.875, 15706224.748572586, 15706318.75, 15706344.73692682, 15706624.57823919, 15706855.118711943, 15707085.202067297, 15707085.9375, 15707091.98296968, 15707118.04083444, 15707189.0625, 15707304.641151998, 15707460.551209146, 15707595.3125, 15707768.602982787, 15707780.697172303, 15708007.503837202, 15708023.012681996, 15708156.112791374, 15708402.537045939, 15709110.996724086, 15709318.75, 15709417.1875, 15709755.830126714, 15710076.055479491, 15710085.055315007, 15710123.664015342, 15710128.125, 15710339.889827076, 15710841.123689804], [22.283700870262976, 71.29255839278632, 143.29386985097088, 129.09567172360514, 17.25753825750744, 7.265841804337914, 44.10651106109051, 44.804865349336396, 24.959559164960137, 69.82813238517652, 7.422551833398996, 90.9020919051817, 10.034332756842689, 49.654899530057264, 13.897233012320557, 128.8152439923786, 56.252793188274985, 52.94731365071632, 6.775018699369774, 80.859948419704, 10.688583006724915, 11.716944009507053, 5.664031127784215, 18.415594422216998, 11.613241197384639, 24.326705047810712, 47.1299788008898, 49.27174171743486, 12.57336605490755, 9.267706406429214, 18.14293437862477, 56.53546041501798, 69.7481362646095, 11.119073592548247, 48.01698765064474, 33.07465170767952, 61.885162015793654, 33.170073239680406, 42.6831199171466, 8.311847944270198, 84.65607483137092, 133.2411159098138, 24.7099568096961, 11.88674245369639, 15.14760539232215, 80.08247107980412, 90.91661674795986, 20.335611767069302, 28.845232799489978, 16.543044375682797, 22.284469378354437, 74.21938956590162, 12.273003407891014, 9.151980408286143, 5.637408770489818, 11.948462092939373, 25.70364920422355, 64.83296958020779, 34.23414362714183, 53.105844321030794, 5.886567832615302, 77.04213548145705, 5.49675040201165, 49.61304577634899, 38.62221328187108, 18.02248576201295, 21.037083353172235, 103.22740065817709, 45.44867718708274, 73.89213710946922, 46.9612386962259, 26.06751293469918, 9.425152918099155, 19.120579484947463, 17.946797012820834, 12.618715480772828, 32.375053502347654, 52.11738176135516, 34.86559997268159, 21.482578458733222, 10.318276635940002, 41.23467369732743, 27.956033376194323, 175.72460510934718, 12.989624673478081, 13.88519950284054, 94.31659218032178, 25.31093441625444, 184.2606797227177, 32.623350778980885, 64.69115795445597, 69.82638845058715, 30.46462043234086, 44.60746303702241, 38.96831068194086, 84.50038816776743, 18.91167157751262, 52.22810141557851, 70.56552503009499, 29.052640989062365, 27.09612773659959, 22.52083214109858, 18.859480736065787, 17.38206270247143, 19.10953452560232, 129.80150531703674, 13.419383209096843, 25.266909889691142, 71.06163914175997, 109.55199359295489, 16.15422855081927, 20.895940071230317, 22.215352390777905, 53.14535051938809, 38.11558786479696, 41.05020525130285, 20.028164110112854, 76.22870902647186, 19.56332653360357, 6.206953427242103, 34.11375442461396, 16.998422440203676, 12.437642275168827, 25.03296420181278, 73.99078065508789, 28.59152711284973, 12.018300983428512, 8.480748920339542, 39.43477292958727, 6.974054838508646, 148.9054463011399, 6.864267135519564, 22.340434712158945, 39.40774076470598, 5.520405076519686, 5.329541087984226, 18.42171200075748, 46.93838877114749, 71.7196807846474, 97.13283518454718, 28.067241718549557, 9.61781313372665, 13.57976352041721, 22.698212632414876, 103.01462049416413, 77.89844998352373, 75.03182865861703, 37.06326745983197, 8.832470492127927, 30.539817181973675, 46.94631800915591, 43.93685029523226, 60.98364927452251, 12.206150159825155, 17.540922808433848, 10.261283007344774, 49.870438302706816, 189.14743526974507, 29.764552588226906, 130.5537659865379, 34.26103699943704, 44.481869370148694, 70.25077736994145, 73.67905842984814, 9.833635857746803, 83.98825752214945, 16.85124936475946, 17.541080427502553, 5.406608169740955, 49.332408863039895, 20.77931363967012, 17.703456786624216, 25.44752997419343, 27.786383544098644, 8.16698795870275, 17.09995955142223, 9.505491027905514, 9.907812373167983, 13.88202935643761, 88.4642341663539, 25.597002206560195, 11.254871073604816, 16.467090828440337, 32.03807740214255, 5.757453489468561, 9.916286253792578, 18.361882578614114, 44.81222307565187, 60.20063256865164, 27.024711925576494, 62.60681162775956, 17.60316608848567, 21.57870287975486, 29.49372955256897, 51.584807615541564, 59.290069698687866, 53.06955172177685, 6.413230464156124, 58.42823836232246, 7.267136887531641, 38.66699380835186, 35.582311652293406, 39.995984990162825, 40.632197144425305, 35.40792318658168, 45.17800634167624, 6.201037610070379, 48.08141308026879, 32.15144668779353, 8.509112905416389, 5.7267227976476685, 40.24680119035002, 71.14424987939869, 5.862131838124469, 61.81246747718206, 21.289352064485556, 34.82089884419265, 6.693296034999568, 14.617981715921797, 5.401347767988265, 49.475420296802305, 59.71812175097059, 54.61293109011467, 49.74211058793186, 45.51697565488543, 5.806492402971044, 38.36761989265852, 77.51138627001629, 5.6058762005599245, 25.746096283514778, 56.17337609349262, 8.365838799975691, 9.20145858523198, 41.10198447703859, 10.111786389166426, 16.046558253691565, 7.465875311010168, 67.52527323908342, 57.245063830173834, 69.22016605103549, 16.15854558424287, 5.7827542837091785, 15.854721224238556, 12.02033673947286, 32.10845017691755, 15.34900330722561, 22.197838130824312, 5.081888445037329, 5.174398734497845, 11.325265832994615, 7.757507152421169, 14.167849129259677, 27.05849609392218, 56.71249718419828, 29.15757945997128, 10.550275731514686, 97.60748782776979, 14.721747515473483, 67.66183117261203, 13.009660310697774, 29.811385133637334, 90.04138194838016, 45.07122809001658, 8.778947430289103, 63.63421298353003, 8.985264343237123, 6.616126470855466, 7.763099845063115, 8.400920259874818, 38.805577401721436, 28.036368894740754, 64.43660709313161, 5.494941828358163, 6.620221542616029, 7.039937657584414, 7.962733725299693, 13.971276109793104, 27.258567444509058, 6.725818635933478, 90.56383360579275, 20.07844580392026, 154.41358605894493, 8.29302112395079, 50.92678245459923, 60.23710505433728, 50.099417307145785, 28.516411083440264, 12.413302234762561, 23.312674059627078, 46.14170987198445, 26.293479328050203, 30.382755880465314, 39.97689286427718, 19.656500535944453, 20.831893876846628, 35.35632004889862, 5.492959937923752, 47.22273082229768, 109.76986497833752, 67.13487289764039, 78.65120769432957, 31.661816072350412, 42.74788221323391, 79.7547194183971, 52.632228545482036, 6.634920073943298, 29.640147020105317, 12.585692448585828, 32.197851726168686, 27.87326799831269, 9.390768683700443, 83.85701426734754, 12.511854501883278, 15.598917835714284, 6.480518003432639, 16.91026118331345, 64.92499311588183, 54.561804615584386, 77.67653902149124, 5.954345510990449, 15.086910962138878, 50.590698131083215, 15.799600132249445, 9.448048705784771, 6.383099672197283, 54.80721990560485, 40.17960421255769, 20.968127765943827, 98.98133115349972, 32.45256849181412, 95.44113637839563, 59.40835043907332, 34.724277828646876, 48.48010469038597, 26.357409380566345, 75.64050958697794, 8.706981830303173, 9.945332440953377, 12.772861507970996, 96.49459116174678, 14.379399211055508, 5.932355203375923, 28.43512725915901, 33.13709492414711, 26.61564824092047, 67.90037314895035, 33.68259975468896, 42.099406779187895, 23.29881500726774, 95.41781864087457, 87.42766475257231, 37.76085347215292, 8.595775996229722, 9.73967631052791, 33.68252538003434, 26.898137623468802, 6.520297180814516, 60.52847600378677, 18.96258376258994, 60.951815202669025, 10.226712533613021, 12.399630585861324, 23.083173105886083, 7.339198458568743, 5.838222868138652, 38.42310399765716, 6.363004344537649, 37.96026214732988, 11.868273336260962, 26.86042423545439, 18.92547194199426, 38.47372003622269, 18.39521915986107, 68.27315579074778, 44.591245575450216, 25.77721606680774, 33.50367917003642, 9.641040235406303, 72.04317443898621, 32.71649004072345, 42.2468353423053, 20.994498535217605, 5.676095150711085, 36.750873627972815, 22.30912014189434, 77.85734671085596, 31.006040376762673, 27.67430586266942, 21.33980139268826, 59.51290286905544, 9.947743094177458, 15.296785920916827, 40.097364492226305, 5.495141628212468, 32.40415218126256, 15.169161804806127, 61.862030880265024, 13.296435004914137, 5.411089861490471, 84.24888609012716, 11.082288367770127, 26.65309339963455, 98.00109929195473, 13.267737190584185, 73.22963144381414, 5.106784476648492, 36.58818081164648, 5.2466291681473525, 15.056898132722294, 15.767836917486768, 15.464853475642103, 17.998021458270795, 16.876544512028303, 68.7742170892565, 30.01999466902902, 7.842615267992213, 174.9625743771764, 106.53315332562951, 18.984017150608132, 5.621408723283086, 75.90881012315745, 5.232800544721953, 32.70097557556719, 12.602754170385836, 25.45167075722335, 133.75859745113948, 16.021944739567324, 14.008884921183355, 78.51729497772402, 72.24711543604428, 8.657108601359342, 52.382997992750916, 40.179778971659374, 5.6623902323478115, 25.556633095348214, 26.444000699455522, 22.96734018446552, 7.005631551868722, 126.99978656938117, 7.739649888529293, 81.89199804949251, 5.283383510370966, 35.00780490597968, 20.770949464378162, 6.422948340537559, 19.52563495918708, 19.427316577970313, 35.91898530890696, 8.181300817391854, 104.52509175209495, 71.38306467282789, 45.71113098351882, 13.648644151799711, 97.00760278216308, 25.92359205815615, 5.584175362552783, 13.882511171317805, 23.08757445854359, 14.443112072625105, 10.31823538632858, 23.253624526581802, 65.43430598322809, 169.72696053060477, 87.01819374602925, 87.0421833730406, 88.25589599861519, 15.881396639551284, 34.47078022375518, 6.1785777527918, 17.257353276804142])
caption, xmean,count, xle, Etot = energy_spectrum(E_tot)
hist_file(E_hist, xmean, count, caption);
([4370906.985450057, 4401642.151821744, 6642965.625, 6663316.69858955, 6714003.623722497, 6930258.334710694, 7053098.4375, 7053612.201971535, 7096127.995371239, 7107152.968689946, 7116116.658681988, 7116151.452955108, 7150375.728765635, 7154083.593744998, 7191771.571096803, 7192735.113326114, 7193411.850192204, 7193599.684568938, 7196331.3073915895, 7196796.875, 7199158.920746523, 7199322.22187931, 7199757.11953828, 7199776.100170928, 7201065.9149036575, 7201490.7086707195, 7205540.625, 7235495.023270311, 7269549.200062414, 7288315.54869578, 7288330.026119154, 7288871.820926049, 7289129.75631135, 7289929.68196971, 7290193.75, 7292035.9375, 7293314.0625, 7343070.290665172, 7356006.083369717, 7358385.984983338, 7361715.625, 7376034.026918878, 7386516.9590579765, 7388017.624289471, 7388257.865540917, 7389642.1875, 7390004.6875, 7391196.74890853, 7400000.0, 7400494.115052949, 7403277.847187919, 7422767.137755564, 7423157.272072568, 7424452.904899001, 7425651.977251267, 7426624.721254924, 7427088.901412703, 7427770.3125, 7428715.236016777, 7439048.771867921, 7441679.060089906, 7442406.25, 7442427.352999908, 7449057.8125, 7465348.4375, 7469086.5638612965, 7507679.140538246, 7510620.3125, 7511826.173344281, 7512110.9375, 7514878.125, 7515577.319479505, 7520834.483830826, 7522225.786499193, 7523441.239371483, 7526222.657177177, 7532196.875, 7534794.501914006, 7538678.125, 7539034.284582891, 7542057.2245799545, 7543278.125, 7570494.92974501, 7572842.031656012, 7583374.372387435, 7584804.379707441, 7625821.875, 7641581.063056312, 7642803.07420849, 7651960.840544706, 7653521.875, 7654429.6875, 7654968.75, 7654970.630118619, 7655728.244157148, 7656408.697737158, 7680025.757892199, 7690480.150590246, 7701178.113120784, 7701192.753691563, 7713660.860902538, 7734655.847202574, 7745849.523905499, 7865476.819754555, 7882255.472506998, 7895451.054038457, 7896796.408729821, 7910520.122597249, 7934164.0625, 7934303.125, 7934504.973021128, 7935088.500478798, 7952112.06947754, 7957538.451858296, 7959987.5, 7994660.9375, 7994685.276937356, 8068406.25, 8074539.907032518, 8075787.007805439, 8116259.633523258, 8118475.59684815, 8121499.140046374, 8124005.358732556, 8125144.649671303, 8128156.25, 8136995.816218386, 8148165.974978136, 8152506.25, 8152522.845443851, 8173003.703559094, 8178208.29708829, 8181559.698804775, 8181819.705834043, 8209320.048532821, 8210435.571691213, 8212028.811160904, 8212761.262853533, 8216490.625, 8217031.704652952, 8218684.351456969, 8219386.257854802, 8223260.527596575, 8225493.362878096, 8230212.5, 8231764.120714447, 8246566.4142213715, 8248562.5, 8255829.031956044, 8294808.961777639, 8294875.0, 8430109.375, 8447918.75, 8475270.907905823, 8482191.172732392, 8484088.427129697, 8501050.0, 8529511.933860427, 8619590.19466736, 8676793.476654375, 8742379.527647246, 8755865.625, 8758207.8125, 8791953.125, 8794552.102201877, 8916108.601176314, 8930614.487084713, 8938013.047759065, 9042701.77365656, 9734796.875, 9768174.15434393, 9791544.32490409, 9791555.88615451, 9795314.024064625, 9810701.329294663, 9829053.595528541, 9876643.948951637, 9878500.611165665, 9880314.374538036, 9891695.3125, 9892146.70698553, 9894039.142360404, 9912626.912417432, 9915439.227974162, 9918721.080647735, 9928350.61920872, 9930188.178533822, 9932107.8125, 9932705.940063225, 9933759.29432163, 9935276.5625, 9935452.120716603, 9945640.339394318, 9991629.6875, 9993865.625, 9996784.375, 9998796.406151779, 10002016.699568456, 10002742.877964692, 10002913.026661744, 10003151.5625, 10003392.1875, 10006296.875, 10014596.875, 10021793.75, 10021812.5, 10024765.082758985, 10026245.3125, 10030337.5, 10031370.710875385, 10032823.746696731, 10033073.32668894, 10033448.4375, 10034525.630234284, 10034989.0625, 10036213.438400047, 10044629.627967633, 10045548.075341942, 10045803.037447784, 10048931.324968671, 10050116.40016061, 10050151.555492233, 10050645.3125, 10051381.25, 10052116.128607769, 10052845.210785516, 10056520.3125, 10056867.1875, 10887265.47640752, 10892126.40415062, 10927485.9375, 10944489.209436284, 10949979.529715896, 10950004.401189402, 10950025.798215725, 10965446.260752648, 10966537.103543377, 10972350.0, 10973173.19537529, 11001196.875, 11006078.946275368, 11008869.881367391, 11013060.255192166, 11016687.43194056, 11046725.0, 11048156.352954837, 11055316.75535922, 11055544.452010125, 11055633.196353342, 11056407.93531933, 11064223.844798649, 11070676.343548296, 11078079.608755352, 11091354.6875, 11091920.830408933, 11093480.846248662, 11095496.463874392, 11095551.268008763, 11098631.25, 11098910.317764658, 11099423.4375, 11100442.1875, 11101132.396507833, 11101333.6403874, 11101917.1875, 11102537.06015821, 11106158.589054776, 11109041.046375502, 11109212.710141355, 11109498.4375, 11110175.228071736, 11110350.0, 11110913.250803359, 11111907.049762974, 11112196.555557564, 11112875.89541868, 11112913.782314545, 11113955.844800359, 11114473.24574512, 11114663.986409917, 11115136.845443673, 11115153.901898015, 11116056.26216547, 11118370.3125, 11124248.189748261, 11124778.125, 11129670.312054852, 11129675.691570096, 11138170.9252542, 11139034.375, 11139059.90659096, 11139158.983596966, 11139695.053165518, 11140049.293818131, 11140269.74356031, 11140288.714561107, 11141439.769660098, 11142493.75, 11142565.625, 11143547.440018706, 11144043.75, 11144136.58535522, 11144220.113607628, 11144767.165604634, 11145532.8125, 11145580.569883566, 11148386.619395636, 11149627.33041523, 11150308.100710643, 11151176.52870959, 11152032.881884182, 11154310.9375, 11154350.735609371, 11174431.412410999, 11180742.145439327, 11183369.185650334, 11185373.29005379, 11187387.5, 11191871.528048854, 11192976.73247024, 11193193.787631847, 11194099.209976625, 11194403.333277814, 11195170.447303236, 11196116.4904081, 11202193.75, 11219476.65320886, 11224211.945712881, 11225457.11673164, 11225843.497508086, 11225997.481350483, 11226702.29491284, 11229524.381997721, 11242492.1875, 11253125.259991905, 11288442.1875, 11800842.906021459, 11872081.896593729, 11874568.034772618, 11874867.142378781, 11884096.71926952, 11959488.981184226, 12024027.730578471, 12281457.8125, 12287556.145442424, 12288352.079146238, 12290589.0625, 12291848.4375, 12291984.038777106, 12854553.121820074, 13003184.375, 13056356.3863371, 13374092.729754575, 13380858.258861706, 14426329.919628857, 14532584.287025332, 14534137.708607567, 14534312.338084074, 14534899.202439215, 14535618.75, 14535838.397900512, 14536222.560375724, 14536230.895877458, 14536411.705778623, 15685228.44735187, 15685310.325857138, 15686547.59745424, 15687112.5, 15687816.359273857, 15688972.339160439, 15689326.501496736, 15690712.5, 15690991.3085225, 15691020.704992473, 15691190.625, 15691676.498879122, 15692127.842682282, 15692414.407318274, 15693454.6875, 15693930.56406759, 15694146.875, 15694357.536047291, 15694605.757175624, 15695165.001316732, 15695496.453088054, 15696461.672502954, 15696674.894050976, 15697164.018021712, 15697376.046993967, 15697744.11303578, 15697870.961353773, 15697921.965189563, 15698121.72512986, 15699089.817694873, 15699124.084698012, 15699234.433472095, 15699246.144438297, 15699557.301652448, 15699620.638632452, 15699768.428485982, 15700204.658247061, 15700212.397664696, 15700831.25, 15700971.353570806, 15701049.8661642, 15701547.29357089, 15701966.746976022, 15702043.802931946, 15702056.938088384, 15702148.638625465, 15702409.505848316, 15702622.497500451, 15702878.554340694, 15702901.5625, 15703110.9375, 15703128.741658365, 15703221.875, 15703249.27948925, 15703274.205391267, 15703306.382358257, 15703381.25, 15703401.11535219, 15703646.438504538, 15703666.400298053, 15703865.416057156, 15704320.3125, 15704513.894090174, 15704659.106722467, 15704681.88921501, 15704754.218747236, 15704952.203091998, 15705284.375, 15705356.25, 15705386.779535128, 15705454.516845219, 15705467.072659254, 15705608.272712547, 15705757.352783075, 15705953.057990942, 15706176.92454207, 15706196.875, 15706224.748572586, 15706318.75, 15706344.73692682, 15706624.57823919, 15706855.118711943, 15707085.202067297, 15707085.9375, 15707091.98296968, 15707118.04083444, 15707189.0625, 15707304.641151998, 15707460.551209146, 15707595.3125, 15707768.602982787, 15707780.697172303, 15708007.503837202, 15708023.012681996, 15708156.112791374, 15708402.537045939, 15709110.996724086, 15709318.75, 15709417.1875, 15709755.830126714, 15710076.055479491, 15710085.055315007, 15710123.664015342, 15710128.125, 15710339.889827076, 15710841.123689804], [22.283700870262976, 71.29255839278632, 143.29386985097088, 129.09567172360514, 17.25753825750744, 7.265841804337914, 44.10651106109051, 44.804865349336396, 24.959559164960137, 69.82813238517652, 7.422551833398996, 90.9020919051817, 10.034332756842689, 49.654899530057264, 13.897233012320557, 128.8152439923786, 56.252793188274985, 52.94731365071632, 6.775018699369774, 80.859948419704, 10.688583006724915, 11.716944009507053, 5.664031127784215, 18.415594422216998, 11.613241197384639, 24.326705047810712, 47.1299788008898, 49.27174171743486, 12.57336605490755, 9.267706406429214, 18.14293437862477, 56.53546041501798, 69.7481362646095, 11.119073592548247, 48.01698765064474, 33.07465170767952, 61.885162015793654, 33.170073239680406, 42.6831199171466, 8.311847944270198, 84.65607483137092, 133.2411159098138, 24.7099568096961, 11.88674245369639, 15.14760539232215, 80.08247107980412, 90.91661674795986, 20.335611767069302, 28.845232799489978, 16.543044375682797, 22.284469378354437, 74.21938956590162, 12.273003407891014, 9.151980408286143, 5.637408770489818, 11.948462092939373, 25.70364920422355, 64.83296958020779, 34.23414362714183, 53.105844321030794, 5.886567832615302, 77.04213548145705, 5.49675040201165, 49.61304577634899, 38.62221328187108, 18.02248576201295, 21.037083353172235, 103.22740065817709, 45.44867718708274, 73.89213710946922, 46.9612386962259, 26.06751293469918, 9.425152918099155, 19.120579484947463, 17.946797012820834, 12.618715480772828, 32.375053502347654, 52.11738176135516, 34.86559997268159, 21.482578458733222, 10.318276635940002, 41.23467369732743, 27.956033376194323, 175.72460510934718, 12.989624673478081, 13.88519950284054, 94.31659218032178, 25.31093441625444, 184.2606797227177, 32.623350778980885, 64.69115795445597, 69.82638845058715, 30.46462043234086, 44.60746303702241, 38.96831068194086, 84.50038816776743, 18.91167157751262, 52.22810141557851, 70.56552503009499, 29.052640989062365, 27.09612773659959, 22.52083214109858, 18.859480736065787, 17.38206270247143, 19.10953452560232, 129.80150531703674, 13.419383209096843, 25.266909889691142, 71.06163914175997, 109.55199359295489, 16.15422855081927, 20.895940071230317, 22.215352390777905, 53.14535051938809, 38.11558786479696, 41.05020525130285, 20.028164110112854, 76.22870902647186, 19.56332653360357, 6.206953427242103, 34.11375442461396, 16.998422440203676, 12.437642275168827, 25.03296420181278, 73.99078065508789, 28.59152711284973, 12.018300983428512, 8.480748920339542, 39.43477292958727, 6.974054838508646, 148.9054463011399, 6.864267135519564, 22.340434712158945, 39.40774076470598, 5.520405076519686, 5.329541087984226, 18.42171200075748, 46.93838877114749, 71.7196807846474, 97.13283518454718, 28.067241718549557, 9.61781313372665, 13.57976352041721, 22.698212632414876, 103.01462049416413, 77.89844998352373, 75.03182865861703, 37.06326745983197, 8.832470492127927, 30.539817181973675, 46.94631800915591, 43.93685029523226, 60.98364927452251, 12.206150159825155, 17.540922808433848, 10.261283007344774, 49.870438302706816, 189.14743526974507, 29.764552588226906, 130.5537659865379, 34.26103699943704, 44.481869370148694, 70.25077736994145, 73.67905842984814, 9.833635857746803, 83.98825752214945, 16.85124936475946, 17.541080427502553, 5.406608169740955, 49.332408863039895, 20.77931363967012, 17.703456786624216, 25.44752997419343, 27.786383544098644, 8.16698795870275, 17.09995955142223, 9.505491027905514, 9.907812373167983, 13.88202935643761, 88.4642341663539, 25.597002206560195, 11.254871073604816, 16.467090828440337, 32.03807740214255, 5.757453489468561, 9.916286253792578, 18.361882578614114, 44.81222307565187, 60.20063256865164, 27.024711925576494, 62.60681162775956, 17.60316608848567, 21.57870287975486, 29.49372955256897, 51.584807615541564, 59.290069698687866, 53.06955172177685, 6.413230464156124, 58.42823836232246, 7.267136887531641, 38.66699380835186, 35.582311652293406, 39.995984990162825, 40.632197144425305, 35.40792318658168, 45.17800634167624, 6.201037610070379, 48.08141308026879, 32.15144668779353, 8.509112905416389, 5.7267227976476685, 40.24680119035002, 71.14424987939869, 5.862131838124469, 61.81246747718206, 21.289352064485556, 34.82089884419265, 6.693296034999568, 14.617981715921797, 5.401347767988265, 49.475420296802305, 59.71812175097059, 54.61293109011467, 49.74211058793186, 45.51697565488543, 5.806492402971044, 38.36761989265852, 77.51138627001629, 5.6058762005599245, 25.746096283514778, 56.17337609349262, 8.365838799975691, 9.20145858523198, 41.10198447703859, 10.111786389166426, 16.046558253691565, 7.465875311010168, 67.52527323908342, 57.245063830173834, 69.22016605103549, 16.15854558424287, 5.7827542837091785, 15.854721224238556, 12.02033673947286, 32.10845017691755, 15.34900330722561, 22.197838130824312, 5.081888445037329, 5.174398734497845, 11.325265832994615, 7.757507152421169, 14.167849129259677, 27.05849609392218, 56.71249718419828, 29.15757945997128, 10.550275731514686, 97.60748782776979, 14.721747515473483, 67.66183117261203, 13.009660310697774, 29.811385133637334, 90.04138194838016, 45.07122809001658, 8.778947430289103, 63.63421298353003, 8.985264343237123, 6.616126470855466, 7.763099845063115, 8.400920259874818, 38.805577401721436, 28.036368894740754, 64.43660709313161, 5.494941828358163, 6.620221542616029, 7.039937657584414, 7.962733725299693, 13.971276109793104, 27.258567444509058, 6.725818635933478, 90.56383360579275, 20.07844580392026, 154.41358605894493, 8.29302112395079, 50.92678245459923, 60.23710505433728, 50.099417307145785, 28.516411083440264, 12.413302234762561, 23.312674059627078, 46.14170987198445, 26.293479328050203, 30.382755880465314, 39.97689286427718, 19.656500535944453, 20.831893876846628, 35.35632004889862, 5.492959937923752, 47.22273082229768, 109.76986497833752, 67.13487289764039, 78.65120769432957, 31.661816072350412, 42.74788221323391, 79.7547194183971, 52.632228545482036, 6.634920073943298, 29.640147020105317, 12.585692448585828, 32.197851726168686, 27.87326799831269, 9.390768683700443, 83.85701426734754, 12.511854501883278, 15.598917835714284, 6.480518003432639, 16.91026118331345, 64.92499311588183, 54.561804615584386, 77.67653902149124, 5.954345510990449, 15.086910962138878, 50.590698131083215, 15.799600132249445, 9.448048705784771, 6.383099672197283, 54.80721990560485, 40.17960421255769, 20.968127765943827, 98.98133115349972, 32.45256849181412, 95.44113637839563, 59.40835043907332, 34.724277828646876, 48.48010469038597, 26.357409380566345, 75.64050958697794, 8.706981830303173, 9.945332440953377, 12.772861507970996, 96.49459116174678, 14.379399211055508, 5.932355203375923, 28.43512725915901, 33.13709492414711, 26.61564824092047, 67.90037314895035, 33.68259975468896, 42.099406779187895, 23.29881500726774, 95.41781864087457, 87.42766475257231, 37.76085347215292, 8.595775996229722, 9.73967631052791, 33.68252538003434, 26.898137623468802, 6.520297180814516, 60.52847600378677, 18.96258376258994, 60.951815202669025, 10.226712533613021, 12.399630585861324, 23.083173105886083, 7.339198458568743, 5.838222868138652, 38.42310399765716, 6.363004344537649, 37.96026214732988, 11.868273336260962, 26.86042423545439, 18.92547194199426, 38.47372003622269, 18.39521915986107, 68.27315579074778, 44.591245575450216, 25.77721606680774, 33.50367917003642, 9.641040235406303, 72.04317443898621, 32.71649004072345, 42.2468353423053, 20.994498535217605, 5.676095150711085, 36.750873627972815, 22.30912014189434, 77.85734671085596, 31.006040376762673, 27.67430586266942, 21.33980139268826, 59.51290286905544, 9.947743094177458, 15.296785920916827, 40.097364492226305, 5.495141628212468, 32.40415218126256, 15.169161804806127, 61.862030880265024, 13.296435004914137, 5.411089861490471, 84.24888609012716, 11.082288367770127, 26.65309339963455, 98.00109929195473, 13.267737190584185, 73.22963144381414, 5.106784476648492, 36.58818081164648, 5.2466291681473525, 15.056898132722294, 15.767836917486768, 15.464853475642103, 17.998021458270795, 16.876544512028303, 68.7742170892565, 30.01999466902902, 7.842615267992213, 174.9625743771764, 106.53315332562951, 18.984017150608132, 5.621408723283086, 75.90881012315745, 5.232800544721953, 32.70097557556719, 12.602754170385836, 25.45167075722335, 133.75859745113948, 16.021944739567324, 14.008884921183355, 78.51729497772402, 72.24711543604428, 8.657108601359342, 52.382997992750916, 40.179778971659374, 5.6623902323478115, 25.556633095348214, 26.444000699455522, 22.96734018446552, 7.005631551868722, 126.99978656938117, 7.739649888529293, 81.89199804949251, 5.283383510370966, 35.00780490597968, 20.770949464378162, 6.422948340537559, 19.52563495918708, 19.427316577970313, 35.91898530890696, 8.181300817391854, 104.52509175209495, 71.38306467282789, 45.71113098351882, 13.648644151799711, 97.00760278216308, 25.92359205815615, 5.584175362552783, 13.882511171317805, 23.08757445854359, 14.443112072625105, 10.31823538632858, 23.253624526581802, 65.43430598322809, 169.72696053060477, 87.01819374602925, 87.0421833730406, 88.25589599861519, 15.881396639551284, 34.47078022375518, 6.1785777527918, 17.257353276804142])
caption, T_hit,count1 = 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, count1, caption);
([4370906.985450057, 4401642.151821744, 6642965.625, 6663316.69858955, 6714003.623722497, 6930258.334710694, 7053098.4375, 7053612.201971535, 7096127.995371239, 7107152.968689946, 7116116.658681988, 7116151.452955108, 7150375.728765635, 7154083.593744998, 7191771.571096803, 7192735.113326114, 7193411.850192204, 7193599.684568938, 7196331.3073915895, 7196796.875, 7199158.920746523, 7199322.22187931, 7199757.11953828, 7199776.100170928, 7201065.9149036575, 7201490.7086707195, 7205540.625, 7235495.023270311, 7269549.200062414, 7288315.54869578, 7288330.026119154, 7288871.820926049, 7289129.75631135, 7289929.68196971, 7290193.75, 7292035.9375, 7293314.0625, 7343070.290665172, 7356006.083369717, 7358385.984983338, 7361715.625, 7376034.026918878, 7386516.9590579765, 7388017.624289471, 7388257.865540917, 7389642.1875, 7390004.6875, 7391196.74890853, 7400000.0, 7400494.115052949, 7403277.847187919, 7422767.137755564, 7423157.272072568, 7424452.904899001, 7425651.977251267, 7426624.721254924, 7427088.901412703, 7427770.3125, 7428715.236016777, 7439048.771867921, 7441679.060089906, 7442406.25, 7442427.352999908, 7449057.8125, 7465348.4375, 7469086.5638612965, 7507679.140538246, 7510620.3125, 7511826.173344281, 7512110.9375, 7514878.125, 7515577.319479505, 7520834.483830826, 7522225.786499193, 7523441.239371483, 7526222.657177177, 7532196.875, 7534794.501914006, 7538678.125, 7539034.284582891, 7542057.2245799545, 7543278.125, 7570494.92974501, 7572842.031656012, 7583374.372387435, 7584804.379707441, 7625821.875, 7641581.063056312, 7642803.07420849, 7651960.840544706, 7653521.875, 7654429.6875, 7654968.75, 7654970.630118619, 7655728.244157148, 7656408.697737158, 7680025.757892199, 7690480.150590246, 7701178.113120784, 7701192.753691563, 7713660.860902538, 7734655.847202574, 7745849.523905499, 7865476.819754555, 7882255.472506998, 7895451.054038457, 7896796.408729821, 7910520.122597249, 7934164.0625, 7934303.125, 7934504.973021128, 7935088.500478798, 7952112.06947754, 7957538.451858296, 7959987.5, 7994660.9375, 7994685.276937356, 8068406.25, 8074539.907032518, 8075787.007805439, 8116259.633523258, 8118475.59684815, 8121499.140046374, 8124005.358732556, 8125144.649671303, 8128156.25, 8136995.816218386, 8148165.974978136, 8152506.25, 8152522.845443851, 8173003.703559094, 8178208.29708829, 8181559.698804775, 8181819.705834043, 8209320.048532821, 8210435.571691213, 8212028.811160904, 8212761.262853533, 8216490.625, 8217031.704652952, 8218684.351456969, 8219386.257854802, 8223260.527596575, 8225493.362878096, 8230212.5, 8231764.120714447, 8246566.4142213715, 8248562.5, 8255829.031956044, 8294808.961777639, 8294875.0, 8430109.375, 8447918.75, 8475270.907905823, 8482191.172732392, 8484088.427129697, 8501050.0, 8529511.933860427, 8619590.19466736, 8676793.476654375, 8742379.527647246, 8755865.625, 8758207.8125, 8791953.125, 8794552.102201877, 8916108.601176314, 8930614.487084713, 8938013.047759065, 9042701.77365656, 9734796.875, 9768174.15434393, 9791544.32490409, 9791555.88615451, 9795314.024064625, 9810701.329294663, 9829053.595528541, 9876643.948951637, 9878500.611165665, 9880314.374538036, 9891695.3125, 9892146.70698553, 9894039.142360404, 9912626.912417432, 9915439.227974162, 9918721.080647735, 9928350.61920872, 9930188.178533822, 9932107.8125, 9932705.940063225, 9933759.29432163, 9935276.5625, 9935452.120716603, 9945640.339394318, 9991629.6875, 9993865.625, 9996784.375, 9998796.406151779, 10002016.699568456, 10002742.877964692, 10002913.026661744, 10003151.5625, 10003392.1875, 10006296.875, 10014596.875, 10021793.75, 10021812.5, 10024765.082758985, 10026245.3125, 10030337.5, 10031370.710875385, 10032823.746696731, 10033073.32668894, 10033448.4375, 10034525.630234284, 10034989.0625, 10036213.438400047, 10044629.627967633, 10045548.075341942, 10045803.037447784, 10048931.324968671, 10050116.40016061, 10050151.555492233, 10050645.3125, 10051381.25, 10052116.128607769, 10052845.210785516, 10056520.3125, 10056867.1875, 10887265.47640752, 10892126.40415062, 10927485.9375, 10944489.209436284, 10949979.529715896, 10950004.401189402, 10950025.798215725, 10965446.260752648, 10966537.103543377, 10972350.0, 10973173.19537529, 11001196.875, 11006078.946275368, 11008869.881367391, 11013060.255192166, 11016687.43194056, 11046725.0, 11048156.352954837, 11055316.75535922, 11055544.452010125, 11055633.196353342, 11056407.93531933, 11064223.844798649, 11070676.343548296, 11078079.608755352, 11091354.6875, 11091920.830408933, 11093480.846248662, 11095496.463874392, 11095551.268008763, 11098631.25, 11098910.317764658, 11099423.4375, 11100442.1875, 11101132.396507833, 11101333.6403874, 11101917.1875, 11102537.06015821, 11106158.589054776, 11109041.046375502, 11109212.710141355, 11109498.4375, 11110175.228071736, 11110350.0, 11110913.250803359, 11111907.049762974, 11112196.555557564, 11112875.89541868, 11112913.782314545, 11113955.844800359, 11114473.24574512, 11114663.986409917, 11115136.845443673, 11115153.901898015, 11116056.26216547, 11118370.3125, 11124248.189748261, 11124778.125, 11129670.312054852, 11129675.691570096, 11138170.9252542, 11139034.375, 11139059.90659096, 11139158.983596966, 11139695.053165518, 11140049.293818131, 11140269.74356031, 11140288.714561107, 11141439.769660098, 11142493.75, 11142565.625, 11143547.440018706, 11144043.75, 11144136.58535522, 11144220.113607628, 11144767.165604634, 11145532.8125, 11145580.569883566, 11148386.619395636, 11149627.33041523, 11150308.100710643, 11151176.52870959, 11152032.881884182, 11154310.9375, 11154350.735609371, 11174431.412410999, 11180742.145439327, 11183369.185650334, 11185373.29005379, 11187387.5, 11191871.528048854, 11192976.73247024, 11193193.787631847, 11194099.209976625, 11194403.333277814, 11195170.447303236, 11196116.4904081, 11202193.75, 11219476.65320886, 11224211.945712881, 11225457.11673164, 11225843.497508086, 11225997.481350483, 11226702.29491284, 11229524.381997721, 11242492.1875, 11253125.259991905, 11288442.1875, 11800842.906021459, 11872081.896593729, 11874568.034772618, 11874867.142378781, 11884096.71926952, 11959488.981184226, 12024027.730578471, 12281457.8125, 12287556.145442424, 12288352.079146238, 12290589.0625, 12291848.4375, 12291984.038777106, 12854553.121820074, 13003184.375, 13056356.3863371, 13374092.729754575, 13380858.258861706, 14426329.919628857, 14532584.287025332, 14534137.708607567, 14534312.338084074, 14534899.202439215, 14535618.75, 14535838.397900512, 14536222.560375724, 14536230.895877458, 14536411.705778623, 15685228.44735187, 15685310.325857138, 15686547.59745424, 15687112.5, 15687816.359273857, 15688972.339160439, 15689326.501496736, 15690712.5, 15690991.3085225, 15691020.704992473, 15691190.625, 15691676.498879122, 15692127.842682282, 15692414.407318274, 15693454.6875, 15693930.56406759, 15694146.875, 15694357.536047291, 15694605.757175624, 15695165.001316732, 15695496.453088054, 15696461.672502954, 15696674.894050976, 15697164.018021712, 15697376.046993967, 15697744.11303578, 15697870.961353773, 15697921.965189563, 15698121.72512986, 15699089.817694873, 15699124.084698012, 15699234.433472095, 15699246.144438297, 15699557.301652448, 15699620.638632452, 15699768.428485982, 15700204.658247061, 15700212.397664696, 15700831.25, 15700971.353570806, 15701049.8661642, 15701547.29357089, 15701966.746976022, 15702043.802931946, 15702056.938088384, 15702148.638625465, 15702409.505848316, 15702622.497500451, 15702878.554340694, 15702901.5625, 15703110.9375, 15703128.741658365, 15703221.875, 15703249.27948925, 15703274.205391267, 15703306.382358257, 15703381.25, 15703401.11535219, 15703646.438504538, 15703666.400298053, 15703865.416057156, 15704320.3125, 15704513.894090174, 15704659.106722467, 15704681.88921501, 15704754.218747236, 15704952.203091998, 15705284.375, 15705356.25, 15705386.779535128, 15705454.516845219, 15705467.072659254, 15705608.272712547, 15705757.352783075, 15705953.057990942, 15706176.92454207, 15706196.875, 15706224.748572586, 15706318.75, 15706344.73692682, 15706624.57823919, 15706855.118711943, 15707085.202067297, 15707085.9375, 15707091.98296968, 15707118.04083444, 15707189.0625, 15707304.641151998, 15707460.551209146, 15707595.3125, 15707768.602982787, 15707780.697172303, 15708007.503837202, 15708023.012681996, 15708156.112791374, 15708402.537045939, 15709110.996724086, 15709318.75, 15709417.1875, 15709755.830126714, 15710076.055479491, 15710085.055315007, 15710123.664015342, 15710128.125, 15710339.889827076, 15710841.123689804], [22.283700870262976, 71.29255839278632, 143.29386985097088, 129.09567172360514, 17.25753825750744, 7.265841804337914, 44.10651106109051, 44.804865349336396, 24.959559164960137, 69.82813238517652, 7.422551833398996, 90.9020919051817, 10.034332756842689, 49.654899530057264, 13.897233012320557, 128.8152439923786, 56.252793188274985, 52.94731365071632, 6.775018699369774, 80.859948419704, 10.688583006724915, 11.716944009507053, 5.664031127784215, 18.415594422216998, 11.613241197384639, 24.326705047810712, 47.1299788008898, 49.27174171743486, 12.57336605490755, 9.267706406429214, 18.14293437862477, 56.53546041501798, 69.7481362646095, 11.119073592548247, 48.01698765064474, 33.07465170767952, 61.885162015793654, 33.170073239680406, 42.6831199171466, 8.311847944270198, 84.65607483137092, 133.2411159098138, 24.7099568096961, 11.88674245369639, 15.14760539232215, 80.08247107980412, 90.91661674795986, 20.335611767069302, 28.845232799489978, 16.543044375682797, 22.284469378354437, 74.21938956590162, 12.273003407891014, 9.151980408286143, 5.637408770489818, 11.948462092939373, 25.70364920422355, 64.83296958020779, 34.23414362714183, 53.105844321030794, 5.886567832615302, 77.04213548145705, 5.49675040201165, 49.61304577634899, 38.62221328187108, 18.02248576201295, 21.037083353172235, 103.22740065817709, 45.44867718708274, 73.89213710946922, 46.9612386962259, 26.06751293469918, 9.425152918099155, 19.120579484947463, 17.946797012820834, 12.618715480772828, 32.375053502347654, 52.11738176135516, 34.86559997268159, 21.482578458733222, 10.318276635940002, 41.23467369732743, 27.956033376194323, 175.72460510934718, 12.989624673478081, 13.88519950284054, 94.31659218032178, 25.31093441625444, 184.2606797227177, 32.623350778980885, 64.69115795445597, 69.82638845058715, 30.46462043234086, 44.60746303702241, 38.96831068194086, 84.50038816776743, 18.91167157751262, 52.22810141557851, 70.56552503009499, 29.052640989062365, 27.09612773659959, 22.52083214109858, 18.859480736065787, 17.38206270247143, 19.10953452560232, 129.80150531703674, 13.419383209096843, 25.266909889691142, 71.06163914175997, 109.55199359295489, 16.15422855081927, 20.895940071230317, 22.215352390777905, 53.14535051938809, 38.11558786479696, 41.05020525130285, 20.028164110112854, 76.22870902647186, 19.56332653360357, 6.206953427242103, 34.11375442461396, 16.998422440203676, 12.437642275168827, 25.03296420181278, 73.99078065508789, 28.59152711284973, 12.018300983428512, 8.480748920339542, 39.43477292958727, 6.974054838508646, 148.9054463011399, 6.864267135519564, 22.340434712158945, 39.40774076470598, 5.520405076519686, 5.329541087984226, 18.42171200075748, 46.93838877114749, 71.7196807846474, 97.13283518454718, 28.067241718549557, 9.61781313372665, 13.57976352041721, 22.698212632414876, 103.01462049416413, 77.89844998352373, 75.03182865861703, 37.06326745983197, 8.832470492127927, 30.539817181973675, 46.94631800915591, 43.93685029523226, 60.98364927452251, 12.206150159825155, 17.540922808433848, 10.261283007344774, 49.870438302706816, 189.14743526974507, 29.764552588226906, 130.5537659865379, 34.26103699943704, 44.481869370148694, 70.25077736994145, 73.67905842984814, 9.833635857746803, 83.98825752214945, 16.85124936475946, 17.541080427502553, 5.406608169740955, 49.332408863039895, 20.77931363967012, 17.703456786624216, 25.44752997419343, 27.786383544098644, 8.16698795870275, 17.09995955142223, 9.505491027905514, 9.907812373167983, 13.88202935643761, 88.4642341663539, 25.597002206560195, 11.254871073604816, 16.467090828440337, 32.03807740214255, 5.757453489468561, 9.916286253792578, 18.361882578614114, 44.81222307565187, 60.20063256865164, 27.024711925576494, 62.60681162775956, 17.60316608848567, 21.57870287975486, 29.49372955256897, 51.584807615541564, 59.290069698687866, 53.06955172177685, 6.413230464156124, 58.42823836232246, 7.267136887531641, 38.66699380835186, 35.582311652293406, 39.995984990162825, 40.632197144425305, 35.40792318658168, 45.17800634167624, 6.201037610070379, 48.08141308026879, 32.15144668779353, 8.509112905416389, 5.7267227976476685, 40.24680119035002, 71.14424987939869, 5.862131838124469, 61.81246747718206, 21.289352064485556, 34.82089884419265, 6.693296034999568, 14.617981715921797, 5.401347767988265, 49.475420296802305, 59.71812175097059, 54.61293109011467, 49.74211058793186, 45.51697565488543, 5.806492402971044, 38.36761989265852, 77.51138627001629, 5.6058762005599245, 25.746096283514778, 56.17337609349262, 8.365838799975691, 9.20145858523198, 41.10198447703859, 10.111786389166426, 16.046558253691565, 7.465875311010168, 67.52527323908342, 57.245063830173834, 69.22016605103549, 16.15854558424287, 5.7827542837091785, 15.854721224238556, 12.02033673947286, 32.10845017691755, 15.34900330722561, 22.197838130824312, 5.081888445037329, 5.174398734497845, 11.325265832994615, 7.757507152421169, 14.167849129259677, 27.05849609392218, 56.71249718419828, 29.15757945997128, 10.550275731514686, 97.60748782776979, 14.721747515473483, 67.66183117261203, 13.009660310697774, 29.811385133637334, 90.04138194838016, 45.07122809001658, 8.778947430289103, 63.63421298353003, 8.985264343237123, 6.616126470855466, 7.763099845063115, 8.400920259874818, 38.805577401721436, 28.036368894740754, 64.43660709313161, 5.494941828358163, 6.620221542616029, 7.039937657584414, 7.962733725299693, 13.971276109793104, 27.258567444509058, 6.725818635933478, 90.56383360579275, 20.07844580392026, 154.41358605894493, 8.29302112395079, 50.92678245459923, 60.23710505433728, 50.099417307145785, 28.516411083440264, 12.413302234762561, 23.312674059627078, 46.14170987198445, 26.293479328050203, 30.382755880465314, 39.97689286427718, 19.656500535944453, 20.831893876846628, 35.35632004889862, 5.492959937923752, 47.22273082229768, 109.76986497833752, 67.13487289764039, 78.65120769432957, 31.661816072350412, 42.74788221323391, 79.7547194183971, 52.632228545482036, 6.634920073943298, 29.640147020105317, 12.585692448585828, 32.197851726168686, 27.87326799831269, 9.390768683700443, 83.85701426734754, 12.511854501883278, 15.598917835714284, 6.480518003432639, 16.91026118331345, 64.92499311588183, 54.561804615584386, 77.67653902149124, 5.954345510990449, 15.086910962138878, 50.590698131083215, 15.799600132249445, 9.448048705784771, 6.383099672197283, 54.80721990560485, 40.17960421255769, 20.968127765943827, 98.98133115349972, 32.45256849181412, 95.44113637839563, 59.40835043907332, 34.724277828646876, 48.48010469038597, 26.357409380566345, 75.64050958697794, 8.706981830303173, 9.945332440953377, 12.772861507970996, 96.49459116174678, 14.379399211055508, 5.932355203375923, 28.43512725915901, 33.13709492414711, 26.61564824092047, 67.90037314895035, 33.68259975468896, 42.099406779187895, 23.29881500726774, 95.41781864087457, 87.42766475257231, 37.76085347215292, 8.595775996229722, 9.73967631052791, 33.68252538003434, 26.898137623468802, 6.520297180814516, 60.52847600378677, 18.96258376258994, 60.951815202669025, 10.226712533613021, 12.399630585861324, 23.083173105886083, 7.339198458568743, 5.838222868138652, 38.42310399765716, 6.363004344537649, 37.96026214732988, 11.868273336260962, 26.86042423545439, 18.92547194199426, 38.47372003622269, 18.39521915986107, 68.27315579074778, 44.591245575450216, 25.77721606680774, 33.50367917003642, 9.641040235406303, 72.04317443898621, 32.71649004072345, 42.2468353423053, 20.994498535217605, 5.676095150711085, 36.750873627972815, 22.30912014189434, 77.85734671085596, 31.006040376762673, 27.67430586266942, 21.33980139268826, 59.51290286905544, 9.947743094177458, 15.296785920916827, 40.097364492226305, 5.495141628212468, 32.40415218126256, 15.169161804806127, 61.862030880265024, 13.296435004914137, 5.411089861490471, 84.24888609012716, 11.082288367770127, 26.65309339963455, 98.00109929195473, 13.267737190584185, 73.22963144381414, 5.106784476648492, 36.58818081164648, 5.2466291681473525, 15.056898132722294, 15.767836917486768, 15.464853475642103, 17.998021458270795, 16.876544512028303, 68.7742170892565, 30.01999466902902, 7.842615267992213, 174.9625743771764, 106.53315332562951, 18.984017150608132, 5.621408723283086, 75.90881012315745, 5.232800544721953, 32.70097557556719, 12.602754170385836, 25.45167075722335, 133.75859745113948, 16.021944739567324, 14.008884921183355, 78.51729497772402, 72.24711543604428, 8.657108601359342, 52.382997992750916, 40.179778971659374, 5.6623902323478115, 25.556633095348214, 26.444000699455522, 22.96734018446552, 7.005631551868722, 126.99978656938117, 7.739649888529293, 81.89199804949251, 5.283383510370966, 35.00780490597968, 20.770949464378162, 6.422948340537559, 19.52563495918708, 19.427316577970313, 35.91898530890696, 8.181300817391854, 104.52509175209495, 71.38306467282789, 45.71113098351882, 13.648644151799711, 97.00760278216308, 25.92359205815615, 5.584175362552783, 13.882511171317805, 23.08757445854359, 14.443112072625105, 10.31823538632858, 23.253624526581802, 65.43430598322809, 169.72696053060477, 87.01819374602925, 87.0421833730406, 88.25589599861519, 15.881396639551284, 34.47078022375518, 6.1785777527918, 17.257353276804142])
Detected energies during the discharge + Energy spectrum
multiplot(icon_fig, T_int_first,E,xmean,count)
size_of_interactions_average(Etot, Ntot,size_interaction)
#energy_spectra_doublebreakdown(Etot, T_first, file_energy_spectra_doublebreakdown)