script for convert .t3pa files to .t3pa_cls
.t3pa file example:
Index $\quad$ Matrix $\quad$ Index $\quad$ ToA $\quad$ ToT $\quad$ FToA $\quad$ Overflow
0 $\quad$ 4574 $\quad$ 832 $\quad$ 29 $\quad$ 6 $\quad$ 0
1 $\quad$ 4831 $\quad$ 832 $\quad$ 35 $\quad$ 7 $\quad$ 0
2 $\quad$ 4575 $\quad$ 832 $\quad$ 100 $\quad$ 8 $\quad$ 0
3 $\quad$ 31031 $\quad$ 1745 $\quad$ 22 $\quad$ 11 $\quad$ 0
.
.
.
.t3pa_cls file example:
% Index $\quad$ Matrix Index $\quad$ [ RowNo, ClmNo ] $\quad$ ToA $\quad$ FToA $\quad$ ( ToA_in_ns ) $\quad$ ToT ( ToT_in_keV ) $\quad$ Overflow
# 1, $\quad$ Nunmasked = 3, $\quad$ Nmasked = 0, $\quad$ Ntot = 3 # Tfirst = 2.0787500000000000e+04 ns, $\quad$ Tlast = 2.0790625000000000e+04 ns, $\quad$ dT = 3.125000 ns, $\quad$ Etot = 64.428148 keV
2 $\quad$ 4575 $\quad$ [ 17, 223 ] $\quad$ 832 $\quad$ 8 $\quad$ ( 2.0787500000000000e+04 ns ) $\quad$ 100 $\quad$ ( 37.867914 keV ) $\quad$ 0
1 $\quad$ 4831 $\quad$ [ 18, 223 ] $\quad$ 832 $\quad$ 7 $\quad$ ( 2.0789062500000000e+04 ns ) $\quad$ 35 $\quad$ ( 14.733453 keV ) $\quad$ 0
0 $\quad$ 4574 $\quad$ [ 17, 222 ] $\quad$ 832 $\quad$ 6 $\quad$ ( 2.0790625000000000e+04 ns ) $\quad$ 29 $\quad$ ( 11.826781 keV ) $\quad$ 0
# 2, $\quad$ Nunmasked = 3, $\quad$ Nmasked = 0, $\quad$ Ntot = 3 # Tfirst = 4.3601562500000000e+04 ns, $\quad$ Tlast = 4.3607812500000000e+04 ns, $\quad$ dT = 6.250000 ns, $\quad$ Etot = 63.577435 keV
5 $\quad$ 30775 $\quad$ [ 120, 55 ] $\quad$ 1745 $\quad$ 15 $\quad$ ( 4.3601562500000000e+04 ns ) $\quad$ 99 $\quad$ ( 37.617059 keV ) $\quad$ 0
4 $\quad$ 30776 $\quad$ [ 120, 56 ] $\quad$ 1745 $\quad$ 13 $\quad$ ( 4.3604687500000000e+04 ns ) $\quad$ 44 $\quad$ ( 14.715446 keV ) $\quad$ 0
3 $\quad$ 31031 $\quad$ [ 121, 55 ] $\quad$ 1745 $\quad$ 11 $\quad$ ( 4.3607812500000000e+04 ns ) $\quad$2 2 $\quad$ ( 11.244929 keV ) $\quad$ 0
.
.
.
import numpy as np
import math
#import pandas as pd
import matplotlib.pyplot as plt
from urllib.error import HTTPError # recognise the error stemming from missing data
#import urllib
import urllib.request
t3pa2cls_XII - upravena fce energy(a, b, c, t, ToT, pocet_udalosti, RowNo, ClmNo) - nyni je se pocita i s pripadem "nan"
#Define an exception which will be raised if the data is missing and stop the notebook execution
class StopExecution(Exception):
def _render_traceback_(self):
pass
#shot_no = 36529 #test discharge for which the notebook will definitely work
shot_no = 44445
shot = shot_no
identifier='H03-W0051_shot_'+str(shot)+'_450V'
detector = 'H03-W0051'
ds = np.DataSource('/tmp') # temporary storage for downloaded files
scalars_URL = 'http://golem.fjfi.cvut.cz/shots/{shot_no}/Diagnostics/PlasmaDetection/Results/{name}'
def get_scalar(shot_no, name):
return float(ds.open(scalars_URL.format(shot_no=shot_no, name=name)).read())
t_plasma_start = get_scalar(shot_no, 't_plasma_start')
t_plasma_end = get_scalar(shot_no, 't_plasma_end')
is_plasma = get_scalar(shot_no, 'b_plasma')
def get_file(shot, identifier):
#Pick the discharge to analyse
URL = 'http://golem.fjfi.cvut.cz/shots/{shot}/Diagnostics/TimepixDetector/H03/{identifier}.t3pa'
url = URL.format(shot=shot, identifier=identifier)
try:
file_name_t3pa=url
with urllib.request.urlopen(file_name_t3pa) as ft3pa:
line = ft3pa.readline()
line = line.decode('utf‐8')
ft3pa.close
except HTTPError:
print('File not found at %s. Aborting notebook execution.' % url)
raise StopExecution
return file_name_t3pa
def get_file_calib(name_calib):
#Pick the discharge to analyse
URL = 'http://golem.fjfi.cvut.cz/shots/{shot}/Diagnostics/TimepixDetector/calib_matrix_H03/{name_calib}.txt'
url = URL.format(shot=shot, name_calib=name_calib)
#print(url)
try:
file_calib=url
with urllib.request.urlopen(file_calib) as calib:
line = calib.readline()
line = line.decode('utf‐8')
calib.close
except HTTPError:
print('File not found at %s. Aborting notebook execution.' % url)
raise StopExecution
return file_calib
def load_calib(file_calib):
with urllib.request.urlopen(file_calib) as fc:
calib=[] #vytvoreni 1D pole
for i in range(0,256): #tj. rozsah 0-255
temp = [] # docasne pole
for j in range(0,256):
temp.append(0) #naplneni docasneho pole 0
calib.append(temp) #naplneni pole a[] docasnym polem temp
for i in range(0,256): #nacteni calib matice do pole calib
line = fc.readline()
line = line.decode('utf‐8')
word=line.strip().split(' ')
for j in range(0,256):
calib[i][j]=float(word[j]) #i = radek, j = sloupec0
fc.close
return calib
def load_t3pa_file(file_t3pa):
index=[]
matrix_index=[]
ToA=[]
ToT=[]
FToA=[]
overflow=[]
pocet_udalosti = 0
with urllib.request.urlopen(file_t3pa) as ft3pa:
line = ft3pa.readline()
line = line.decode('utf‐8')
while True:
line = ft3pa.readline()
line = line.decode('utf‐8')
word=line.strip().split('\t') #v t3pa souboru je oddelovac \t
if line == '':
break
index.append(word[0])
matrix_index.append(word[1])
ToA.append(float(word[2]))
ToT.append(float(word[3]))
FToA.append(float(word[4]))
overflow.append(float(word[5]))
pocet_udalosti = pocet_udalosti + 1
ft3pa.close
return index, matrix_index, ToA, ToT, FToA, overflow, pocet_udalosti
def noise(index, matrix_index, ToA, ToT, FToA, overflow, pocet_udalosti): #tuto fci nemus9m explicitn2 volat - volam ji v fci load_t3pa
pocet=int(0) #pocet sumicich pixelu
konst=int(len(index)/1000)+1
noise_matrix_index=[]
for i in range(0,konst):
pom = [] # pomocne pole
k=0 #pomocna promenna - udava, kolik je v czklu ve skutecnosti udalosti - aby nebyla chyba 'list index out of range'
for j in range(0,1001):
if i*1000+j>=len(index):
break
pom.append(matrix_index[i*1000+j])
k=k+1
for m in range(0,k):
count=int(0) #pocet vvyskytu stejneho matrix index behem 1000 udalosti
index_=int(-1) #budu testovat, jestli pixel na ktery koukam je sumici (abych ho nezapocital 2x)
for p in range(0,pocet):
#index=int(p)
if pom[m]==noise_matrix_index[p]:
index_=p #pixel na ktery jsem uz koukal a byl sumici
break
if index_ >=0 and pom[m]==noise_matrix_index[index_]:
continue
for l in range(0,k):
if pom[m]==pom[l]:
count=count+1
####podminka na sumici pixely
if count>=50: #kdyz se pixel vyskytne behem tisice udalosti vicekrat nez toto cislo, je sumici
noise_matrix_index.append(pom[m])
#noise_matrix_index[pocet]=pom[i]
pocet=pocet+1
pom.clear()
pocet_udalosti=len(index)
for n in range (0,pocet_udalosti):
for o in range(0,len(noise_matrix_index)):
if n >=pocet_udalosti:
break
if(matrix_index[n]==noise_matrix_index[o]):
del matrix_index[n]
del index[n]
del ToA[n]
del ToT[n]
del FToA[n]
del overflow[n]
pocet_udalosti=pocet_udalosti-1
continue
return pocet_udalosti,index, matrix_index, ToA, ToT, FToA, overflow
def t3pa_data(pocet_udalosti,index, matrix_index, ToA, ToT, FToA, overflow):
#rovnou vyhodim sumici pixely
pocet_udalosti,index, matrix_index, ToA, ToT, FToA, overflow=noise(index, matrix_index, ToA, ToT, FToA, overflow, pocet_udalosti)
RowNo=[]
ClmNo=[]
for i in range(0,len(matrix_index)):
RowNo.append(int(int(matrix_index[i]))//int(256))
ClmNo.append(int(int(matrix_index[i]))%int(256))
return index, matrix_index, ToA, ToT, FToA, overflow, pocet_udalosti, RowNo, ClmNo
def hit_map(detector,hit_map_fig,RowNo,ClmNo):
plt.hist2d(RowNo,ClmNo,bins=(256,256),cmap='Blues')
cb=plt.colorbar()
cb.set_label('Counts in pixel')
plt.xlabel('x [pixel]')
plt.ylabel('y [pixel]')
plt.title(detector)
plt.savefig(hit_map_fig, dpi = 1000)
return
def energy(a, b, c, t, ToT, pocet_udalosti, RowNo, ClmNo):
E=[] #energy in keV
#for i in range (0,pocet_udalosti):
pom=0
for i in range (0,len(ToT)):
sqrt=float(0.0)
e1=float(0.0)
e2=float(0.0)
# promenna sqrt je vnitrek odmocniny
sqrt = (((float(b[RowNo[i]][ClmNo[i]])+float(a[RowNo[i]][ClmNo[i]])*float(t[RowNo[i]][ClmNo[i]])-float(ToT[i])))*(((float(b[RowNo[i]][ClmNo[i]])+float(a[RowNo[i]][ClmNo[i]])*float(t[RowNo[i]][ClmNo[i]])-float(ToT[i])))) + (float(4)*float(a[RowNo[i]][ClmNo[i]])*float(c[RowNo[i]][ClmNo[i]]))) #zmena oproti verzi VI
if float(sqrt)<float(0):
E.append(float(0))
else:
'''
V kalibracni matici a se obcas vyskytne 0 -> ve vypoctu energie
je tim padem deleni nulou -> energie diverguje. Jak to vyresit?
zatim polozim energii = 0 (kdyz a=0), pak se uvidi
nakonec udelam limitu vyrazu energie pro a->0 (L'hopital)
'''
if a[RowNo[i]][ClmNo[i]]==0:
e1=((float(t[RowNo[i]][ClmNo[i]]))/float(2)) + ((((float(b[RowNo[i]][ClmNo[i]])+float(a[RowNo[i]][ClmNo[i]])*float(t[RowNo[i]][ClmNo[i]])-float(ToT[i]))*(float(t[RowNo[i]][ClmNo[i]]))) - 2*(float(c[RowNo[i]][ClmNo[i]])))/(float(2)*np.sqrt(float(sqrt))))
e2=((float(t[RowNo[i]][ClmNo[i]]))/float(2)) - ((((float(b[RowNo[i]][ClmNo[i]])+float(a[RowNo[i]][ClmNo[i]])*float(t[RowNo[i]][ClmNo[i]])-float(ToT[i]))*(float(t[RowNo[i]][ClmNo[i]]))) - 2*(float(c[RowNo[i]][ClmNo[i]])))/(float(2)*np.sqrt(float(sqrt))))
else:
e1=((-(float(b[RowNo[i]][ClmNo[i]]) - (float(a[RowNo[i]][ClmNo[i]])*float(t[RowNo[i]][ClmNo[i]]))-float(ToT[i])))+np.sqrt(float(sqrt)))/(float(2)*float(a[RowNo[i]][ClmNo[i]]))
e2=((-(float(b[RowNo[i]][ClmNo[i]]) - (float(a[RowNo[i]][ClmNo[i]])*float(t[RowNo[i]][ClmNo[i]]))-float(ToT[i])))-np.sqrt(float(sqrt)))/(float(2)*float(a[RowNo[i]][ClmNo[i]]))
if a[RowNo[i]][ClmNo[i]]<0:
e1=-1
e2=-1
if math.isnan(e1):
e1=-1
if math.isnan(e2):
e2=-1
if e1<0 and e2<0:
E.append(float(0))
if e1>=0 and e1>e2:
E.append(float(e1))
if e2>=0 and e2>e1:
E.append(float(e2))
if e1>=0 and e2==e1:
E.append(float(e1))
return E
def Time(ToA, FToA, pocet_udalosti, RowNo, ClmNo):
T=[] #time in ns
for i in range (0,pocet_udalosti):
Time=float(0.0)
Time=(float(ToA[i])-((float(FToA[i])/float(16))))*float(25)
T.append(float(Time))
return T
def remove_interactions_with_zero_energy(index, matrix_index, ToA, ToT, FToA, overflow, RowNo, ClmNo, E, T):
i=0
treshold=5.015347
while i < len(T):
if E[i]<treshold: #E[i] < energy treshold
index.pop(i)
matrix_index.pop(i)
ToA.pop(i)
ToT.pop(i)
FToA.pop(i)
overflow.pop(i)
RowNo.pop(i)
ClmNo.pop(i)
E.pop(i)
T.pop(i)
continue
i=i+1
return index, matrix_index, ToA, ToT, FToA, overflow, RowNo, ClmNo, E, T
def clustering_new(index, matrix_index, ToA, ToT, FToA, overflow, RowNo, ClmNo, E, T):
dT=float(50)
indexCl, TCl,ECl, matrix_indexCl, ToACl,ToTCl,FToACl,RowNoCl,ClmNoCl,overflowCl=[],[],[],[],[],[],[],[],[],[]
StartLastElem=len(T)-1
indexCl.append(int(index[StartLastElem]))
TCl.append(float(T[StartLastElem]))
ECl.append(float(E[StartLastElem]))
matrix_indexCl.append(int(matrix_index[StartLastElem]))
RowNoCl.append(int(RowNo[StartLastElem]))
ClmNoCl.append(int(ClmNo[StartLastElem]))
ToACl.append(float(ToA[StartLastElem]))
ToTCl.append(float(ToT[StartLastElem]))
FToACl.append(float(FToA[StartLastElem]))
overflowCl.append(float(overflow[StartLastElem]))
del index[StartLastElem]
del T[StartLastElem]
del E[StartLastElem]
del matrix_index[StartLastElem]
del RowNo[StartLastElem]
del ClmNo[StartLastElem]
del ToA[StartLastElem]
del ToT[StartLastElem]
del FToA[StartLastElem]
del overflow[StartLastElem]
j=1
pom=float(TCl[0]+dT)
while(j >0):
if(len(T) == 0):
break
k=0
j=0
while (k<=(len(TCl)-1)):
i=len(T)-1
if(len(T) == 0):
break
pocet_sousedu=0 #pocet sousednich pixelu - mohou byt maximalne 4
delka=0
# verze X
count=0 #pomocna promanna, kterou urcuji, ze se ma nasledujici cyklus while projit jeste jednou, pokud je i = -1
while(float(T[i])<=(pom)):
delka=delka+1
if(((((int(RowNoCl[k]))==(int(RowNo[i])+1))or((int(RowNoCl[k]))==(int(RowNo[i])-1))) and ((int(ClmNoCl[k]))==(int(ClmNo[i])))) or (((int(RowNoCl[k]))==(int(RowNo[i]))) and (((int(ClmNoCl[k]))==(int(ClmNo[i])+1))or((int(ClmNoCl[k]))==(int(ClmNo[i])-1))))):
#beru jen pixely, které mají společnou jednu stranu.
#pixely, kter0 spolu sousedí přes roh neuvažuji
indexCl.append(int(index[i]))
TCl.append(float(T[i]))
ECl.append(float(E[i]))
matrix_indexCl.append(int(matrix_index[i]))
RowNoCl.append(int(RowNo[i]))
ClmNoCl.append(int(ClmNo[i]))
ToACl.append(float(ToA[i]))
ToTCl.append(float(ToT[i]))
FToACl.append(float(FToA[i]))
overflowCl.append(float(overflow[i]))
# Removes i-th Row
del index[i]
del T[i]
del E[i]
del matrix_index[i]
del RowNo[i]
del ClmNo[i]
del ToA[i]
del ToT[i]
del FToA[i]
del overflow[i]
j=j+1
i=len(T)-1
pocet_sousedu=pocet_sousedu+1
if(len(T) == 0):
break
if(pocet_sousedu==4):
break
continue
i=i-1
if(i==-1): # verze X
count=count+1
if(i<0 and len(T)>0): # verze X
i=0
if(count>1):
break
if(i>=len(T)):
break
k=k+1
if(len(TCl)>2):
indexCl, TCl, ECl, matrix_indexCl, RowNoCl, ClmNoCl, ToACl, ToTCl, FToACl, overflowCl = insertionSort(indexCl, TCl, ECl, matrix_indexCl, RowNoCl, ClmNoCl, ToACl, ToTCl, FToACl, overflowCl)
return T, indexCl,TCl, ECl, matrix_indexCl, RowNoCl, ClmNoCl, ToACl, ToTCl, FToACl, overflowCl
def insertionSort(indexCl, TCl, ECl, matrix_indexCl, RowNoCl, ClmNoCl, ToACl, ToTCl, FToACl, overflowCl):
# Function to do insertion sort
# Traverse through 1 to len(arr)
for i in range(1, len(TCl)):
key = TCl[i]
# Move elements of arr[0..i-1], that are
# greater than key, to one position ahead
# of their current position
#ostatni
key1 = indexCl[i]
key2 = ECl[i]
key3 = matrix_indexCl[i]
key4 = RowNoCl[i]
key5 = ClmNoCl[i]
key6 = ToACl[i]
key7 = ToTCl[i]
key8 = FToACl[i]
key9 = overflowCl[i]
j = i-1
while j >= 0 and key < TCl[j] :
TCl[j + 1] = TCl[j]
#ostatni
indexCl[j + 1] = indexCl[j]
ECl[j + 1] = ECl[j]
matrix_indexCl[j + 1] = matrix_indexCl[j]
RowNoCl[j + 1] = RowNoCl[j]
ClmNoCl[j + 1] = ClmNoCl[j]
ToACl[j + 1] = ToACl[j]
ToTCl[j + 1] = ToTCl[j]
FToACl[j + 1] = FToACl[j]
overflowCl[j + 1] = overflowCl[j]
j -= 1
TCl[j + 1] = key
#ostatni
indexCl[j + 1] = key1
ECl[j + 1] = key2
matrix_indexCl[j + 1] = key3
RowNoCl[j + 1] =key4
ClmNoCl[j + 1] = key5
ToACl[j + 1] = key6
ToTCl[j + 1] = key7
FToACl[j + 1] = key8
overflowCl [j + 1] = key9
return indexCl, TCl, ECl, matrix_indexCl, RowNoCl, ClmNoCl, ToACl, ToTCl, FToACl, overflowCl
def file_t3pa_cls_new(file_t3pa_cls,T):
with open(file_t3pa_cls, "w", encoding="utf-8") as t3pa_cls:
t3pa_cls.write('%\n')
t3pa_cls.write('% Index Matrix Index [ RowNo, ClmNo ] ToA FToA ( ToA_in_ns ) ToT ( ToT_in_keV ) Overflow\n')
t3pa_cls.write('\n')
i=1
T_first=[]
E_tot=[]
while(len(T) > 0):
T, indexCl,TCl, ECl, matrix_indexCl, RowNoCl, ClmNoCl, ToACl, ToTCl, FToACl, overflowCl = clustering_new(index, matrix_index, ToA, ToT, FToA, overflow, RowNo, ClmNo, E, T)
Tfirst=float(TCl[0])
Tlast=float(TCl[len(TCl)-1])
dT=Tlast-Tfirst
Etot=float(0)
for k in range(0,len(TCl)):
Etot=Etot+float(ECl[k])
T_first.append(float(Tfirst))
dT=Tlast-Tfirst
E_tot.append(float(Etot))
t3pa_cls.write('# '+str(i)+', Nunmasked = '+str(len(TCl))+', Nmasked = 0, Ntot = '+str(len(TCl))+'\n')
t3pa_cls.write('# Tfirst = '+str(Tfirst)+' ns, Tlast = '+str(Tlast)+' ns, dT = '+str(dT)+' ns, Etot = '+str(Etot)+' keV\n')
for j in range(0,len(TCl)):
t3pa_cls.write(str(indexCl[j])+' '+str(matrix_indexCl[j])+' [ '+str(RowNoCl[j])+', '+str(ClmNoCl[j])+' ] '+str(ToACl[j])+' '+str(FToACl[j])+' ( '+str(TCl[j])+' ns ) '+str(ToTCl[j])+' ( '+str(ECl[j])+' keV ) '+str(overflowCl[j])+'\n')
t3pa_cls.write('\n')
i=i+1
t3pa_cls.close
return T_first, E_tot
def energy_spectrum_in_time(Tfirst, Etot): #dela histogram - energie zaznamenana v case
pom = 0
dt=100 #(ns) time width of 1 bin
T_first=0 #cas, kdy prisel trigger a yacalo mereni
T_last=(max(Tfirst)) #posledni z Tfirst
Delta_T = T_last - T_first
poc = int(int(Delta_T) / float(dt)) + 1 #pocet casovych oken
T_int_first=[] #cas
E=[] #energie
for i in range(0,poc):
T_int_first.append((i*dt) + dt/2)
E.append(0)
#XII
for j in range(0,len(Tfirst)):
time_index=0
time_index=int(((Tfirst[j]-T_first)/dt))
if float(Tfirst[j]-T_first) >= (T_int_first[time_index] - dt / 2) and float(Tfirst[j]-T_first) < (T_int_first[time_index] + dt / 2):
E[time_index]=float(E[time_index])+float(Etot[j])
pom=pom+1
for l in range(0,len(T_int_first)):
T_int_first[l]=T_int_first[l]+T_first
caption, T_int_first = energy_in_time_hist(T_int_first, E, figure_E_in_time_hist, t_plasma_start, t_plasma_end, is_plasma, dt)
return dt, caption, T_int_first, E
def energy_in_time_hist(T_int_first, E,figure_E_in_time_hist, t_plasma_start, t_plasma_end, is_plasma, dt):
plt.rcParams.update({'font.size': 20})
fig, ax = plt.subplots(figsize =(10, 7))
for k in range(0,len(T_int_first)):
T_int_first[k] = T_int_first[k] / 1000000
plt.plot(T_int_first, E)
plt.title(detector+', #'+str(shot_no))
plt.xlabel('Time [ms]')
plt.ylabel('Energy [keV]')
if is_plasma == 1:
for t in (t_plasma_start, t_plasma_end):
plt.axvline(t, color='k', linestyle='--')
plt.xlim([0, (t_plasma_start + t_plasma_end)])
else:
plt.xlim(0,)
plt.ylim(0,) #10 000 keV
plt.savefig(figure_E_in_time_hist, dpi = 1000)
caption = '# x = time in ms, count = energy in keV, dT= '+str(dt)+' ns'
return caption, T_int_first
def hits_in_time_hist_new(T, dt, t_plasma_start, t_plasma_end, is_plasma,figure_count_in_time_hist):
pom = 0
T_first=0 #cas, kdy prisel trigger a yacalo mereni
T_last=(max(T)) #posledni z Tfirst
Delta_T = T_last - T_first
poc = int(int(Delta_T) / float(dt)) + 1 #pocet casovych oken
T_hit=[] #cas
count=[] #energie
for i in range(0,poc):
T_hit.append((i*dt) + dt/2)
count.append(0)
for j in range(0,len(T)):
time_index=0
time_index=int(((T[j]-T_first)/dt))
k=time_index
for j in range(0,len(T)):
time_index=0
time_index=int(((T[j]-T_first)/dt))
if float(T[j]-T_first) >= (T_hit[time_index] - dt / 2) and float(T[j]-T_first) < (T_hit[time_index] + dt / 2):
count[time_index] = count[time_index] + 1
pom=pom+1
for l in range(0,len(T_hit)):
T_hit[l]=T_hit[l]+T_first
plt.rcParams.update({'font.size': 20})
fig, ax = plt.subplots(figsize =(10, 7))
for k in range(0,len(T_hit)):
T_hit[k] = T_hit[k] / 1000000
plt.plot(T_hit, count)
plt.title(detector+', #'+str(shot_no))
plt.xlabel('Time [ms]')
plt.ylabel('Count')
if is_plasma == 1:
for t in (t_plasma_start, t_plasma_end):
plt.axvline(t, color='k', linestyle='--')
plt.xlim([0, (t_plasma_start + t_plasma_end)])
else:
plt.xlim(0,)
plt.ylim(0,) #10 000 keV
plt.savefig(figure_count_in_time_hist, dpi = 1000)
caption = '# x = time in ms, dT= '+str(dt)+' ns'
return caption, T_hit,count
def energy_spectrum(Etot):
E_min=0
dE=5 #keV
E_max=max(Etot)
pocet=(E_max//dE) + 3
pocet=int(pocet)
E_max=float(dE*pocet)
xle=[]
xre=[]
xmean=[]
for p in range (0,pocet):
xle.append(E_min + (p * (E_max - E_min)) / pocet)
xre.append(xle[p]+dE)
xmean.append((xle[p] + xre[p]) / 2)
count=[]
for l in range(0,pocet):
count.append(0)
#XII
for i in range(0,len(Etot)):
E_index=int(((Etot[i]-E_min)/dE))
if ((xle[E_index] <= Etot[i]) and (Etot[i] < xre[E_index])):
count[E_index]=count[E_index]+1
plt.rcParams.update({'font.size': 20})
fig, ax = plt.subplots(figsize =(10, 7))
ax.hist(Etot, bins = xle)
plt.title(detector+', #'+str(shot_no))
plt.xlabel('Energy [keV]')
plt.ylabel('Count')
plt.xlim(0,)
ax.set_yscale('log') #log scale y
caption = '# x = energy in keV, dE= '+str(dE)+' keV'
plt.savefig(figure_E_hist, dpi = 1000)
return caption, xmean,count, xle, Etot
def hist_file(file_hist, xmean, count, caption ):
with open(file_hist, "w", encoding="utf-8") as hist:
hist.write('#\n')
hist.write('#'+str(caption)+'\n')
hist.write('# x_mean count\n')
hist.write('\n')
for m in range(0,len(xmean)):
hist.write(str(xmean[m])+' '+str(count[m])+'\n')
hist.close
return T_first, E_tot
def multiplot(icon_fig, x1,y1,x2,y2):
plt.rcParams.update({'font.size': 20})
fig, ax = plt.subplots(nrows=2,figsize =(10, 7))
ax[0].plot(x1, y1)
ax[0].set_xlabel('Time [ms]')
ax[0].set_ylabel('Energy [keV]')
if is_plasma == 1:
for t in (t_plasma_start, t_plasma_end):
ax[0].axvline(t, color='k', linestyle='--')
ax[0].set_xlim([0, (t_plasma_start + t_plasma_end)])
else:
ax[0].set_xlim(0,)
ax[0].set_ylim(0,) #keV
ax[1].hist(y2, bins = x2)
ax[1].set_xlabel('Energy [keV]')
ax[1].set_ylabel('Count')
ax[1].set_xlim(0,)
#ax[1].set_ylim(0,)
ax[1].set_yscale('log') #log scale y
fig.subplots_adjust(hspace=0.3)
plt.savefig(icon_fig, dpi = 1000)
return
#soubory, ktere ctu
#read files
t3pa=get_file(shot, identifier)
name_calib='caliba'
caliba=get_file_calib(name_calib)
name_calib='calibb'
calibb=get_file_calib(name_calib)
name_calib='calibc'
calibc=get_file_calib(name_calib)
name_calib='calibt'
calibt=get_file_calib(name_calib)
#vytvorene soubory:
#created files
t3pa_cls='H03-W0051_shot_'+str(shot)+'_450V.t3pa_cls'
E_hist='H03-W0051_shot_'+str(shot)+'_450V_E_hist.txt'
E_in_time_hist='H03-W0051_shot_'+str(shot)+'_450V_discharge_energy.txt'
count_in_time_hist= 'H03-W0051_shot_'+str(shot)+'_450V_discharge_hits.txt'
#created figures
icon_fig='icon-fig'
figure_E_in_time_hist='discharge_energy'
figure_count_in_time_hist='discharge_hits'
figure_E_hist='Energy_spectrum'
hit_map_fig='hit-map'
#nactu jednotlive kalibracni matice - abych to nemusel delat v kazde funkci
a=load_calib(caliba)
b=load_calib(calibb)
c=load_calib(calibc)
t=load_calib(calibt)
#nactu a urcim jednotlive hodnoty - abych to nemusel delat v kazde funkci
index, matrix_index, ToA, ToT, FToA, overflow, pocet_udalosti = load_t3pa_file(t3pa)
index, matrix_index, ToA, ToT, FToA, overflow, pocet_udalosti, RowNo, ClmNo = t3pa_data(pocet_udalosti,index, matrix_index, ToA, ToT, FToA, overflow)
raw data
#hit map
hit_map(detector,hit_map_fig,RowNo,ClmNo)
Energy and time calculation from raw data.
E=energy(a, b, c, t, ToT, pocet_udalosti, RowNo, ClmNo)
T=Time(ToA, FToA, pocet_udalosti, RowNo, ClmNo)
index, matrix_index, ToA, ToT, FToA, overflow, RowNo, ClmNo, E, T = remove_interactions_with_zero_energy(index, matrix_index, ToA, ToT, FToA, overflow, RowNo, ClmNo, E, T)
#sort by time
T, index, matrix_index, ToA, ToT, FToA, overflow, RowNo, ClmNo, E = (list(t) for t in zip(*sorted(zip(T, index, matrix_index, ToA, ToT, FToA, overflow, RowNo, ClmNo, E), reverse=True))) #serazeni od nejvetsiho po nejmensi
T_pom=T.copy()
#save to file
T_first, E_tot = file_t3pa_cls_new(t3pa_cls,T)
dt, caption, T_int_first, E = energy_spectrum_in_time(T_first, E_tot)
hist_file(E_in_time_hist, T_int_first, E, caption);
([5825664.0625, 5964681.25, 6183448.4375, 6183496.875, 6244489.0625, 6269584.375, 6308315.625, 6308325.0, 6446665.625, 6458345.3125, 6667712.5, 6685240.625, 6721215.625, 6765240.625, 6807867.1875, 6809750.0, 6813034.375, 6844090.625, 6849140.625, 6872109.375, 6875432.8125, 6875628.125, 6876187.5, 6877759.375, 6881187.5, 6891495.3125, 6893521.875, 6893646.875, 6893829.6875, 6895929.6875, 6899459.375, 6906690.625, 6932601.5625, 6933889.0625, 6983084.375, 6984579.6875, 6985698.4375, 6987079.6875, 6987998.4375, 6994518.75, 6994535.9375, 7010959.375, 7013142.1875, 7018878.125, 7028606.25, 7038973.4375, 7048204.6875, 7064859.375, 7065631.25, 7069281.25, 7069410.9375, 7076825.0, 7077803.125, 7077804.6875, 7140314.0625, 7143948.4375, 7145185.9375, 7145239.0625, 7145518.75, 7147479.6875, 7147553.125, 7148650.0, 7149539.0625, 7180850.0, 7230098.4375, 7234517.1875, 7235804.6875, 7237131.25, 7238785.9375, 7239198.4375, 7239206.25, 7241850.0, 7247603.125, 7269587.5, 7273012.5, 7273040.625, 7274182.8125, 7274239.0625, 7275373.4375, 7335078.125, 7340415.625, 7373157.8125, 7383800.0, 7412531.25, 7412603.125, 7412714.0625, 7412920.3125, 7493425.0, 7502667.1875, 7506651.5625, 7507484.375, 7526714.0625, 7528262.5, 7563751.5625, 7587296.875, 7687737.5, 7690685.9375, 7706579.6875, 7727653.125, 7739420.3125, 7739462.5, 7808070.3125, 7830565.625, 7872437.5, 8007396.875, 8341712.5, 8379160.9375, 8381503.125, 8383912.5, 8417334.375, 8417335.9375, 8470471.875, 8471343.75, 8505993.75, 8542037.5, 8568267.1875, 8572959.375, 8579726.5625, 8580492.1875, 8581165.625, 8582318.75, 8585337.5, 8585782.8125, 8585867.1875, 8587151.5625, 8604117.1875, 8606662.5, 8610257.8125, 8613781.25, 8614696.875, 8614718.75, 8622451.5625, 8628834.375, 8657979.6875, 8659148.4375, 8660032.8125, 8660051.5625, 8660876.5625, 8661703.125, 8663315.625, 8663548.4375, 8717567.1875, 8724803.125, 8727410.9375, 8759106.25, 8768100.0, 8787100.0, 8789475.0, 8797596.875, 8805643.75, 8817317.1875, 8835214.0625, 8845976.5625, 8849365.625, 8854175.0, 8858131.25, 8870731.25, 8880693.75, 8880943.75, 8881825.0, 8883296.875, 8883745.3125, 8884462.5, 8885545.3125, 8897103.125, 8906562.5, 8919917.1875, 8921350.0, 8942131.25, 8977285.9375, 8977756.25, 8977784.375, 8978810.9375, 8982320.3125, 8982984.375, 8984060.9375, 9004479.6875, 9005478.125, 9008710.9375, 9009618.75, 9011304.6875, 9011429.6875, 9011692.1875, 9012712.5, 9013009.375, 9017962.5, 9018678.125, 9019093.75, 9019145.3125, 9019654.6875, 9020115.625, 9020803.125, 9021254.6875, 9049975.0, 9054678.125, 9061353.125, 9061957.8125, 9063625.0, 9077015.625, 9077559.375, 9077825.0, 9078584.375, 9078807.8125, 9078889.0625, 9079075.0, 9079104.6875, 9079254.6875, 9079350.0, 9080801.5625, 9107996.875, 9124971.875, 9125054.6875, 9133045.3125, 9133103.125, 9139359.375, 9141514.0625, 9141571.875, 9142643.75, 9154228.125, 9156871.875, 9165632.8125, 9167878.125, 9188289.0625, 9196757.8125, 9199757.8125, 9200657.8125, 9213303.125, 9214403.125, 9222943.75, 9223278.125, 9272682.8125, 9275098.4375, 9278856.25, 9280564.0625, 9282968.75, 9283431.25, 9284323.4375, 9284670.3125, 9285350.0, 9285351.5625, 9287135.9375, 9289368.75, 9289821.875, 9290242.1875, 9294334.375, 9294335.9375, 9297614.0625, 9355620.3125, 9370820.3125, 9370846.875, 9377315.625, 9384893.75, 9389198.4375, 9403668.75, 9501976.5625, 9527784.375, 9527845.3125, 9529146.875, 9607065.625, 9607120.3125, 9607135.9375, 9607951.5625, 9609626.5625, 9662370.3125, 9691567.1875, 9698954.6875, 9704787.5, 9735109.375, 9735206.25, 9735225.0, 9735431.25, 9770365.625, 9802659.375, 9806831.25, 9811015.625, 9846595.3125, 9846667.1875, 9947807.8125, 9947859.375, 9990043.75, 10078543.75, 10118215.625, 10118350.0, 10119262.5, 10121634.375, 10121718.75, 10122601.5625, 10122762.5, 10123315.625, 10130289.0625, 10130337.5, 10131168.75, 10131445.3125, 10132109.375, 10134175.0, 10135403.125, 10145554.6875, 10155187.5, 10158640.625, 10238875.0, 10239701.5625, 10245701.5625, 10260453.125, 10261712.5, 10264143.75, 10264725.0, 10265131.25, 10265134.375, 10288364.0625, 10288420.3125, 10288451.5625, 10333176.5625, 10718607.8125, 10776956.25, 10786128.125, 10833823.4375, 10839576.5625, 11397721.875, 11398473.4375, 11401743.75, 11401842.1875, 11402460.9375, 11403832.8125, 11407243.75, 11407495.3125, 11407579.6875, 11420721.875, 11423128.125, 11424450.0, 11425265.625, 11428465.625, 11428504.6875, 11428789.0625, 11429393.75, 11429914.0625, 11430215.625, 11431356.25, 11431443.75, 11432110.9375, 11432821.875, 11433157.8125, 11433262.5, 11433501.5625, 11433604.6875, 11433867.1875, 11433896.875, 11433968.75, 11434167.1875, 11435857.8125, 11436273.4375, 11436548.4375, 11436779.6875, 11437117.1875, 11437509.375, 11437568.75, 11437571.875, 11437654.6875, 11437718.75, 11438050.0, 11438162.5, 11438228.125, 11438539.0625, 11439128.125, 11441318.75, 11441835.9375, 11445015.625, 11446795.3125, 11462060.9375], [108.76446968708598, 12.000874857203842, 11.162958071975895, 7.444575825299894, 19.12897083951218, 10.575933092875658, 232.18923557188054, 12.919657560061271, 57.2150244136963, 71.6633332725283, 61.241050018544584, 23.326287958140668, 84.66612141450986, 7.557893950635196, 17.223336461551092, 23.293880970523873, 9.764032869355878, 65.74630461394251, 5.95721892917164, 74.7946182301088, 17.5158351542823, 14.278268207245379, 43.29705605759113, 67.12500332987155, 31.742569886745382, 7.875440866745615, 44.362231073574215, 52.3760286430971, 21.40798785683659, 90.69965458293528, 73.02592051602966, 12.386455422235144, 51.13789074896209, 51.713302993506886, 50.02893440106012, 20.716574272814604, 71.97573143752822, 20.754667156259742, 145.22685105247115, 49.47565978810142, 24.186787427744694, 14.299586815375456, 11.856680226113937, 7.405913367929227, 30.220157550634475, 51.02452190503858, 7.800214839166169, 18.84187150711646, 112.02123670212161, 56.791817330233826, 17.864330588806602, 39.07628807977944, 25.5417737640821, 27.39980618050264, 63.9962702105731, 33.08095609278223, 38.25515816197931, 88.6511417208713, 50.36894230602807, 13.660803262558785, 5.03996345925744, 7.677471166865372, 36.91001766740153, 20.935843939456852, 77.75450518055153, 21.20806770201249, 13.463150819149549, 19.654496135324912, 99.49333495965323, 11.514855674003112, 9.696304461970396, 6.446891013257846, 49.774026947718966, 7.436568215518933, 16.341765572031814, 116.32812513721859, 34.09902684582221, 8.81329893862924, 45.427578719535276, 77.75413139506874, 87.71149787425229, 99.20912068568276, 213.64353803504915, 60.31816209294091, 69.05905476054676, 38.84616431075349, 97.66824956389983, 6.795148097269219, 50.469832738135935, 12.90636079526614, 55.84734399859354, 14.825492471331515, 229.29068740689624, 51.162801572895745, 20.81133405231021, 23.24780816290909, 37.62279412588305, 11.19647491195622, 25.312973167039754, 78.4040460551839, 55.158048006314665, 65.56333058896745, 14.002406439334973, 11.086556177856492, 23.412358585404053, 120.73314302317425, 9.26336718453205, 181.48731026586321, 17.145645714500837, 237.0781427544102, 41.53234575994451, 7.462509136977769, 26.81013598277565, 67.9738787551252, 119.09346225115902, 20.202748158049324, 8.106024944951532, 51.236601830253605, 31.63187689812487, 5.670834640008468, 76.80101641061586, 93.68612262422208, 48.79303090360649, 18.62569078308781, 55.917012161756816, 63.41317762963726, 11.689766213068683, 27.51942403864989, 25.263928359773374, 8.477766065852931, 14.748850391213665, 19.06567839609726, 171.80030782833782, 74.7899969637871, 13.76633630492478, 48.36322971234335, 6.457299067947852, 36.59586828386358, 26.83083489075165, 34.24038861827099, 77.03619516711086, 22.57923926691832, 18.1978011093513, 110.52301331267617, 88.51369152732806, 23.614130658231527, 14.247499976366344, 257.5044396398329, 59.552535175011315, 147.6623503603256, 28.134854738758705, 26.281452939487565, 17.90549127475783, 158.29263250646272, 25.90407523539066, 183.05992146304897, 115.1337881480818, 35.00525331374218, 70.1716312302083, 122.41429494750656, 18.819497608569904, 12.954319967201117, 43.054313658420554, 13.315668594635467, 57.7623785596907, 9.790358958993473, 33.43344995282144, 109.25551390458563, 78.36306074143971, 132.685732708151, 61.60039226469537, 44.884980766696124, 9.601136235619, 46.15105824514628, 35.81883833825274, 9.62958925814302, 150.11566551098954, 21.462494665171615, 45.6789564535042, 14.411073001228297, 180.41840100375734, 29.695749304491912, 6.405246777271993, 24.948790962202548, 14.194168362736033, 8.231118295796495, 170.0618027746631, 29.559456967460264, 45.558729645373354, 22.903286786825387, 126.96994635878744, 55.58082424056796, 10.924333287424004, 8.63426817550537, 18.97295773532743, 32.98611485712869, 23.938994791383937, 28.459116539031424, 9.667784129114827, 19.834818041894927, 41.3344877725846, 82.32125748901285, 51.766820304978005, 35.76686753024889, 30.712644421180055, 57.21960281314114, 84.52353382498636, 117.2171876439747, 17.988247076155883, 78.60681834002735, 110.17164666979623, 5.116054195626361, 48.601899354909385, 112.34285550112753, 60.84030357821719, 86.59890910085085, 111.4861737786078, 69.81325529705687, 25.046556550487384, 8.478927996370796, 126.86514387961142, 114.43545697330703, 81.5294214977427, 6.222931339020306, 64.16230331262592, 31.415484408683987, 20.770178980579082, 73.58147400930095, 23.10880587655121, 86.12888841147956, 43.07426991697638, 53.51870850761383, 23.10050020863677, 23.684564234882348, 46.163278910258754, 27.25406495934508, 8.422903028074142, 90.49361220847759, 19.673960588742116, 49.44305025056924, 94.25738242861601, 12.442752790602785, 51.01274089183441, 154.72722987235974, 23.562380263783425, 14.3683235498829, 24.50394102074461, 50.3083339891372, 17.68888340821811, 20.829702375341068, 108.02082942056391, 24.679895754434696, 79.19069681378141, 43.71321224871488, 60.37749128196265, 163.56653718886818, 5.2530677779295445, 8.275968207027109, 13.091644791491138, 57.161284198672604, 13.970476888064125, 45.45047230695492, 64.69078563873414, 7.759792777181251, 365.9010641159784, 77.29286126741769, 163.72989736398173, 12.765496384940967, 5.826279504143985, 10.61638818788618, 76.7494923967529, 74.71383758482779, 5.823049172806117, 52.449067656472124, 18.32569565133059, 27.896602622357342, 5.218651163209718, 64.26138098903172, 5.124114821076647, 122.22080482764136, 8.61887333307082, 42.85979897924433, 63.76042877504905, 92.73584783165711, 19.753582687102064, 5.2068851896883706, 59.50011912724936, 45.940439225956936, 10.678435509721496, 36.058567378809705, 10.942230368800901, 82.18386644355913, 31.441544529150928, 9.81394936014742, 75.5118218748675, 9.77666388559508, 125.15538027101888, 5.978682380413563, 30.44105099973003, 32.921884296857264, 10.28188264389288, 45.48962657404179, 15.247516071637985, 59.583948091192696, 11.579410835407998, 119.24686877120371, 76.82539992858773, 38.94585228292225, 506.40995810574105, 5.439592493866544, 5.883046792414306, 13.571026640672379, 140.24484016705867, 22.267876113787082, 56.95448671505733, 21.947048040597178, 32.79427106498732, 78.52613252290107, 19.006057387980626, 8.936889448755803, 17.753265941786402, 20.68933903072391, 11.687907860547911, 5.998792431020123, 71.39445266194377, 11.63335595974468, 37.56182399885184, 14.781788885938257, 48.76849873209662, 61.85615580138933, 21.824116932011908, 8.511626538814165, 58.44721534666104, 47.267854978287374, 13.917842678822794, 135.30344077390146, 14.683016671687689, 5.1054179971729985, 70.9633847899845, 25.650874406678724, 10.849406138428021, 25.89861986546821, 7.310536513682091, 74.91153281700944, 26.41770626723818, 17.959134757365884, 19.31294523218041, 23.975255105520283, 29.684025962294847, 6.066441035727351, 41.7140193693156, 53.269363119372834, 6.812235845211994, 42.87222497900701, 62.84319632915695, 6.418408094684663, 5.331106914367831, 81.90555150067287, 28.038543019387376, 36.25763529720525, 5.7771075828996405, 6.334052878571075, 9.815952514442504, 11.410296326565588, 26.83175394864165, 20.241060672831708, 48.73739401637667, 11.52284002024267])
caption, xmean,count, xle, Etot = energy_spectrum(E_tot)
hist_file(E_hist, xmean, count, caption);
([5825664.0625, 5964681.25, 6183448.4375, 6183496.875, 6244489.0625, 6269584.375, 6308315.625, 6308325.0, 6446665.625, 6458345.3125, 6667712.5, 6685240.625, 6721215.625, 6765240.625, 6807867.1875, 6809750.0, 6813034.375, 6844090.625, 6849140.625, 6872109.375, 6875432.8125, 6875628.125, 6876187.5, 6877759.375, 6881187.5, 6891495.3125, 6893521.875, 6893646.875, 6893829.6875, 6895929.6875, 6899459.375, 6906690.625, 6932601.5625, 6933889.0625, 6983084.375, 6984579.6875, 6985698.4375, 6987079.6875, 6987998.4375, 6994518.75, 6994535.9375, 7010959.375, 7013142.1875, 7018878.125, 7028606.25, 7038973.4375, 7048204.6875, 7064859.375, 7065631.25, 7069281.25, 7069410.9375, 7076825.0, 7077803.125, 7077804.6875, 7140314.0625, 7143948.4375, 7145185.9375, 7145239.0625, 7145518.75, 7147479.6875, 7147553.125, 7148650.0, 7149539.0625, 7180850.0, 7230098.4375, 7234517.1875, 7235804.6875, 7237131.25, 7238785.9375, 7239198.4375, 7239206.25, 7241850.0, 7247603.125, 7269587.5, 7273012.5, 7273040.625, 7274182.8125, 7274239.0625, 7275373.4375, 7335078.125, 7340415.625, 7373157.8125, 7383800.0, 7412531.25, 7412603.125, 7412714.0625, 7412920.3125, 7493425.0, 7502667.1875, 7506651.5625, 7507484.375, 7526714.0625, 7528262.5, 7563751.5625, 7587296.875, 7687737.5, 7690685.9375, 7706579.6875, 7727653.125, 7739420.3125, 7739462.5, 7808070.3125, 7830565.625, 7872437.5, 8007396.875, 8341712.5, 8379160.9375, 8381503.125, 8383912.5, 8417334.375, 8417335.9375, 8470471.875, 8471343.75, 8505993.75, 8542037.5, 8568267.1875, 8572959.375, 8579726.5625, 8580492.1875, 8581165.625, 8582318.75, 8585337.5, 8585782.8125, 8585867.1875, 8587151.5625, 8604117.1875, 8606662.5, 8610257.8125, 8613781.25, 8614696.875, 8614718.75, 8622451.5625, 8628834.375, 8657979.6875, 8659148.4375, 8660032.8125, 8660051.5625, 8660876.5625, 8661703.125, 8663315.625, 8663548.4375, 8717567.1875, 8724803.125, 8727410.9375, 8759106.25, 8768100.0, 8787100.0, 8789475.0, 8797596.875, 8805643.75, 8817317.1875, 8835214.0625, 8845976.5625, 8849365.625, 8854175.0, 8858131.25, 8870731.25, 8880693.75, 8880943.75, 8881825.0, 8883296.875, 8883745.3125, 8884462.5, 8885545.3125, 8897103.125, 8906562.5, 8919917.1875, 8921350.0, 8942131.25, 8977285.9375, 8977756.25, 8977784.375, 8978810.9375, 8982320.3125, 8982984.375, 8984060.9375, 9004479.6875, 9005478.125, 9008710.9375, 9009618.75, 9011304.6875, 9011429.6875, 9011692.1875, 9012712.5, 9013009.375, 9017962.5, 9018678.125, 9019093.75, 9019145.3125, 9019654.6875, 9020115.625, 9020803.125, 9021254.6875, 9049975.0, 9054678.125, 9061353.125, 9061957.8125, 9063625.0, 9077015.625, 9077559.375, 9077825.0, 9078584.375, 9078807.8125, 9078889.0625, 9079075.0, 9079104.6875, 9079254.6875, 9079350.0, 9080801.5625, 9107996.875, 9124971.875, 9125054.6875, 9133045.3125, 9133103.125, 9139359.375, 9141514.0625, 9141571.875, 9142643.75, 9154228.125, 9156871.875, 9165632.8125, 9167878.125, 9188289.0625, 9196757.8125, 9199757.8125, 9200657.8125, 9213303.125, 9214403.125, 9222943.75, 9223278.125, 9272682.8125, 9275098.4375, 9278856.25, 9280564.0625, 9282968.75, 9283431.25, 9284323.4375, 9284670.3125, 9285350.0, 9285351.5625, 9287135.9375, 9289368.75, 9289821.875, 9290242.1875, 9294334.375, 9294335.9375, 9297614.0625, 9355620.3125, 9370820.3125, 9370846.875, 9377315.625, 9384893.75, 9389198.4375, 9403668.75, 9501976.5625, 9527784.375, 9527845.3125, 9529146.875, 9607065.625, 9607120.3125, 9607135.9375, 9607951.5625, 9609626.5625, 9662370.3125, 9691567.1875, 9698954.6875, 9704787.5, 9735109.375, 9735206.25, 9735225.0, 9735431.25, 9770365.625, 9802659.375, 9806831.25, 9811015.625, 9846595.3125, 9846667.1875, 9947807.8125, 9947859.375, 9990043.75, 10078543.75, 10118215.625, 10118350.0, 10119262.5, 10121634.375, 10121718.75, 10122601.5625, 10122762.5, 10123315.625, 10130289.0625, 10130337.5, 10131168.75, 10131445.3125, 10132109.375, 10134175.0, 10135403.125, 10145554.6875, 10155187.5, 10158640.625, 10238875.0, 10239701.5625, 10245701.5625, 10260453.125, 10261712.5, 10264143.75, 10264725.0, 10265131.25, 10265134.375, 10288364.0625, 10288420.3125, 10288451.5625, 10333176.5625, 10718607.8125, 10776956.25, 10786128.125, 10833823.4375, 10839576.5625, 11397721.875, 11398473.4375, 11401743.75, 11401842.1875, 11402460.9375, 11403832.8125, 11407243.75, 11407495.3125, 11407579.6875, 11420721.875, 11423128.125, 11424450.0, 11425265.625, 11428465.625, 11428504.6875, 11428789.0625, 11429393.75, 11429914.0625, 11430215.625, 11431356.25, 11431443.75, 11432110.9375, 11432821.875, 11433157.8125, 11433262.5, 11433501.5625, 11433604.6875, 11433867.1875, 11433896.875, 11433968.75, 11434167.1875, 11435857.8125, 11436273.4375, 11436548.4375, 11436779.6875, 11437117.1875, 11437509.375, 11437568.75, 11437571.875, 11437654.6875, 11437718.75, 11438050.0, 11438162.5, 11438228.125, 11438539.0625, 11439128.125, 11441318.75, 11441835.9375, 11445015.625, 11446795.3125, 11462060.9375], [108.76446968708598, 12.000874857203842, 11.162958071975895, 7.444575825299894, 19.12897083951218, 10.575933092875658, 232.18923557188054, 12.919657560061271, 57.2150244136963, 71.6633332725283, 61.241050018544584, 23.326287958140668, 84.66612141450986, 7.557893950635196, 17.223336461551092, 23.293880970523873, 9.764032869355878, 65.74630461394251, 5.95721892917164, 74.7946182301088, 17.5158351542823, 14.278268207245379, 43.29705605759113, 67.12500332987155, 31.742569886745382, 7.875440866745615, 44.362231073574215, 52.3760286430971, 21.40798785683659, 90.69965458293528, 73.02592051602966, 12.386455422235144, 51.13789074896209, 51.713302993506886, 50.02893440106012, 20.716574272814604, 71.97573143752822, 20.754667156259742, 145.22685105247115, 49.47565978810142, 24.186787427744694, 14.299586815375456, 11.856680226113937, 7.405913367929227, 30.220157550634475, 51.02452190503858, 7.800214839166169, 18.84187150711646, 112.02123670212161, 56.791817330233826, 17.864330588806602, 39.07628807977944, 25.5417737640821, 27.39980618050264, 63.9962702105731, 33.08095609278223, 38.25515816197931, 88.6511417208713, 50.36894230602807, 13.660803262558785, 5.03996345925744, 7.677471166865372, 36.91001766740153, 20.935843939456852, 77.75450518055153, 21.20806770201249, 13.463150819149549, 19.654496135324912, 99.49333495965323, 11.514855674003112, 9.696304461970396, 6.446891013257846, 49.774026947718966, 7.436568215518933, 16.341765572031814, 116.32812513721859, 34.09902684582221, 8.81329893862924, 45.427578719535276, 77.75413139506874, 87.71149787425229, 99.20912068568276, 213.64353803504915, 60.31816209294091, 69.05905476054676, 38.84616431075349, 97.66824956389983, 6.795148097269219, 50.469832738135935, 12.90636079526614, 55.84734399859354, 14.825492471331515, 229.29068740689624, 51.162801572895745, 20.81133405231021, 23.24780816290909, 37.62279412588305, 11.19647491195622, 25.312973167039754, 78.4040460551839, 55.158048006314665, 65.56333058896745, 14.002406439334973, 11.086556177856492, 23.412358585404053, 120.73314302317425, 9.26336718453205, 181.48731026586321, 17.145645714500837, 237.0781427544102, 41.53234575994451, 7.462509136977769, 26.81013598277565, 67.9738787551252, 119.09346225115902, 20.202748158049324, 8.106024944951532, 51.236601830253605, 31.63187689812487, 5.670834640008468, 76.80101641061586, 93.68612262422208, 48.79303090360649, 18.62569078308781, 55.917012161756816, 63.41317762963726, 11.689766213068683, 27.51942403864989, 25.263928359773374, 8.477766065852931, 14.748850391213665, 19.06567839609726, 171.80030782833782, 74.7899969637871, 13.76633630492478, 48.36322971234335, 6.457299067947852, 36.59586828386358, 26.83083489075165, 34.24038861827099, 77.03619516711086, 22.57923926691832, 18.1978011093513, 110.52301331267617, 88.51369152732806, 23.614130658231527, 14.247499976366344, 257.5044396398329, 59.552535175011315, 147.6623503603256, 28.134854738758705, 26.281452939487565, 17.90549127475783, 158.29263250646272, 25.90407523539066, 183.05992146304897, 115.1337881480818, 35.00525331374218, 70.1716312302083, 122.41429494750656, 18.819497608569904, 12.954319967201117, 43.054313658420554, 13.315668594635467, 57.7623785596907, 9.790358958993473, 33.43344995282144, 109.25551390458563, 78.36306074143971, 132.685732708151, 61.60039226469537, 44.884980766696124, 9.601136235619, 46.15105824514628, 35.81883833825274, 9.62958925814302, 150.11566551098954, 21.462494665171615, 45.6789564535042, 14.411073001228297, 180.41840100375734, 29.695749304491912, 6.405246777271993, 24.948790962202548, 14.194168362736033, 8.231118295796495, 170.0618027746631, 29.559456967460264, 45.558729645373354, 22.903286786825387, 126.96994635878744, 55.58082424056796, 10.924333287424004, 8.63426817550537, 18.97295773532743, 32.98611485712869, 23.938994791383937, 28.459116539031424, 9.667784129114827, 19.834818041894927, 41.3344877725846, 82.32125748901285, 51.766820304978005, 35.76686753024889, 30.712644421180055, 57.21960281314114, 84.52353382498636, 117.2171876439747, 17.988247076155883, 78.60681834002735, 110.17164666979623, 5.116054195626361, 48.601899354909385, 112.34285550112753, 60.84030357821719, 86.59890910085085, 111.4861737786078, 69.81325529705687, 25.046556550487384, 8.478927996370796, 126.86514387961142, 114.43545697330703, 81.5294214977427, 6.222931339020306, 64.16230331262592, 31.415484408683987, 20.770178980579082, 73.58147400930095, 23.10880587655121, 86.12888841147956, 43.07426991697638, 53.51870850761383, 23.10050020863677, 23.684564234882348, 46.163278910258754, 27.25406495934508, 8.422903028074142, 90.49361220847759, 19.673960588742116, 49.44305025056924, 94.25738242861601, 12.442752790602785, 51.01274089183441, 154.72722987235974, 23.562380263783425, 14.3683235498829, 24.50394102074461, 50.3083339891372, 17.68888340821811, 20.829702375341068, 108.02082942056391, 24.679895754434696, 79.19069681378141, 43.71321224871488, 60.37749128196265, 163.56653718886818, 5.2530677779295445, 8.275968207027109, 13.091644791491138, 57.161284198672604, 13.970476888064125, 45.45047230695492, 64.69078563873414, 7.759792777181251, 365.9010641159784, 77.29286126741769, 163.72989736398173, 12.765496384940967, 5.826279504143985, 10.61638818788618, 76.7494923967529, 74.71383758482779, 5.823049172806117, 52.449067656472124, 18.32569565133059, 27.896602622357342, 5.218651163209718, 64.26138098903172, 5.124114821076647, 122.22080482764136, 8.61887333307082, 42.85979897924433, 63.76042877504905, 92.73584783165711, 19.753582687102064, 5.2068851896883706, 59.50011912724936, 45.940439225956936, 10.678435509721496, 36.058567378809705, 10.942230368800901, 82.18386644355913, 31.441544529150928, 9.81394936014742, 75.5118218748675, 9.77666388559508, 125.15538027101888, 5.978682380413563, 30.44105099973003, 32.921884296857264, 10.28188264389288, 45.48962657404179, 15.247516071637985, 59.583948091192696, 11.579410835407998, 119.24686877120371, 76.82539992858773, 38.94585228292225, 506.40995810574105, 5.439592493866544, 5.883046792414306, 13.571026640672379, 140.24484016705867, 22.267876113787082, 56.95448671505733, 21.947048040597178, 32.79427106498732, 78.52613252290107, 19.006057387980626, 8.936889448755803, 17.753265941786402, 20.68933903072391, 11.687907860547911, 5.998792431020123, 71.39445266194377, 11.63335595974468, 37.56182399885184, 14.781788885938257, 48.76849873209662, 61.85615580138933, 21.824116932011908, 8.511626538814165, 58.44721534666104, 47.267854978287374, 13.917842678822794, 135.30344077390146, 14.683016671687689, 5.1054179971729985, 70.9633847899845, 25.650874406678724, 10.849406138428021, 25.89861986546821, 7.310536513682091, 74.91153281700944, 26.41770626723818, 17.959134757365884, 19.31294523218041, 23.975255105520283, 29.684025962294847, 6.066441035727351, 41.7140193693156, 53.269363119372834, 6.812235845211994, 42.87222497900701, 62.84319632915695, 6.418408094684663, 5.331106914367831, 81.90555150067287, 28.038543019387376, 36.25763529720525, 5.7771075828996405, 6.334052878571075, 9.815952514442504, 11.410296326565588, 26.83175394864165, 20.241060672831708, 48.73739401637667, 11.52284002024267])
caption, T_hit,count = hits_in_time_hist_new(T_pom, dt, t_plasma_start, t_plasma_end, is_plasma, figure_count_in_time_hist)
hist_file(count_in_time_hist, T_hit, count, caption);
([5825664.0625, 5964681.25, 6183448.4375, 6183496.875, 6244489.0625, 6269584.375, 6308315.625, 6308325.0, 6446665.625, 6458345.3125, 6667712.5, 6685240.625, 6721215.625, 6765240.625, 6807867.1875, 6809750.0, 6813034.375, 6844090.625, 6849140.625, 6872109.375, 6875432.8125, 6875628.125, 6876187.5, 6877759.375, 6881187.5, 6891495.3125, 6893521.875, 6893646.875, 6893829.6875, 6895929.6875, 6899459.375, 6906690.625, 6932601.5625, 6933889.0625, 6983084.375, 6984579.6875, 6985698.4375, 6987079.6875, 6987998.4375, 6994518.75, 6994535.9375, 7010959.375, 7013142.1875, 7018878.125, 7028606.25, 7038973.4375, 7048204.6875, 7064859.375, 7065631.25, 7069281.25, 7069410.9375, 7076825.0, 7077803.125, 7077804.6875, 7140314.0625, 7143948.4375, 7145185.9375, 7145239.0625, 7145518.75, 7147479.6875, 7147553.125, 7148650.0, 7149539.0625, 7180850.0, 7230098.4375, 7234517.1875, 7235804.6875, 7237131.25, 7238785.9375, 7239198.4375, 7239206.25, 7241850.0, 7247603.125, 7269587.5, 7273012.5, 7273040.625, 7274182.8125, 7274239.0625, 7275373.4375, 7335078.125, 7340415.625, 7373157.8125, 7383800.0, 7412531.25, 7412603.125, 7412714.0625, 7412920.3125, 7493425.0, 7502667.1875, 7506651.5625, 7507484.375, 7526714.0625, 7528262.5, 7563751.5625, 7587296.875, 7687737.5, 7690685.9375, 7706579.6875, 7727653.125, 7739420.3125, 7739462.5, 7808070.3125, 7830565.625, 7872437.5, 8007396.875, 8341712.5, 8379160.9375, 8381503.125, 8383912.5, 8417334.375, 8417335.9375, 8470471.875, 8471343.75, 8505993.75, 8542037.5, 8568267.1875, 8572959.375, 8579726.5625, 8580492.1875, 8581165.625, 8582318.75, 8585337.5, 8585782.8125, 8585867.1875, 8587151.5625, 8604117.1875, 8606662.5, 8610257.8125, 8613781.25, 8614696.875, 8614718.75, 8622451.5625, 8628834.375, 8657979.6875, 8659148.4375, 8660032.8125, 8660051.5625, 8660876.5625, 8661703.125, 8663315.625, 8663548.4375, 8717567.1875, 8724803.125, 8727410.9375, 8759106.25, 8768100.0, 8787100.0, 8789475.0, 8797596.875, 8805643.75, 8817317.1875, 8835214.0625, 8845976.5625, 8849365.625, 8854175.0, 8858131.25, 8870731.25, 8880693.75, 8880943.75, 8881825.0, 8883296.875, 8883745.3125, 8884462.5, 8885545.3125, 8897103.125, 8906562.5, 8919917.1875, 8921350.0, 8942131.25, 8977285.9375, 8977756.25, 8977784.375, 8978810.9375, 8982320.3125, 8982984.375, 8984060.9375, 9004479.6875, 9005478.125, 9008710.9375, 9009618.75, 9011304.6875, 9011429.6875, 9011692.1875, 9012712.5, 9013009.375, 9017962.5, 9018678.125, 9019093.75, 9019145.3125, 9019654.6875, 9020115.625, 9020803.125, 9021254.6875, 9049975.0, 9054678.125, 9061353.125, 9061957.8125, 9063625.0, 9077015.625, 9077559.375, 9077825.0, 9078584.375, 9078807.8125, 9078889.0625, 9079075.0, 9079104.6875, 9079254.6875, 9079350.0, 9080801.5625, 9107996.875, 9124971.875, 9125054.6875, 9133045.3125, 9133103.125, 9139359.375, 9141514.0625, 9141571.875, 9142643.75, 9154228.125, 9156871.875, 9165632.8125, 9167878.125, 9188289.0625, 9196757.8125, 9199757.8125, 9200657.8125, 9213303.125, 9214403.125, 9222943.75, 9223278.125, 9272682.8125, 9275098.4375, 9278856.25, 9280564.0625, 9282968.75, 9283431.25, 9284323.4375, 9284670.3125, 9285350.0, 9285351.5625, 9287135.9375, 9289368.75, 9289821.875, 9290242.1875, 9294334.375, 9294335.9375, 9297614.0625, 9355620.3125, 9370820.3125, 9370846.875, 9377315.625, 9384893.75, 9389198.4375, 9403668.75, 9501976.5625, 9527784.375, 9527845.3125, 9529146.875, 9607065.625, 9607120.3125, 9607135.9375, 9607951.5625, 9609626.5625, 9662370.3125, 9691567.1875, 9698954.6875, 9704787.5, 9735109.375, 9735206.25, 9735225.0, 9735431.25, 9770365.625, 9802659.375, 9806831.25, 9811015.625, 9846595.3125, 9846667.1875, 9947807.8125, 9947859.375, 9990043.75, 10078543.75, 10118215.625, 10118350.0, 10119262.5, 10121634.375, 10121718.75, 10122601.5625, 10122762.5, 10123315.625, 10130289.0625, 10130337.5, 10131168.75, 10131445.3125, 10132109.375, 10134175.0, 10135403.125, 10145554.6875, 10155187.5, 10158640.625, 10238875.0, 10239701.5625, 10245701.5625, 10260453.125, 10261712.5, 10264143.75, 10264725.0, 10265131.25, 10265134.375, 10288364.0625, 10288420.3125, 10288451.5625, 10333176.5625, 10718607.8125, 10776956.25, 10786128.125, 10833823.4375, 10839576.5625, 11397721.875, 11398473.4375, 11401743.75, 11401842.1875, 11402460.9375, 11403832.8125, 11407243.75, 11407495.3125, 11407579.6875, 11420721.875, 11423128.125, 11424450.0, 11425265.625, 11428465.625, 11428504.6875, 11428789.0625, 11429393.75, 11429914.0625, 11430215.625, 11431356.25, 11431443.75, 11432110.9375, 11432821.875, 11433157.8125, 11433262.5, 11433501.5625, 11433604.6875, 11433867.1875, 11433896.875, 11433968.75, 11434167.1875, 11435857.8125, 11436273.4375, 11436548.4375, 11436779.6875, 11437117.1875, 11437509.375, 11437568.75, 11437571.875, 11437654.6875, 11437718.75, 11438050.0, 11438162.5, 11438228.125, 11438539.0625, 11439128.125, 11441318.75, 11441835.9375, 11445015.625, 11446795.3125, 11462060.9375], [108.76446968708598, 12.000874857203842, 11.162958071975895, 7.444575825299894, 19.12897083951218, 10.575933092875658, 232.18923557188054, 12.919657560061271, 57.2150244136963, 71.6633332725283, 61.241050018544584, 23.326287958140668, 84.66612141450986, 7.557893950635196, 17.223336461551092, 23.293880970523873, 9.764032869355878, 65.74630461394251, 5.95721892917164, 74.7946182301088, 17.5158351542823, 14.278268207245379, 43.29705605759113, 67.12500332987155, 31.742569886745382, 7.875440866745615, 44.362231073574215, 52.3760286430971, 21.40798785683659, 90.69965458293528, 73.02592051602966, 12.386455422235144, 51.13789074896209, 51.713302993506886, 50.02893440106012, 20.716574272814604, 71.97573143752822, 20.754667156259742, 145.22685105247115, 49.47565978810142, 24.186787427744694, 14.299586815375456, 11.856680226113937, 7.405913367929227, 30.220157550634475, 51.02452190503858, 7.800214839166169, 18.84187150711646, 112.02123670212161, 56.791817330233826, 17.864330588806602, 39.07628807977944, 25.5417737640821, 27.39980618050264, 63.9962702105731, 33.08095609278223, 38.25515816197931, 88.6511417208713, 50.36894230602807, 13.660803262558785, 5.03996345925744, 7.677471166865372, 36.91001766740153, 20.935843939456852, 77.75450518055153, 21.20806770201249, 13.463150819149549, 19.654496135324912, 99.49333495965323, 11.514855674003112, 9.696304461970396, 6.446891013257846, 49.774026947718966, 7.436568215518933, 16.341765572031814, 116.32812513721859, 34.09902684582221, 8.81329893862924, 45.427578719535276, 77.75413139506874, 87.71149787425229, 99.20912068568276, 213.64353803504915, 60.31816209294091, 69.05905476054676, 38.84616431075349, 97.66824956389983, 6.795148097269219, 50.469832738135935, 12.90636079526614, 55.84734399859354, 14.825492471331515, 229.29068740689624, 51.162801572895745, 20.81133405231021, 23.24780816290909, 37.62279412588305, 11.19647491195622, 25.312973167039754, 78.4040460551839, 55.158048006314665, 65.56333058896745, 14.002406439334973, 11.086556177856492, 23.412358585404053, 120.73314302317425, 9.26336718453205, 181.48731026586321, 17.145645714500837, 237.0781427544102, 41.53234575994451, 7.462509136977769, 26.81013598277565, 67.9738787551252, 119.09346225115902, 20.202748158049324, 8.106024944951532, 51.236601830253605, 31.63187689812487, 5.670834640008468, 76.80101641061586, 93.68612262422208, 48.79303090360649, 18.62569078308781, 55.917012161756816, 63.41317762963726, 11.689766213068683, 27.51942403864989, 25.263928359773374, 8.477766065852931, 14.748850391213665, 19.06567839609726, 171.80030782833782, 74.7899969637871, 13.76633630492478, 48.36322971234335, 6.457299067947852, 36.59586828386358, 26.83083489075165, 34.24038861827099, 77.03619516711086, 22.57923926691832, 18.1978011093513, 110.52301331267617, 88.51369152732806, 23.614130658231527, 14.247499976366344, 257.5044396398329, 59.552535175011315, 147.6623503603256, 28.134854738758705, 26.281452939487565, 17.90549127475783, 158.29263250646272, 25.90407523539066, 183.05992146304897, 115.1337881480818, 35.00525331374218, 70.1716312302083, 122.41429494750656, 18.819497608569904, 12.954319967201117, 43.054313658420554, 13.315668594635467, 57.7623785596907, 9.790358958993473, 33.43344995282144, 109.25551390458563, 78.36306074143971, 132.685732708151, 61.60039226469537, 44.884980766696124, 9.601136235619, 46.15105824514628, 35.81883833825274, 9.62958925814302, 150.11566551098954, 21.462494665171615, 45.6789564535042, 14.411073001228297, 180.41840100375734, 29.695749304491912, 6.405246777271993, 24.948790962202548, 14.194168362736033, 8.231118295796495, 170.0618027746631, 29.559456967460264, 45.558729645373354, 22.903286786825387, 126.96994635878744, 55.58082424056796, 10.924333287424004, 8.63426817550537, 18.97295773532743, 32.98611485712869, 23.938994791383937, 28.459116539031424, 9.667784129114827, 19.834818041894927, 41.3344877725846, 82.32125748901285, 51.766820304978005, 35.76686753024889, 30.712644421180055, 57.21960281314114, 84.52353382498636, 117.2171876439747, 17.988247076155883, 78.60681834002735, 110.17164666979623, 5.116054195626361, 48.601899354909385, 112.34285550112753, 60.84030357821719, 86.59890910085085, 111.4861737786078, 69.81325529705687, 25.046556550487384, 8.478927996370796, 126.86514387961142, 114.43545697330703, 81.5294214977427, 6.222931339020306, 64.16230331262592, 31.415484408683987, 20.770178980579082, 73.58147400930095, 23.10880587655121, 86.12888841147956, 43.07426991697638, 53.51870850761383, 23.10050020863677, 23.684564234882348, 46.163278910258754, 27.25406495934508, 8.422903028074142, 90.49361220847759, 19.673960588742116, 49.44305025056924, 94.25738242861601, 12.442752790602785, 51.01274089183441, 154.72722987235974, 23.562380263783425, 14.3683235498829, 24.50394102074461, 50.3083339891372, 17.68888340821811, 20.829702375341068, 108.02082942056391, 24.679895754434696, 79.19069681378141, 43.71321224871488, 60.37749128196265, 163.56653718886818, 5.2530677779295445, 8.275968207027109, 13.091644791491138, 57.161284198672604, 13.970476888064125, 45.45047230695492, 64.69078563873414, 7.759792777181251, 365.9010641159784, 77.29286126741769, 163.72989736398173, 12.765496384940967, 5.826279504143985, 10.61638818788618, 76.7494923967529, 74.71383758482779, 5.823049172806117, 52.449067656472124, 18.32569565133059, 27.896602622357342, 5.218651163209718, 64.26138098903172, 5.124114821076647, 122.22080482764136, 8.61887333307082, 42.85979897924433, 63.76042877504905, 92.73584783165711, 19.753582687102064, 5.2068851896883706, 59.50011912724936, 45.940439225956936, 10.678435509721496, 36.058567378809705, 10.942230368800901, 82.18386644355913, 31.441544529150928, 9.81394936014742, 75.5118218748675, 9.77666388559508, 125.15538027101888, 5.978682380413563, 30.44105099973003, 32.921884296857264, 10.28188264389288, 45.48962657404179, 15.247516071637985, 59.583948091192696, 11.579410835407998, 119.24686877120371, 76.82539992858773, 38.94585228292225, 506.40995810574105, 5.439592493866544, 5.883046792414306, 13.571026640672379, 140.24484016705867, 22.267876113787082, 56.95448671505733, 21.947048040597178, 32.79427106498732, 78.52613252290107, 19.006057387980626, 8.936889448755803, 17.753265941786402, 20.68933903072391, 11.687907860547911, 5.998792431020123, 71.39445266194377, 11.63335595974468, 37.56182399885184, 14.781788885938257, 48.76849873209662, 61.85615580138933, 21.824116932011908, 8.511626538814165, 58.44721534666104, 47.267854978287374, 13.917842678822794, 135.30344077390146, 14.683016671687689, 5.1054179971729985, 70.9633847899845, 25.650874406678724, 10.849406138428021, 25.89861986546821, 7.310536513682091, 74.91153281700944, 26.41770626723818, 17.959134757365884, 19.31294523218041, 23.975255105520283, 29.684025962294847, 6.066441035727351, 41.7140193693156, 53.269363119372834, 6.812235845211994, 42.87222497900701, 62.84319632915695, 6.418408094684663, 5.331106914367831, 81.90555150067287, 28.038543019387376, 36.25763529720525, 5.7771075828996405, 6.334052878571075, 9.815952514442504, 11.410296326565588, 26.83175394864165, 20.241060672831708, 48.73739401637667, 11.52284002024267])
Detected energies during the discharge + Energy spectrum
multiplot(icon_fig, T_int_first,E,xle,Etot)