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 = 47285
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);
([6141543.75, 6166019.759915122, 6339849.277515961, 6350478.125, 6356096.435371822, 6370193.10091315, 6373425.166432687, 6481943.75, 6482031.25, 6482295.297161135, 6482806.875144973, 6482949.19824658, 6483333.1954004215, 6483686.497505223, 6483772.253879682, 6484145.289645585, 6484588.364063557, 6484635.227572318, 6487438.97043394, 6488977.808713417, 6489440.984101624, 6491153.125, 6492875.72756228, 6498683.628026848, 6660496.06251678, 6674849.998831252, 6702371.689118272, 6744268.672197991, 6816020.200234471, 6849910.594599594, 6918752.243241885, 6955016.623374574, 6955226.453541978, 6957126.933589664, 6960154.6875, 6990250.628579494, 7001473.4375, 7049103.095700794, 7053569.106899056, 7054030.53435442, 7054130.316953957, 7063913.973389285, 7079343.3617102355, 7081292.764237476, 7083865.5974716535, 7087737.5, 7095532.949055914, 7096181.25, 7104518.92269145, 7107010.93447442, 7113542.568407801, 7136828.109204032, 7141123.4375, 7147129.160673748, 7154985.636431987, 7183290.827408094, 7183442.857309767, 7184428.106756611, 7186335.466863659, 7187551.5625, 7188134.523789077, 7189145.3125, 7191005.1260662675, 7191147.419862491, 7191698.194003694, 7191778.125, 7192754.6875, 7193207.010972614, 7193749.809702206, 7193792.211691687, 7194320.3125, 7194327.023543807, 7194364.0625, 7194441.367446722, 7194835.534422897, 7195193.873162111, 7195976.7204088485, 7200856.25, 7203673.4375, 7204618.311539286, 7206017.1875, 7210270.056253306, 7219249.900428295, 7222545.2904424695, 7230451.832066633, 7244323.748555487, 7261213.848406339, 7269467.1875, 7275590.625, 7281775.0, 7299060.9375, 7312664.0625, 7333503.125, 7334013.397663313, 7334026.150417513, 7337435.1627088, 7341335.9375, 7343640.276489082, 7343992.678599527, 7345945.878053342, 7346576.7501118425, 7347493.75, 7348227.533075432, 7348243.48674236, 7348398.4375, 7348407.244908895, 7349498.007768236, 7350403.112009687, 7359676.5625, 7360311.851817528, 7361323.216063305, 7361512.491076522, 7366314.0625, 7367437.823435835, 7369503.781675408, 7369519.394101763, 7370345.206908306, 7370416.005441289, 7378299.090636114, 7378316.746117625, 7387160.798190563, 7389331.181570295, 7390181.25, 7394193.932184625, 7394584.046152895, 7395680.682997334, 7396035.228267346, 7397125.0, 7397823.4375, 7417823.4375, 7421278.10136641, 7421287.269827398, 7423501.471580347, 7435739.430672495, 7437543.686186774, 7439918.166880927, 7441402.768985141, 7441417.732117195, 7441981.330617511, 7442093.060580206, 7442284.081413099, 7443895.212202868, 7448397.44701615, 7448588.28737319, 7452609.2738739, 7459295.3125, 7463022.2178501515, 7464471.780967932, 7465246.109368085, 7466535.9375, 7466538.687140202, 7466693.717485133, 7467980.283350023, 7468800.063978342, 7468992.732894628, 7469025.84487132, 7469617.65817318, 7470764.230449169, 7484333.69264213, 7487657.81139108, 7489748.579472111, 7493569.66927838, 7498902.266964551, 7508823.306945971, 7512088.040737489, 7512592.875164892, 7513340.937218721, 7513443.75, 7514290.625, 7515731.25, 7543150.0, 7552853.880610604, 7552995.738265298, 7553121.134357092, 7553441.802154142, 7553602.6091109365, 7553739.543051587, 7554146.875, 7555774.03980591, 7556582.533571009, 7557051.788230058, 7558531.033324143, 7558693.75, 7558919.150484235, 7559275.388154116, 7560923.3625083845, 7561541.587271318, 7561951.5625, 7562026.857737146, 7562527.095466, 7562741.299974879, 7576359.3731262665, 7576364.511524134, 7613410.369145397, 7675481.021851385, 7682837.324353064, 7683501.5625, 7688373.4375, 7726665.240012648, 7727691.089072398, 7750091.789114543, 7762504.6875, 7767753.636788197, 7776516.614314134, 7787566.785947569, 7788497.846532741, 7831227.694107144, 7832180.530730241, 7833403.125, 7834013.783475286, 7834783.719711118, 7835709.375, 7836003.125, 7836020.3125, 7838435.7099179495, 7840435.943899183, 7844298.4375, 7846528.146726751, 7850002.4970472, 7859042.499655794, 7859058.911519296, 7861455.652282431, 7867523.806925248, 7941102.405271709, 7944637.5, 7944962.160024359, 7945339.0625, 7945347.270129628, 7947064.0625, 7948684.375, 7949597.947121029, 7951469.8767698, 7951594.112768337, 7953669.944164864, 7954122.397512577, 7954127.082233085, 7954132.533339423, 7954599.866725622, 7964469.414221974, 7969675.0, 7982694.487816297, 8072923.049890836, 8073903.279848507, 8077965.625, 8163129.097862101, 8206974.63415498, 8236403.125, 8236639.227272777, 8289959.375, 8290221.891492783, 8291123.4375, 8300320.024015115, 8325967.1875, 8326024.374765768, 8330837.5, 8337173.4375, 8349842.1875, 8359632.624627733, 8382257.8125, 8432508.664408239, 8504044.757422553, 8504519.196915397, 8523318.112333747, 8525957.896273525, 8534268.75, 8535022.229074841, 8549519.508767875, 8600842.1875, 8601650.382001685, 8704515.672491929, 8705517.12414073, 8705553.940350821, 8707730.226540392, 8711477.334621843, 8738217.343380596, 8738290.906138873, 8799368.75, 8801373.4375, 8807529.6875, 8809842.982475104, 8811751.515065562, 8812440.665213766, 8825888.74078665, 8834059.697665684, 8836811.891950708, 8836939.0625, 8840917.1875, 8841452.25943671, 8842228.242245354, 8855196.1038508, 8866564.474599559, 8873756.25, 8874574.462095877, 8874914.0625, 8876628.377233725, 8876717.172681712, 8877064.938907959, 8877072.027647272, 8878028.007226555, 8878867.822045242, 8879940.625, 8880097.658530891, 8880215.625, 8881090.995659135, 8886281.25, 8901534.375, 8905714.170316672, 8906131.25, 8911515.601785006, 8911694.199144455, 8915543.75, 8917594.698229115, 8956890.437943611, 8958677.358768651, 8961301.779968873, 9015684.758644866, 9041710.9375, 9058629.30665597, 9065714.0625, 9093978.667810345, 9095629.640922256, 9103431.25, 9106849.614242338, 9140313.482703995, 9224804.183968045, 9224807.854966396, 9224823.30811734, 9234566.988371592, 9238657.450727798, 9241456.140359553, 9241456.735331709, 9249326.553705381, 9252840.951739293, 9253860.759760184, 9255885.814467741, 9255917.415371038, 9272124.687546346, 9310815.687885461, 9316292.990741177, 9316316.913740572, 9317439.0625, 9319635.784157686, 9320223.4375, 9322831.45650916, 9323017.1875, 9328803.125, 9378929.924914788, 9380880.806406012, 9382197.766760802, 9382745.194135293, 9383185.528616907, 9402467.1875, 9405760.257925224, 9422461.802305786, 9422462.179596897, 9429036.29679831, 9440839.924706519, 9449237.14637037, 9449620.3125, 9450799.675214535, 9461524.545734584, 9462185.9375, 9463760.20105699, 9465293.75, 9484868.433536252, 9541643.75, 9560344.166695373, 9561972.334034072, 9561975.153476186, 9585571.875, 9587311.409242397, 9605965.021720499, 9609377.589065595, 9659906.25, 9663855.263865754, 9692436.459928388, 9708512.5, 9752677.71190556, 9757847.693302698, 9775122.475413024, 9779814.010908285, 9783601.724541068, 9830250.514532557, 9830896.875, 9832111.065689944, 9832153.760045273, 9834194.642707545, 9834196.04504911, 9834258.223274216, 9843457.8125, 9852464.304531293, 9853648.216850292, 9853773.4375, 9854129.6875, 9855306.25, 9858654.46063749, 9859898.181722343, 9862288.426020393, 9869583.82858654, 9869642.156875571, 9889417.1875, 9889571.699380934, 9889574.851768361, 9889825.797959402, 9892487.748236042, 9892598.484594334, 9893195.273782233, 9893675.249160945, 9896365.110714642, 9919117.498874528, 9926004.6875, 9929258.026056262, 9929451.05368013, 9930622.100150691, 9932450.0, 9961273.301674977, 9962841.884607546, 9963214.493939774, 9963395.3125, 9963784.260484086, 9964703.246376298, 9969271.786237199, 10004727.971595716, 10030193.226065395, 10265045.3125, 10275700.0, 10411166.559079854, 10411709.33923931, 10420785.731695555, 10423468.75, 10478624.003791347, 10480460.775295006, 10484945.365492573, 10485198.4375, 10489043.454447819, 10489454.6875, 10489674.42578113, 10489765.625, 10491145.412187781, 10500157.673036637, 10501814.264055023, 10502764.0625, 10502826.880017051, 10518392.385889744, 10562184.264555534, 10698709.540016152, 10699233.574530412, 10714501.334045788, 10717756.720498635, 10720616.489260066, 10727712.512549654, 10728934.855380926, 10729254.6875, 10730635.489810223, 10739698.4375, 10740239.0625, 10761489.0625, 10761695.397930138, 10761696.875, 10763730.350754265, 10764421.006422916, 10779105.079589665, 10780542.1875, 10780710.487671075, 10781371.202911688, 10785247.646651715, 10795750.006383173, 10799612.5, 10809399.799906058, 10816655.724435065, 10817582.023530869, 10818486.721971845, 10819504.966777751, 10819610.9375, 10820323.868495358, 10820352.997991286, 10820504.889115721, 10820632.8125, 10821237.020041483, 10821613.560230726, 10822536.512022993, 10822590.625, 10822624.888947152, 10822707.867853612, 10823543.417509452, 10823654.6875, 10823676.5625, 10823797.776169302, 10823809.375, 10824116.839274669, 10824846.875, 10825921.473644042, 10825926.482138453, 10826063.235984929, 10826188.483498132, 10826204.499482235, 10826586.638275787, 10827131.25, 10827171.830089439, 10828772.192801878, 10830608.635471053, 10830616.163867285, 11032840.625, 11062425.215434652, 11366001.494279701, 566772882.8125], [34.14168334815203, 16.5487373783814, 12.755394166291687, 47.45794474141636, 22.1172504935276, 24.243866130953663, 11.398213689273028, 175.56649203607253, 36.69016704514748, 14.883365391063789, 72.25331974730022, 41.92011251676753, 6.548837462902773, 27.06055474151604, 96.33469395023604, 32.91958041909717, 19.71835730943103, 123.51800965639623, 10.986787646317556, 23.544908755756023, 108.6973647812297, 28.804448367545763, 78.1611778846228, 12.696977177441275, 31.12717695633735, 28.502081855993147, 30.94485342850116, 24.138155386419285, 11.236739837753138, 29.09897623968081, 45.6587237931998, 6.655877497407363, 91.82243774640452, 11.761910163620783, 28.65302953563691, 21.079583277711027, 47.74017085896731, 30.765916517785627, 11.735487571773545, 18.869123688636567, 5.36396356975889, 20.462776183863273, 7.468588297023457, 10.925074613896566, 27.991424542738255, 55.46417091556384, 7.653385789912364, 132.90900895719543, 24.86435491890358, 38.41097983850177, 67.82287685609478, 25.37753204754274, 30.305902622241607, 10.39329280842601, 30.348489884661063, 9.50862282402594, 74.04369534012092, 28.1688188724802, 13.407192104268583, 146.7147709324386, 146.05441932790413, 36.571970346207515, 8.532964183597285, 38.5106896804657, 9.133663920139375, 30.06728056741247, 75.16691971674615, 18.875107411415, 25.26104647057168, 28.60576261176913, 56.823844869073596, 133.11859991593775, 100.63906703937829, 28.6694600167794, 15.662705119641174, 19.139979390343118, 17.128364113562704, 68.14758356396877, 46.24851661433987, 6.420487212485385, 94.32310732656472, 37.751973468196844, 14.57510119344417, 6.48363906994488, 16.079194005328183, 5.726844576417048, 53.670976406163575, 66.61890128629882, 77.3573051896927, 59.331268484124294, 46.138458980965446, 101.99132403355677, 121.55298988239352, 15.258518913965549, 44.775862641993676, 17.74290198495212, 67.2996695800592, 39.139746581421974, 11.911848195051984, 8.610149400350055, 15.833820371412017, 36.986708339442366, 13.081144855646471, 122.65357406325676, 39.94280513370739, 5.322841462745229, 18.73906109871387, 28.27036534147113, 50.27789644359328, 10.246079740819095, 35.44558128950271, 8.281864071617454, 61.46892944603443, 126.11061997956196, 9.956101978159339, 12.309702935992322, 26.598266195998658, 11.77942607873659, 33.442666357688076, 14.346885687609813, 22.03009846444325, 97.36578675238387, 59.93409806845641, 6.800431656503283, 23.38912331579757, 41.959668637889074, 58.5432192795925, 165.4550224548587, 104.32264724062068, 95.7754403003925, 28.065513505668385, 43.15433333164859, 30.545156819528785, 16.558817359136135, 124.91822434722908, 21.970781350047705, 5.194445638740135, 73.75439236089099, 41.42274058496365, 8.809382201455918, 55.530796087417215, 26.687547357486956, 12.157361930943779, 10.696031054685836, 26.673521363183255, 40.91469726624753, 16.431948340824007, 14.594819787340398, 15.13672345530246, 67.42198520198657, 39.64161845259524, 8.26945744000879, 12.207082605195374, 8.320702417734854, 30.630015759267792, 5.8792551167377285, 24.2143915748859, 25.85469789123028, 40.74323659868622, 9.330465696144106, 26.588036039846756, 10.251957157378392, 18.53690968023686, 21.6276331027087, 5.485464319618604, 12.404677632722168, 16.281956285296424, 54.07660912523876, 46.02563048342718, 65.0006614805664, 31.720620197307973, 46.295751478038795, 8.525337910201632, 6.624133728568558, 8.092796496937385, 6.204147910602636, 17.15553708273823, 42.52589163563045, 247.00478221653984, 24.023678494625376, 131.43756461917374, 37.33497413067313, 61.216182133916526, 96.87175390628703, 39.62971325686647, 13.599564879613036, 10.303387379922293, 45.76085140086446, 26.359085082838753, 17.45424091731947, 170.4877932639265, 28.488137576824133, 16.982329309362385, 179.92703495560124, 23.491671077394738, 14.311779359796297, 41.79681478643089, 28.909897377674447, 254.98923800600872, 7.780175597685753, 5.681864272235457, 47.45338494499966, 106.49917772043966, 13.129978809115475, 10.55315447741053, 54.663605924877025, 123.8783524598241, 19.553100556139192, 80.60096501937596, 13.974929215059584, 20.07229599626854, 79.77467234595895, 62.35116795809951, 68.46139903736163, 24.722061258277584, 147.56368420655986, 107.83671170384788, 7.61111482586186, 12.98876137374492, 43.407509201194685, 21.86530290047065, 13.066157587419829, 26.439800522159317, 19.549503257404595, 46.26528036958114, 95.66246611300346, 68.14503625775058, 16.69683466246514, 71.59089684256345, 39.67253054760627, 21.58961503555244, 30.002184866797336, 25.678263706384875, 101.3400001079309, 17.393561892410784, 17.377522126251485, 5.38790815539911, 8.217335000115208, 18.26711587650812, 71.06185309195811, 22.862645249606995, 22.69264681307758, 8.37019721979882, 46.95090676136739, 84.219963217524, 13.709121724716027, 53.449824969410805, 9.474725502658119, 50.2551951251348, 11.153584312796369, 184.03126790568544, 23.898954201710318, 53.67106378890646, 5.227976862094608, 93.16070847176576, 176.94994603084496, 40.55971226795437, 51.93632523728981, 40.41214263086977, 12.784057800635528, 28.327050306854648, 21.991692398160048, 25.55664859269339, 18.234860909793717, 45.67453428690194, 11.730251367313228, 18.91797872888644, 43.57532488853175, 59.136225471361975, 11.202760115041423, 58.442891268442935, 61.882547852306644, 22.746158074757, 32.24164942621565, 11.38042492911334, 35.85117980939814, 81.81797711501216, 49.916548693358465, 114.14010974818001, 42.206755701091225, 21.948719003224703, 14.99146143013439, 30.637946288203306, 54.83535398295098, 8.865245048617705, 32.71131710671958, 66.848213266306, 70.95190692371807, 15.408053262435997, 18.918484930267738, 39.490239658081876, 44.76155288160568, 21.12313989130383, 31.748206788868448, 31.833822921421884, 28.23493097496148, 15.244097679947787, 7.162164558403072, 26.39553150473664, 71.08454120224373, 64.07927293581642, 8.749475923473302, 68.87788914061832, 11.761105751264445, 33.86953494895107, 100.30903929886131, 11.300519478539568, 75.37719141945641, 5.9373863706547025, 28.997509687982618, 45.87396583373306, 54.541657956315944, 14.273450926461972, 77.25914755945661, 54.38125385950539, 100.95463637562426, 130.88977534725316, 16.925841246700987, 69.71331803242957, 35.927901999374356, 22.82268415762207, 78.32340766876212, 22.713813895857747, 35.36536147029071, 21.457939311169717, 15.105880165660533, 5.456240558563982, 30.879747699213038, 29.933997687739424, 9.24038527280801, 11.981704730021285, 12.37211617351371, 69.15016210430713, 15.135538724988407, 154.74919023157315, 72.76901765858334, 23.592956350850965, 5.293033705670437, 5.759859298920524, 51.14046922167504, 54.56499584110623, 66.93532724782554, 77.2068129512862, 6.519958053860208, 51.21737910345576, 54.81369115268598, 7.185291331035875, 13.483229943845277, 19.94370061714289, 24.888868845183133, 20.35487866374877, 76.67983593894596, 19.871100998760056, 10.188053916664307, 61.1832861665786, 16.514054449624062, 72.31553217861259, 105.78493780744016, 58.18907031240076, 23.439221787790537, 8.974724024865552, 30.678609980078473, 5.268868466737827, 57.42698265769337, 158.1096322930105, 30.331316846196714, 6.849649109719282, 38.67058814333929, 24.819340759224872, 62.81190366396367, 17.10666468438591, 5.581518889349313, 44.45761531230339, 39.13313487553169, 12.166388877849668, 8.583620807849643, 39.992996256115184, 74.75250539743537, 7.928688534960006, 46.03302171239026, 68.2964796303522, 11.390799373222064, 15.721061300052527, 93.43723968170983, 15.453707460589358, 7.85029256402735, 10.796584286035344, 30.553006705661456, 9.704692947607729, 54.13112063527125, 6.812807734138214, 19.09672410052544, 49.59157591259455, 43.325222420314134, 37.6847590687607, 54.14980870321648, 35.602384185434424, 18.30377167869507, 30.554369952548576, 5.202642400926855, 89.84526207949273, 28.49089126188501, 14.405097264129665, 29.62288492135884, 66.01462361620177, 92.36455484774393, 32.85648092260557, 5.9614017001674435, 21.351770058283705, 67.35028254691154, 83.85967778953119, 32.2723700621571, 13.30195522101747, 5.407151653796613, 96.28053607137161, 26.101807936873126, 133.34021323685312, 9.724952333655523, 45.19494412655071, 5.929494448789285, 11.322877961622797, 10.99174249085352, 7.548680560021835, 21.25761688369145, 35.36591595136733, 44.9087481741603, 8.851129432354751, 14.806936034499524, 14.211105121244039, 73.134183064858, 28.08496007516274, 42.8562896598272, 15.147413898612824, 69.27811429997821, 5.195956972023253, 78.39689654399575, 8.888883263210351, 29.78396940865558, 15.335591837370128, 27.42345475016897, 7.677800544026367, 46.05208980482169, 5.046935592860175, 25.316544919629266, 14.536618679002917, 21.664670151163655, 21.86121479298048, 104.25615961444413, 17.099794435920955, 5.432574684910605, 20.31572980806481, 9.7735469499067, 39.226863325079826, 22.03129171320841, 80.1109788462901, 43.51213730215592, 99.3675333962847, 44.62857376089049, 41.42025571542898, 31.95601791477293, 31.65487642434768, 11.801359799702702, 73.46305490358675, 13.465585656055818, 5.226716377205776, 6.369875453997395, 6.764781588845989, 33.996578570589655, 34.27453886331542, 6.989825988016774, 19.025138630727948, 38.64292540413685, 43.51101416604223, 51.797108486220225, 8.528450406294633, 14.478544866571632, 11.458180111722772, 103.36344357663336, 114.13154872068432, 62.61047998387501, 17.70114950148275, 40.24689847093051, 7.563559603850237, 6.2742173194296615, 23.344406168898743, 54.98933352527143, 35.201545704554675, 66.84631115692248, 48.616359324120175, 63.7370884106478, 89.46944850199486, 6.4259633827648, 54.28811368197814, 8.718316411536437, 10.329111098399343, 7.0728892984231955, 55.301482327105305, 59.515296897265614, 9.293715281208486, 55.95570059481861, 27.664753316787127, 12.089244272032307, 44.24186817226901, 9.520459992869313, 27.244145811086412, 33.34415965115912])
caption, xmean,count, xle, Etot = energy_spectrum(E_tot)
hist_file(E_hist, xmean, count, caption);
([6141543.75, 6166019.759915122, 6339849.277515961, 6350478.125, 6356096.435371822, 6370193.10091315, 6373425.166432687, 6481943.75, 6482031.25, 6482295.297161135, 6482806.875144973, 6482949.19824658, 6483333.1954004215, 6483686.497505223, 6483772.253879682, 6484145.289645585, 6484588.364063557, 6484635.227572318, 6487438.97043394, 6488977.808713417, 6489440.984101624, 6491153.125, 6492875.72756228, 6498683.628026848, 6660496.06251678, 6674849.998831252, 6702371.689118272, 6744268.672197991, 6816020.200234471, 6849910.594599594, 6918752.243241885, 6955016.623374574, 6955226.453541978, 6957126.933589664, 6960154.6875, 6990250.628579494, 7001473.4375, 7049103.095700794, 7053569.106899056, 7054030.53435442, 7054130.316953957, 7063913.973389285, 7079343.3617102355, 7081292.764237476, 7083865.5974716535, 7087737.5, 7095532.949055914, 7096181.25, 7104518.92269145, 7107010.93447442, 7113542.568407801, 7136828.109204032, 7141123.4375, 7147129.160673748, 7154985.636431987, 7183290.827408094, 7183442.857309767, 7184428.106756611, 7186335.466863659, 7187551.5625, 7188134.523789077, 7189145.3125, 7191005.1260662675, 7191147.419862491, 7191698.194003694, 7191778.125, 7192754.6875, 7193207.010972614, 7193749.809702206, 7193792.211691687, 7194320.3125, 7194327.023543807, 7194364.0625, 7194441.367446722, 7194835.534422897, 7195193.873162111, 7195976.7204088485, 7200856.25, 7203673.4375, 7204618.311539286, 7206017.1875, 7210270.056253306, 7219249.900428295, 7222545.2904424695, 7230451.832066633, 7244323.748555487, 7261213.848406339, 7269467.1875, 7275590.625, 7281775.0, 7299060.9375, 7312664.0625, 7333503.125, 7334013.397663313, 7334026.150417513, 7337435.1627088, 7341335.9375, 7343640.276489082, 7343992.678599527, 7345945.878053342, 7346576.7501118425, 7347493.75, 7348227.533075432, 7348243.48674236, 7348398.4375, 7348407.244908895, 7349498.007768236, 7350403.112009687, 7359676.5625, 7360311.851817528, 7361323.216063305, 7361512.491076522, 7366314.0625, 7367437.823435835, 7369503.781675408, 7369519.394101763, 7370345.206908306, 7370416.005441289, 7378299.090636114, 7378316.746117625, 7387160.798190563, 7389331.181570295, 7390181.25, 7394193.932184625, 7394584.046152895, 7395680.682997334, 7396035.228267346, 7397125.0, 7397823.4375, 7417823.4375, 7421278.10136641, 7421287.269827398, 7423501.471580347, 7435739.430672495, 7437543.686186774, 7439918.166880927, 7441402.768985141, 7441417.732117195, 7441981.330617511, 7442093.060580206, 7442284.081413099, 7443895.212202868, 7448397.44701615, 7448588.28737319, 7452609.2738739, 7459295.3125, 7463022.2178501515, 7464471.780967932, 7465246.109368085, 7466535.9375, 7466538.687140202, 7466693.717485133, 7467980.283350023, 7468800.063978342, 7468992.732894628, 7469025.84487132, 7469617.65817318, 7470764.230449169, 7484333.69264213, 7487657.81139108, 7489748.579472111, 7493569.66927838, 7498902.266964551, 7508823.306945971, 7512088.040737489, 7512592.875164892, 7513340.937218721, 7513443.75, 7514290.625, 7515731.25, 7543150.0, 7552853.880610604, 7552995.738265298, 7553121.134357092, 7553441.802154142, 7553602.6091109365, 7553739.543051587, 7554146.875, 7555774.03980591, 7556582.533571009, 7557051.788230058, 7558531.033324143, 7558693.75, 7558919.150484235, 7559275.388154116, 7560923.3625083845, 7561541.587271318, 7561951.5625, 7562026.857737146, 7562527.095466, 7562741.299974879, 7576359.3731262665, 7576364.511524134, 7613410.369145397, 7675481.021851385, 7682837.324353064, 7683501.5625, 7688373.4375, 7726665.240012648, 7727691.089072398, 7750091.789114543, 7762504.6875, 7767753.636788197, 7776516.614314134, 7787566.785947569, 7788497.846532741, 7831227.694107144, 7832180.530730241, 7833403.125, 7834013.783475286, 7834783.719711118, 7835709.375, 7836003.125, 7836020.3125, 7838435.7099179495, 7840435.943899183, 7844298.4375, 7846528.146726751, 7850002.4970472, 7859042.499655794, 7859058.911519296, 7861455.652282431, 7867523.806925248, 7941102.405271709, 7944637.5, 7944962.160024359, 7945339.0625, 7945347.270129628, 7947064.0625, 7948684.375, 7949597.947121029, 7951469.8767698, 7951594.112768337, 7953669.944164864, 7954122.397512577, 7954127.082233085, 7954132.533339423, 7954599.866725622, 7964469.414221974, 7969675.0, 7982694.487816297, 8072923.049890836, 8073903.279848507, 8077965.625, 8163129.097862101, 8206974.63415498, 8236403.125, 8236639.227272777, 8289959.375, 8290221.891492783, 8291123.4375, 8300320.024015115, 8325967.1875, 8326024.374765768, 8330837.5, 8337173.4375, 8349842.1875, 8359632.624627733, 8382257.8125, 8432508.664408239, 8504044.757422553, 8504519.196915397, 8523318.112333747, 8525957.896273525, 8534268.75, 8535022.229074841, 8549519.508767875, 8600842.1875, 8601650.382001685, 8704515.672491929, 8705517.12414073, 8705553.940350821, 8707730.226540392, 8711477.334621843, 8738217.343380596, 8738290.906138873, 8799368.75, 8801373.4375, 8807529.6875, 8809842.982475104, 8811751.515065562, 8812440.665213766, 8825888.74078665, 8834059.697665684, 8836811.891950708, 8836939.0625, 8840917.1875, 8841452.25943671, 8842228.242245354, 8855196.1038508, 8866564.474599559, 8873756.25, 8874574.462095877, 8874914.0625, 8876628.377233725, 8876717.172681712, 8877064.938907959, 8877072.027647272, 8878028.007226555, 8878867.822045242, 8879940.625, 8880097.658530891, 8880215.625, 8881090.995659135, 8886281.25, 8901534.375, 8905714.170316672, 8906131.25, 8911515.601785006, 8911694.199144455, 8915543.75, 8917594.698229115, 8956890.437943611, 8958677.358768651, 8961301.779968873, 9015684.758644866, 9041710.9375, 9058629.30665597, 9065714.0625, 9093978.667810345, 9095629.640922256, 9103431.25, 9106849.614242338, 9140313.482703995, 9224804.183968045, 9224807.854966396, 9224823.30811734, 9234566.988371592, 9238657.450727798, 9241456.140359553, 9241456.735331709, 9249326.553705381, 9252840.951739293, 9253860.759760184, 9255885.814467741, 9255917.415371038, 9272124.687546346, 9310815.687885461, 9316292.990741177, 9316316.913740572, 9317439.0625, 9319635.784157686, 9320223.4375, 9322831.45650916, 9323017.1875, 9328803.125, 9378929.924914788, 9380880.806406012, 9382197.766760802, 9382745.194135293, 9383185.528616907, 9402467.1875, 9405760.257925224, 9422461.802305786, 9422462.179596897, 9429036.29679831, 9440839.924706519, 9449237.14637037, 9449620.3125, 9450799.675214535, 9461524.545734584, 9462185.9375, 9463760.20105699, 9465293.75, 9484868.433536252, 9541643.75, 9560344.166695373, 9561972.334034072, 9561975.153476186, 9585571.875, 9587311.409242397, 9605965.021720499, 9609377.589065595, 9659906.25, 9663855.263865754, 9692436.459928388, 9708512.5, 9752677.71190556, 9757847.693302698, 9775122.475413024, 9779814.010908285, 9783601.724541068, 9830250.514532557, 9830896.875, 9832111.065689944, 9832153.760045273, 9834194.642707545, 9834196.04504911, 9834258.223274216, 9843457.8125, 9852464.304531293, 9853648.216850292, 9853773.4375, 9854129.6875, 9855306.25, 9858654.46063749, 9859898.181722343, 9862288.426020393, 9869583.82858654, 9869642.156875571, 9889417.1875, 9889571.699380934, 9889574.851768361, 9889825.797959402, 9892487.748236042, 9892598.484594334, 9893195.273782233, 9893675.249160945, 9896365.110714642, 9919117.498874528, 9926004.6875, 9929258.026056262, 9929451.05368013, 9930622.100150691, 9932450.0, 9961273.301674977, 9962841.884607546, 9963214.493939774, 9963395.3125, 9963784.260484086, 9964703.246376298, 9969271.786237199, 10004727.971595716, 10030193.226065395, 10265045.3125, 10275700.0, 10411166.559079854, 10411709.33923931, 10420785.731695555, 10423468.75, 10478624.003791347, 10480460.775295006, 10484945.365492573, 10485198.4375, 10489043.454447819, 10489454.6875, 10489674.42578113, 10489765.625, 10491145.412187781, 10500157.673036637, 10501814.264055023, 10502764.0625, 10502826.880017051, 10518392.385889744, 10562184.264555534, 10698709.540016152, 10699233.574530412, 10714501.334045788, 10717756.720498635, 10720616.489260066, 10727712.512549654, 10728934.855380926, 10729254.6875, 10730635.489810223, 10739698.4375, 10740239.0625, 10761489.0625, 10761695.397930138, 10761696.875, 10763730.350754265, 10764421.006422916, 10779105.079589665, 10780542.1875, 10780710.487671075, 10781371.202911688, 10785247.646651715, 10795750.006383173, 10799612.5, 10809399.799906058, 10816655.724435065, 10817582.023530869, 10818486.721971845, 10819504.966777751, 10819610.9375, 10820323.868495358, 10820352.997991286, 10820504.889115721, 10820632.8125, 10821237.020041483, 10821613.560230726, 10822536.512022993, 10822590.625, 10822624.888947152, 10822707.867853612, 10823543.417509452, 10823654.6875, 10823676.5625, 10823797.776169302, 10823809.375, 10824116.839274669, 10824846.875, 10825921.473644042, 10825926.482138453, 10826063.235984929, 10826188.483498132, 10826204.499482235, 10826586.638275787, 10827131.25, 10827171.830089439, 10828772.192801878, 10830608.635471053, 10830616.163867285, 11032840.625, 11062425.215434652, 11366001.494279701, 566772882.8125], [34.14168334815203, 16.5487373783814, 12.755394166291687, 47.45794474141636, 22.1172504935276, 24.243866130953663, 11.398213689273028, 175.56649203607253, 36.69016704514748, 14.883365391063789, 72.25331974730022, 41.92011251676753, 6.548837462902773, 27.06055474151604, 96.33469395023604, 32.91958041909717, 19.71835730943103, 123.51800965639623, 10.986787646317556, 23.544908755756023, 108.6973647812297, 28.804448367545763, 78.1611778846228, 12.696977177441275, 31.12717695633735, 28.502081855993147, 30.94485342850116, 24.138155386419285, 11.236739837753138, 29.09897623968081, 45.6587237931998, 6.655877497407363, 91.82243774640452, 11.761910163620783, 28.65302953563691, 21.079583277711027, 47.74017085896731, 30.765916517785627, 11.735487571773545, 18.869123688636567, 5.36396356975889, 20.462776183863273, 7.468588297023457, 10.925074613896566, 27.991424542738255, 55.46417091556384, 7.653385789912364, 132.90900895719543, 24.86435491890358, 38.41097983850177, 67.82287685609478, 25.37753204754274, 30.305902622241607, 10.39329280842601, 30.348489884661063, 9.50862282402594, 74.04369534012092, 28.1688188724802, 13.407192104268583, 146.7147709324386, 146.05441932790413, 36.571970346207515, 8.532964183597285, 38.5106896804657, 9.133663920139375, 30.06728056741247, 75.16691971674615, 18.875107411415, 25.26104647057168, 28.60576261176913, 56.823844869073596, 133.11859991593775, 100.63906703937829, 28.6694600167794, 15.662705119641174, 19.139979390343118, 17.128364113562704, 68.14758356396877, 46.24851661433987, 6.420487212485385, 94.32310732656472, 37.751973468196844, 14.57510119344417, 6.48363906994488, 16.079194005328183, 5.726844576417048, 53.670976406163575, 66.61890128629882, 77.3573051896927, 59.331268484124294, 46.138458980965446, 101.99132403355677, 121.55298988239352, 15.258518913965549, 44.775862641993676, 17.74290198495212, 67.2996695800592, 39.139746581421974, 11.911848195051984, 8.610149400350055, 15.833820371412017, 36.986708339442366, 13.081144855646471, 122.65357406325676, 39.94280513370739, 5.322841462745229, 18.73906109871387, 28.27036534147113, 50.27789644359328, 10.246079740819095, 35.44558128950271, 8.281864071617454, 61.46892944603443, 126.11061997956196, 9.956101978159339, 12.309702935992322, 26.598266195998658, 11.77942607873659, 33.442666357688076, 14.346885687609813, 22.03009846444325, 97.36578675238387, 59.93409806845641, 6.800431656503283, 23.38912331579757, 41.959668637889074, 58.5432192795925, 165.4550224548587, 104.32264724062068, 95.7754403003925, 28.065513505668385, 43.15433333164859, 30.545156819528785, 16.558817359136135, 124.91822434722908, 21.970781350047705, 5.194445638740135, 73.75439236089099, 41.42274058496365, 8.809382201455918, 55.530796087417215, 26.687547357486956, 12.157361930943779, 10.696031054685836, 26.673521363183255, 40.91469726624753, 16.431948340824007, 14.594819787340398, 15.13672345530246, 67.42198520198657, 39.64161845259524, 8.26945744000879, 12.207082605195374, 8.320702417734854, 30.630015759267792, 5.8792551167377285, 24.2143915748859, 25.85469789123028, 40.74323659868622, 9.330465696144106, 26.588036039846756, 10.251957157378392, 18.53690968023686, 21.6276331027087, 5.485464319618604, 12.404677632722168, 16.281956285296424, 54.07660912523876, 46.02563048342718, 65.0006614805664, 31.720620197307973, 46.295751478038795, 8.525337910201632, 6.624133728568558, 8.092796496937385, 6.204147910602636, 17.15553708273823, 42.52589163563045, 247.00478221653984, 24.023678494625376, 131.43756461917374, 37.33497413067313, 61.216182133916526, 96.87175390628703, 39.62971325686647, 13.599564879613036, 10.303387379922293, 45.76085140086446, 26.359085082838753, 17.45424091731947, 170.4877932639265, 28.488137576824133, 16.982329309362385, 179.92703495560124, 23.491671077394738, 14.311779359796297, 41.79681478643089, 28.909897377674447, 254.98923800600872, 7.780175597685753, 5.681864272235457, 47.45338494499966, 106.49917772043966, 13.129978809115475, 10.55315447741053, 54.663605924877025, 123.8783524598241, 19.553100556139192, 80.60096501937596, 13.974929215059584, 20.07229599626854, 79.77467234595895, 62.35116795809951, 68.46139903736163, 24.722061258277584, 147.56368420655986, 107.83671170384788, 7.61111482586186, 12.98876137374492, 43.407509201194685, 21.86530290047065, 13.066157587419829, 26.439800522159317, 19.549503257404595, 46.26528036958114, 95.66246611300346, 68.14503625775058, 16.69683466246514, 71.59089684256345, 39.67253054760627, 21.58961503555244, 30.002184866797336, 25.678263706384875, 101.3400001079309, 17.393561892410784, 17.377522126251485, 5.38790815539911, 8.217335000115208, 18.26711587650812, 71.06185309195811, 22.862645249606995, 22.69264681307758, 8.37019721979882, 46.95090676136739, 84.219963217524, 13.709121724716027, 53.449824969410805, 9.474725502658119, 50.2551951251348, 11.153584312796369, 184.03126790568544, 23.898954201710318, 53.67106378890646, 5.227976862094608, 93.16070847176576, 176.94994603084496, 40.55971226795437, 51.93632523728981, 40.41214263086977, 12.784057800635528, 28.327050306854648, 21.991692398160048, 25.55664859269339, 18.234860909793717, 45.67453428690194, 11.730251367313228, 18.91797872888644, 43.57532488853175, 59.136225471361975, 11.202760115041423, 58.442891268442935, 61.882547852306644, 22.746158074757, 32.24164942621565, 11.38042492911334, 35.85117980939814, 81.81797711501216, 49.916548693358465, 114.14010974818001, 42.206755701091225, 21.948719003224703, 14.99146143013439, 30.637946288203306, 54.83535398295098, 8.865245048617705, 32.71131710671958, 66.848213266306, 70.95190692371807, 15.408053262435997, 18.918484930267738, 39.490239658081876, 44.76155288160568, 21.12313989130383, 31.748206788868448, 31.833822921421884, 28.23493097496148, 15.244097679947787, 7.162164558403072, 26.39553150473664, 71.08454120224373, 64.07927293581642, 8.749475923473302, 68.87788914061832, 11.761105751264445, 33.86953494895107, 100.30903929886131, 11.300519478539568, 75.37719141945641, 5.9373863706547025, 28.997509687982618, 45.87396583373306, 54.541657956315944, 14.273450926461972, 77.25914755945661, 54.38125385950539, 100.95463637562426, 130.88977534725316, 16.925841246700987, 69.71331803242957, 35.927901999374356, 22.82268415762207, 78.32340766876212, 22.713813895857747, 35.36536147029071, 21.457939311169717, 15.105880165660533, 5.456240558563982, 30.879747699213038, 29.933997687739424, 9.24038527280801, 11.981704730021285, 12.37211617351371, 69.15016210430713, 15.135538724988407, 154.74919023157315, 72.76901765858334, 23.592956350850965, 5.293033705670437, 5.759859298920524, 51.14046922167504, 54.56499584110623, 66.93532724782554, 77.2068129512862, 6.519958053860208, 51.21737910345576, 54.81369115268598, 7.185291331035875, 13.483229943845277, 19.94370061714289, 24.888868845183133, 20.35487866374877, 76.67983593894596, 19.871100998760056, 10.188053916664307, 61.1832861665786, 16.514054449624062, 72.31553217861259, 105.78493780744016, 58.18907031240076, 23.439221787790537, 8.974724024865552, 30.678609980078473, 5.268868466737827, 57.42698265769337, 158.1096322930105, 30.331316846196714, 6.849649109719282, 38.67058814333929, 24.819340759224872, 62.81190366396367, 17.10666468438591, 5.581518889349313, 44.45761531230339, 39.13313487553169, 12.166388877849668, 8.583620807849643, 39.992996256115184, 74.75250539743537, 7.928688534960006, 46.03302171239026, 68.2964796303522, 11.390799373222064, 15.721061300052527, 93.43723968170983, 15.453707460589358, 7.85029256402735, 10.796584286035344, 30.553006705661456, 9.704692947607729, 54.13112063527125, 6.812807734138214, 19.09672410052544, 49.59157591259455, 43.325222420314134, 37.6847590687607, 54.14980870321648, 35.602384185434424, 18.30377167869507, 30.554369952548576, 5.202642400926855, 89.84526207949273, 28.49089126188501, 14.405097264129665, 29.62288492135884, 66.01462361620177, 92.36455484774393, 32.85648092260557, 5.9614017001674435, 21.351770058283705, 67.35028254691154, 83.85967778953119, 32.2723700621571, 13.30195522101747, 5.407151653796613, 96.28053607137161, 26.101807936873126, 133.34021323685312, 9.724952333655523, 45.19494412655071, 5.929494448789285, 11.322877961622797, 10.99174249085352, 7.548680560021835, 21.25761688369145, 35.36591595136733, 44.9087481741603, 8.851129432354751, 14.806936034499524, 14.211105121244039, 73.134183064858, 28.08496007516274, 42.8562896598272, 15.147413898612824, 69.27811429997821, 5.195956972023253, 78.39689654399575, 8.888883263210351, 29.78396940865558, 15.335591837370128, 27.42345475016897, 7.677800544026367, 46.05208980482169, 5.046935592860175, 25.316544919629266, 14.536618679002917, 21.664670151163655, 21.86121479298048, 104.25615961444413, 17.099794435920955, 5.432574684910605, 20.31572980806481, 9.7735469499067, 39.226863325079826, 22.03129171320841, 80.1109788462901, 43.51213730215592, 99.3675333962847, 44.62857376089049, 41.42025571542898, 31.95601791477293, 31.65487642434768, 11.801359799702702, 73.46305490358675, 13.465585656055818, 5.226716377205776, 6.369875453997395, 6.764781588845989, 33.996578570589655, 34.27453886331542, 6.989825988016774, 19.025138630727948, 38.64292540413685, 43.51101416604223, 51.797108486220225, 8.528450406294633, 14.478544866571632, 11.458180111722772, 103.36344357663336, 114.13154872068432, 62.61047998387501, 17.70114950148275, 40.24689847093051, 7.563559603850237, 6.2742173194296615, 23.344406168898743, 54.98933352527143, 35.201545704554675, 66.84631115692248, 48.616359324120175, 63.7370884106478, 89.46944850199486, 6.4259633827648, 54.28811368197814, 8.718316411536437, 10.329111098399343, 7.0728892984231955, 55.301482327105305, 59.515296897265614, 9.293715281208486, 55.95570059481861, 27.664753316787127, 12.089244272032307, 44.24186817226901, 9.520459992869313, 27.244145811086412, 33.34415965115912])
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);
([6141543.75, 6166019.759915122, 6339849.277515961, 6350478.125, 6356096.435371822, 6370193.10091315, 6373425.166432687, 6481943.75, 6482031.25, 6482295.297161135, 6482806.875144973, 6482949.19824658, 6483333.1954004215, 6483686.497505223, 6483772.253879682, 6484145.289645585, 6484588.364063557, 6484635.227572318, 6487438.97043394, 6488977.808713417, 6489440.984101624, 6491153.125, 6492875.72756228, 6498683.628026848, 6660496.06251678, 6674849.998831252, 6702371.689118272, 6744268.672197991, 6816020.200234471, 6849910.594599594, 6918752.243241885, 6955016.623374574, 6955226.453541978, 6957126.933589664, 6960154.6875, 6990250.628579494, 7001473.4375, 7049103.095700794, 7053569.106899056, 7054030.53435442, 7054130.316953957, 7063913.973389285, 7079343.3617102355, 7081292.764237476, 7083865.5974716535, 7087737.5, 7095532.949055914, 7096181.25, 7104518.92269145, 7107010.93447442, 7113542.568407801, 7136828.109204032, 7141123.4375, 7147129.160673748, 7154985.636431987, 7183290.827408094, 7183442.857309767, 7184428.106756611, 7186335.466863659, 7187551.5625, 7188134.523789077, 7189145.3125, 7191005.1260662675, 7191147.419862491, 7191698.194003694, 7191778.125, 7192754.6875, 7193207.010972614, 7193749.809702206, 7193792.211691687, 7194320.3125, 7194327.023543807, 7194364.0625, 7194441.367446722, 7194835.534422897, 7195193.873162111, 7195976.7204088485, 7200856.25, 7203673.4375, 7204618.311539286, 7206017.1875, 7210270.056253306, 7219249.900428295, 7222545.2904424695, 7230451.832066633, 7244323.748555487, 7261213.848406339, 7269467.1875, 7275590.625, 7281775.0, 7299060.9375, 7312664.0625, 7333503.125, 7334013.397663313, 7334026.150417513, 7337435.1627088, 7341335.9375, 7343640.276489082, 7343992.678599527, 7345945.878053342, 7346576.7501118425, 7347493.75, 7348227.533075432, 7348243.48674236, 7348398.4375, 7348407.244908895, 7349498.007768236, 7350403.112009687, 7359676.5625, 7360311.851817528, 7361323.216063305, 7361512.491076522, 7366314.0625, 7367437.823435835, 7369503.781675408, 7369519.394101763, 7370345.206908306, 7370416.005441289, 7378299.090636114, 7378316.746117625, 7387160.798190563, 7389331.181570295, 7390181.25, 7394193.932184625, 7394584.046152895, 7395680.682997334, 7396035.228267346, 7397125.0, 7397823.4375, 7417823.4375, 7421278.10136641, 7421287.269827398, 7423501.471580347, 7435739.430672495, 7437543.686186774, 7439918.166880927, 7441402.768985141, 7441417.732117195, 7441981.330617511, 7442093.060580206, 7442284.081413099, 7443895.212202868, 7448397.44701615, 7448588.28737319, 7452609.2738739, 7459295.3125, 7463022.2178501515, 7464471.780967932, 7465246.109368085, 7466535.9375, 7466538.687140202, 7466693.717485133, 7467980.283350023, 7468800.063978342, 7468992.732894628, 7469025.84487132, 7469617.65817318, 7470764.230449169, 7484333.69264213, 7487657.81139108, 7489748.579472111, 7493569.66927838, 7498902.266964551, 7508823.306945971, 7512088.040737489, 7512592.875164892, 7513340.937218721, 7513443.75, 7514290.625, 7515731.25, 7543150.0, 7552853.880610604, 7552995.738265298, 7553121.134357092, 7553441.802154142, 7553602.6091109365, 7553739.543051587, 7554146.875, 7555774.03980591, 7556582.533571009, 7557051.788230058, 7558531.033324143, 7558693.75, 7558919.150484235, 7559275.388154116, 7560923.3625083845, 7561541.587271318, 7561951.5625, 7562026.857737146, 7562527.095466, 7562741.299974879, 7576359.3731262665, 7576364.511524134, 7613410.369145397, 7675481.021851385, 7682837.324353064, 7683501.5625, 7688373.4375, 7726665.240012648, 7727691.089072398, 7750091.789114543, 7762504.6875, 7767753.636788197, 7776516.614314134, 7787566.785947569, 7788497.846532741, 7831227.694107144, 7832180.530730241, 7833403.125, 7834013.783475286, 7834783.719711118, 7835709.375, 7836003.125, 7836020.3125, 7838435.7099179495, 7840435.943899183, 7844298.4375, 7846528.146726751, 7850002.4970472, 7859042.499655794, 7859058.911519296, 7861455.652282431, 7867523.806925248, 7941102.405271709, 7944637.5, 7944962.160024359, 7945339.0625, 7945347.270129628, 7947064.0625, 7948684.375, 7949597.947121029, 7951469.8767698, 7951594.112768337, 7953669.944164864, 7954122.397512577, 7954127.082233085, 7954132.533339423, 7954599.866725622, 7964469.414221974, 7969675.0, 7982694.487816297, 8072923.049890836, 8073903.279848507, 8077965.625, 8163129.097862101, 8206974.63415498, 8236403.125, 8236639.227272777, 8289959.375, 8290221.891492783, 8291123.4375, 8300320.024015115, 8325967.1875, 8326024.374765768, 8330837.5, 8337173.4375, 8349842.1875, 8359632.624627733, 8382257.8125, 8432508.664408239, 8504044.757422553, 8504519.196915397, 8523318.112333747, 8525957.896273525, 8534268.75, 8535022.229074841, 8549519.508767875, 8600842.1875, 8601650.382001685, 8704515.672491929, 8705517.12414073, 8705553.940350821, 8707730.226540392, 8711477.334621843, 8738217.343380596, 8738290.906138873, 8799368.75, 8801373.4375, 8807529.6875, 8809842.982475104, 8811751.515065562, 8812440.665213766, 8825888.74078665, 8834059.697665684, 8836811.891950708, 8836939.0625, 8840917.1875, 8841452.25943671, 8842228.242245354, 8855196.1038508, 8866564.474599559, 8873756.25, 8874574.462095877, 8874914.0625, 8876628.377233725, 8876717.172681712, 8877064.938907959, 8877072.027647272, 8878028.007226555, 8878867.822045242, 8879940.625, 8880097.658530891, 8880215.625, 8881090.995659135, 8886281.25, 8901534.375, 8905714.170316672, 8906131.25, 8911515.601785006, 8911694.199144455, 8915543.75, 8917594.698229115, 8956890.437943611, 8958677.358768651, 8961301.779968873, 9015684.758644866, 9041710.9375, 9058629.30665597, 9065714.0625, 9093978.667810345, 9095629.640922256, 9103431.25, 9106849.614242338, 9140313.482703995, 9224804.183968045, 9224807.854966396, 9224823.30811734, 9234566.988371592, 9238657.450727798, 9241456.140359553, 9241456.735331709, 9249326.553705381, 9252840.951739293, 9253860.759760184, 9255885.814467741, 9255917.415371038, 9272124.687546346, 9310815.687885461, 9316292.990741177, 9316316.913740572, 9317439.0625, 9319635.784157686, 9320223.4375, 9322831.45650916, 9323017.1875, 9328803.125, 9378929.924914788, 9380880.806406012, 9382197.766760802, 9382745.194135293, 9383185.528616907, 9402467.1875, 9405760.257925224, 9422461.802305786, 9422462.179596897, 9429036.29679831, 9440839.924706519, 9449237.14637037, 9449620.3125, 9450799.675214535, 9461524.545734584, 9462185.9375, 9463760.20105699, 9465293.75, 9484868.433536252, 9541643.75, 9560344.166695373, 9561972.334034072, 9561975.153476186, 9585571.875, 9587311.409242397, 9605965.021720499, 9609377.589065595, 9659906.25, 9663855.263865754, 9692436.459928388, 9708512.5, 9752677.71190556, 9757847.693302698, 9775122.475413024, 9779814.010908285, 9783601.724541068, 9830250.514532557, 9830896.875, 9832111.065689944, 9832153.760045273, 9834194.642707545, 9834196.04504911, 9834258.223274216, 9843457.8125, 9852464.304531293, 9853648.216850292, 9853773.4375, 9854129.6875, 9855306.25, 9858654.46063749, 9859898.181722343, 9862288.426020393, 9869583.82858654, 9869642.156875571, 9889417.1875, 9889571.699380934, 9889574.851768361, 9889825.797959402, 9892487.748236042, 9892598.484594334, 9893195.273782233, 9893675.249160945, 9896365.110714642, 9919117.498874528, 9926004.6875, 9929258.026056262, 9929451.05368013, 9930622.100150691, 9932450.0, 9961273.301674977, 9962841.884607546, 9963214.493939774, 9963395.3125, 9963784.260484086, 9964703.246376298, 9969271.786237199, 10004727.971595716, 10030193.226065395, 10265045.3125, 10275700.0, 10411166.559079854, 10411709.33923931, 10420785.731695555, 10423468.75, 10478624.003791347, 10480460.775295006, 10484945.365492573, 10485198.4375, 10489043.454447819, 10489454.6875, 10489674.42578113, 10489765.625, 10491145.412187781, 10500157.673036637, 10501814.264055023, 10502764.0625, 10502826.880017051, 10518392.385889744, 10562184.264555534, 10698709.540016152, 10699233.574530412, 10714501.334045788, 10717756.720498635, 10720616.489260066, 10727712.512549654, 10728934.855380926, 10729254.6875, 10730635.489810223, 10739698.4375, 10740239.0625, 10761489.0625, 10761695.397930138, 10761696.875, 10763730.350754265, 10764421.006422916, 10779105.079589665, 10780542.1875, 10780710.487671075, 10781371.202911688, 10785247.646651715, 10795750.006383173, 10799612.5, 10809399.799906058, 10816655.724435065, 10817582.023530869, 10818486.721971845, 10819504.966777751, 10819610.9375, 10820323.868495358, 10820352.997991286, 10820504.889115721, 10820632.8125, 10821237.020041483, 10821613.560230726, 10822536.512022993, 10822590.625, 10822624.888947152, 10822707.867853612, 10823543.417509452, 10823654.6875, 10823676.5625, 10823797.776169302, 10823809.375, 10824116.839274669, 10824846.875, 10825921.473644042, 10825926.482138453, 10826063.235984929, 10826188.483498132, 10826204.499482235, 10826586.638275787, 10827131.25, 10827171.830089439, 10828772.192801878, 10830608.635471053, 10830616.163867285, 11032840.625, 11062425.215434652, 11366001.494279701, 566772882.8125], [34.14168334815203, 16.5487373783814, 12.755394166291687, 47.45794474141636, 22.1172504935276, 24.243866130953663, 11.398213689273028, 175.56649203607253, 36.69016704514748, 14.883365391063789, 72.25331974730022, 41.92011251676753, 6.548837462902773, 27.06055474151604, 96.33469395023604, 32.91958041909717, 19.71835730943103, 123.51800965639623, 10.986787646317556, 23.544908755756023, 108.6973647812297, 28.804448367545763, 78.1611778846228, 12.696977177441275, 31.12717695633735, 28.502081855993147, 30.94485342850116, 24.138155386419285, 11.236739837753138, 29.09897623968081, 45.6587237931998, 6.655877497407363, 91.82243774640452, 11.761910163620783, 28.65302953563691, 21.079583277711027, 47.74017085896731, 30.765916517785627, 11.735487571773545, 18.869123688636567, 5.36396356975889, 20.462776183863273, 7.468588297023457, 10.925074613896566, 27.991424542738255, 55.46417091556384, 7.653385789912364, 132.90900895719543, 24.86435491890358, 38.41097983850177, 67.82287685609478, 25.37753204754274, 30.305902622241607, 10.39329280842601, 30.348489884661063, 9.50862282402594, 74.04369534012092, 28.1688188724802, 13.407192104268583, 146.7147709324386, 146.05441932790413, 36.571970346207515, 8.532964183597285, 38.5106896804657, 9.133663920139375, 30.06728056741247, 75.16691971674615, 18.875107411415, 25.26104647057168, 28.60576261176913, 56.823844869073596, 133.11859991593775, 100.63906703937829, 28.6694600167794, 15.662705119641174, 19.139979390343118, 17.128364113562704, 68.14758356396877, 46.24851661433987, 6.420487212485385, 94.32310732656472, 37.751973468196844, 14.57510119344417, 6.48363906994488, 16.079194005328183, 5.726844576417048, 53.670976406163575, 66.61890128629882, 77.3573051896927, 59.331268484124294, 46.138458980965446, 101.99132403355677, 121.55298988239352, 15.258518913965549, 44.775862641993676, 17.74290198495212, 67.2996695800592, 39.139746581421974, 11.911848195051984, 8.610149400350055, 15.833820371412017, 36.986708339442366, 13.081144855646471, 122.65357406325676, 39.94280513370739, 5.322841462745229, 18.73906109871387, 28.27036534147113, 50.27789644359328, 10.246079740819095, 35.44558128950271, 8.281864071617454, 61.46892944603443, 126.11061997956196, 9.956101978159339, 12.309702935992322, 26.598266195998658, 11.77942607873659, 33.442666357688076, 14.346885687609813, 22.03009846444325, 97.36578675238387, 59.93409806845641, 6.800431656503283, 23.38912331579757, 41.959668637889074, 58.5432192795925, 165.4550224548587, 104.32264724062068, 95.7754403003925, 28.065513505668385, 43.15433333164859, 30.545156819528785, 16.558817359136135, 124.91822434722908, 21.970781350047705, 5.194445638740135, 73.75439236089099, 41.42274058496365, 8.809382201455918, 55.530796087417215, 26.687547357486956, 12.157361930943779, 10.696031054685836, 26.673521363183255, 40.91469726624753, 16.431948340824007, 14.594819787340398, 15.13672345530246, 67.42198520198657, 39.64161845259524, 8.26945744000879, 12.207082605195374, 8.320702417734854, 30.630015759267792, 5.8792551167377285, 24.2143915748859, 25.85469789123028, 40.74323659868622, 9.330465696144106, 26.588036039846756, 10.251957157378392, 18.53690968023686, 21.6276331027087, 5.485464319618604, 12.404677632722168, 16.281956285296424, 54.07660912523876, 46.02563048342718, 65.0006614805664, 31.720620197307973, 46.295751478038795, 8.525337910201632, 6.624133728568558, 8.092796496937385, 6.204147910602636, 17.15553708273823, 42.52589163563045, 247.00478221653984, 24.023678494625376, 131.43756461917374, 37.33497413067313, 61.216182133916526, 96.87175390628703, 39.62971325686647, 13.599564879613036, 10.303387379922293, 45.76085140086446, 26.359085082838753, 17.45424091731947, 170.4877932639265, 28.488137576824133, 16.982329309362385, 179.92703495560124, 23.491671077394738, 14.311779359796297, 41.79681478643089, 28.909897377674447, 254.98923800600872, 7.780175597685753, 5.681864272235457, 47.45338494499966, 106.49917772043966, 13.129978809115475, 10.55315447741053, 54.663605924877025, 123.8783524598241, 19.553100556139192, 80.60096501937596, 13.974929215059584, 20.07229599626854, 79.77467234595895, 62.35116795809951, 68.46139903736163, 24.722061258277584, 147.56368420655986, 107.83671170384788, 7.61111482586186, 12.98876137374492, 43.407509201194685, 21.86530290047065, 13.066157587419829, 26.439800522159317, 19.549503257404595, 46.26528036958114, 95.66246611300346, 68.14503625775058, 16.69683466246514, 71.59089684256345, 39.67253054760627, 21.58961503555244, 30.002184866797336, 25.678263706384875, 101.3400001079309, 17.393561892410784, 17.377522126251485, 5.38790815539911, 8.217335000115208, 18.26711587650812, 71.06185309195811, 22.862645249606995, 22.69264681307758, 8.37019721979882, 46.95090676136739, 84.219963217524, 13.709121724716027, 53.449824969410805, 9.474725502658119, 50.2551951251348, 11.153584312796369, 184.03126790568544, 23.898954201710318, 53.67106378890646, 5.227976862094608, 93.16070847176576, 176.94994603084496, 40.55971226795437, 51.93632523728981, 40.41214263086977, 12.784057800635528, 28.327050306854648, 21.991692398160048, 25.55664859269339, 18.234860909793717, 45.67453428690194, 11.730251367313228, 18.91797872888644, 43.57532488853175, 59.136225471361975, 11.202760115041423, 58.442891268442935, 61.882547852306644, 22.746158074757, 32.24164942621565, 11.38042492911334, 35.85117980939814, 81.81797711501216, 49.916548693358465, 114.14010974818001, 42.206755701091225, 21.948719003224703, 14.99146143013439, 30.637946288203306, 54.83535398295098, 8.865245048617705, 32.71131710671958, 66.848213266306, 70.95190692371807, 15.408053262435997, 18.918484930267738, 39.490239658081876, 44.76155288160568, 21.12313989130383, 31.748206788868448, 31.833822921421884, 28.23493097496148, 15.244097679947787, 7.162164558403072, 26.39553150473664, 71.08454120224373, 64.07927293581642, 8.749475923473302, 68.87788914061832, 11.761105751264445, 33.86953494895107, 100.30903929886131, 11.300519478539568, 75.37719141945641, 5.9373863706547025, 28.997509687982618, 45.87396583373306, 54.541657956315944, 14.273450926461972, 77.25914755945661, 54.38125385950539, 100.95463637562426, 130.88977534725316, 16.925841246700987, 69.71331803242957, 35.927901999374356, 22.82268415762207, 78.32340766876212, 22.713813895857747, 35.36536147029071, 21.457939311169717, 15.105880165660533, 5.456240558563982, 30.879747699213038, 29.933997687739424, 9.24038527280801, 11.981704730021285, 12.37211617351371, 69.15016210430713, 15.135538724988407, 154.74919023157315, 72.76901765858334, 23.592956350850965, 5.293033705670437, 5.759859298920524, 51.14046922167504, 54.56499584110623, 66.93532724782554, 77.2068129512862, 6.519958053860208, 51.21737910345576, 54.81369115268598, 7.185291331035875, 13.483229943845277, 19.94370061714289, 24.888868845183133, 20.35487866374877, 76.67983593894596, 19.871100998760056, 10.188053916664307, 61.1832861665786, 16.514054449624062, 72.31553217861259, 105.78493780744016, 58.18907031240076, 23.439221787790537, 8.974724024865552, 30.678609980078473, 5.268868466737827, 57.42698265769337, 158.1096322930105, 30.331316846196714, 6.849649109719282, 38.67058814333929, 24.819340759224872, 62.81190366396367, 17.10666468438591, 5.581518889349313, 44.45761531230339, 39.13313487553169, 12.166388877849668, 8.583620807849643, 39.992996256115184, 74.75250539743537, 7.928688534960006, 46.03302171239026, 68.2964796303522, 11.390799373222064, 15.721061300052527, 93.43723968170983, 15.453707460589358, 7.85029256402735, 10.796584286035344, 30.553006705661456, 9.704692947607729, 54.13112063527125, 6.812807734138214, 19.09672410052544, 49.59157591259455, 43.325222420314134, 37.6847590687607, 54.14980870321648, 35.602384185434424, 18.30377167869507, 30.554369952548576, 5.202642400926855, 89.84526207949273, 28.49089126188501, 14.405097264129665, 29.62288492135884, 66.01462361620177, 92.36455484774393, 32.85648092260557, 5.9614017001674435, 21.351770058283705, 67.35028254691154, 83.85967778953119, 32.2723700621571, 13.30195522101747, 5.407151653796613, 96.28053607137161, 26.101807936873126, 133.34021323685312, 9.724952333655523, 45.19494412655071, 5.929494448789285, 11.322877961622797, 10.99174249085352, 7.548680560021835, 21.25761688369145, 35.36591595136733, 44.9087481741603, 8.851129432354751, 14.806936034499524, 14.211105121244039, 73.134183064858, 28.08496007516274, 42.8562896598272, 15.147413898612824, 69.27811429997821, 5.195956972023253, 78.39689654399575, 8.888883263210351, 29.78396940865558, 15.335591837370128, 27.42345475016897, 7.677800544026367, 46.05208980482169, 5.046935592860175, 25.316544919629266, 14.536618679002917, 21.664670151163655, 21.86121479298048, 104.25615961444413, 17.099794435920955, 5.432574684910605, 20.31572980806481, 9.7735469499067, 39.226863325079826, 22.03129171320841, 80.1109788462901, 43.51213730215592, 99.3675333962847, 44.62857376089049, 41.42025571542898, 31.95601791477293, 31.65487642434768, 11.801359799702702, 73.46305490358675, 13.465585656055818, 5.226716377205776, 6.369875453997395, 6.764781588845989, 33.996578570589655, 34.27453886331542, 6.989825988016774, 19.025138630727948, 38.64292540413685, 43.51101416604223, 51.797108486220225, 8.528450406294633, 14.478544866571632, 11.458180111722772, 103.36344357663336, 114.13154872068432, 62.61047998387501, 17.70114950148275, 40.24689847093051, 7.563559603850237, 6.2742173194296615, 23.344406168898743, 54.98933352527143, 35.201545704554675, 66.84631115692248, 48.616359324120175, 63.7370884106478, 89.46944850199486, 6.4259633827648, 54.28811368197814, 8.718316411536437, 10.329111098399343, 7.0728892984231955, 55.301482327105305, 59.515296897265614, 9.293715281208486, 55.95570059481861, 27.664753316787127, 12.089244272032307, 44.24186817226901, 9.520459992869313, 27.244145811086412, 33.34415965115912])
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)