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 = 44355
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);
([6080232.8125, 6762039.0625, 6910614.0625, 6920485.9375, 6963542.1875, 6965121.875, 7343978.125, 7537439.0625, 7579987.5, 7698945.3125, 7705070.3125, 7728292.1875, 7753101.5625, 7818876.5625, 7905085.9375, 7971668.75, 8071839.0625, 8080870.3125, 8164701.5625, 8189748.4375, 8203832.8125, 8206784.375, 8239345.3125, 8240128.125, 8269126.5625, 8278300.0, 8283107.8125, 8290350.0, 8291550.0, 8315992.1875, 8320151.5625, 8358254.6875, 8359007.8125, 8360239.0625, 8360334.375, 8360359.375, 8360370.3125, 8368857.8125, 8368918.75, 8386957.8125, 8391946.875, 8439678.125, 8477075.0, 8530668.75, 8545323.4375, 8545493.75, 8546323.4375, 8547390.625, 8560256.25, 8578945.3125, 8580370.3125, 8582537.5, 8586801.5625, 8591940.625, 8593312.5, 8597810.9375, 8599943.75, 8603123.4375, 8625248.4375, 8626095.3125, 8630546.875, 8635746.875, 8641012.5, 8660171.875, 8660559.375, 8662918.75, 8680910.9375, 8703340.625, 8704226.5625, 8706593.75, 8708492.1875, 8784617.1875, 8849843.75, 8853989.0625, 8931734.375, 8943987.5, 8945729.6875, 8948114.0625, 8957301.5625, 8976532.8125, 9080054.6875, 9083132.8125, 9131560.9375, 9135714.0625, 9137412.5, 9161440.625, 9193332.8125, 9194253.125, 9199590.625, 9237017.1875, 9258871.875, 9260057.8125, 9271243.75, 9272132.8125, 9272914.0625, 9276025.0, 9288621.875, 9288684.375, 9333451.5625, 9342142.1875, 9344489.0625, 9351317.1875, 9369115.625, 9370585.9375, 9426775.0, 9440039.0625, 9441610.9375, 9442451.5625, 9457378.125, 9481014.0625, 9481392.1875, 9481412.5, 9481862.5, 9485134.375, 9499162.5, 9500248.4375, 9501442.1875, 9501978.125, 9502993.75, 9517281.25, 9518743.75, 9522728.125, 9524393.75, 9560543.75, 9636875.0, 9637256.25, 9640932.8125, 9641489.0625, 9645251.5625, 9645310.9375, 9645360.9375, 9647871.875, 9663407.8125, 9664473.4375, 9671350.0, 9677718.75, 9681654.6875, 9693484.375, 9702995.3125, 9754626.5625, 9778395.3125, 9830984.375, 9882153.125, 9882914.0625, 9882951.5625, 9925267.1875, 9933465.625, 9936626.5625, 9937993.75, 9943556.25, 9944453.125, 9945968.75, 9946406.25, 9946540.625, 9948503.125, 9984148.4375, 9999695.3125, 10002564.0625, 10002585.9375, 10043296.875, 10063353.125, 10077434.375, 10138870.3125, 10157193.75, 10205839.0625, 10318559.375, 10975318.75, 10985131.25, 11018796.875, 11102454.6875, 11113006.25, 11134478.125, 11136165.625, 11136168.75, 11137037.5, 11137928.125, 11138059.375, 11138745.3125, 11141309.375, 11141873.4375, 11144537.5, 11168637.5, 11181467.1875, 11183895.3125, 11185595.3125, 11216275.0, 11220967.1875, 11222435.9375, 11229434.375, 11232295.3125, 11238918.75, 11251175.0, 11444426.5625, 11469156.25, 11469725.0, 11469868.75, 11470428.125, 11483809.375, 11536509.375, 11558551.5625, 11559596.875, 11934118.75, 12005612.5, 12744267.1875, 12751020.3125, 12785645.3125, 12789315.625, 12793498.4375, 12794009.375, 12794476.5625, 12797982.8125, 12800014.0625, 12808253.125, 12808675.0, 12816398.4375, 12819692.1875, 12820198.4375, 12822326.5625, 12822428.125, 12823040.625, 12823045.3125, 12823676.5625, 12824795.3125, 12824796.875, 12824842.1875, 12825292.1875, 12825667.1875, 12826646.875, 12826651.5625, 12827529.6875, 12828912.5, 12829742.1875, 12829792.1875, 12830382.8125, 12830518.75, 12830812.5, 12830940.625, 12831106.25, 12835703.125, 12836643.75, 12840159.375, 12840403.125, 12840829.6875, 12840942.1875, 12841159.375, 12841500.0, 12846904.6875, 12847529.6875, 12850290.625, 12851368.75, 12853175.0, 12854612.5, 12856878.125, 12857293.75, 12857725.0, 12859064.0625, 12859237.5, 12861896.875, 12864229.6875, 12864245.3125, 12867289.0625, 12868807.8125, 12870409.375, 12870875.0, 12871975.0, 12872634.375, 12872670.3125, 12875209.375, 12876387.5, 12876659.375, 12877904.6875, 12879923.4375, 12879984.375, 12880059.375, 12880253.125, 12880795.3125, 12882628.125, 12883201.5625, 12883717.1875, 12883728.125, 12883737.5, 12884542.1875, 12885079.6875, 12885370.3125, 12886904.6875, 12888795.3125, 12888876.5625, 12889684.375, 12889854.6875, 12891448.4375, 12891951.5625, 12892267.1875, 12892278.125, 12893264.0625, 12894023.4375, 12897965.625, 12898118.75, 12898118.75, 12898440.625, 12900757.8125, 12901306.25, 12903134.375, 12910418.75, 12910440.625, 12910568.75, 12910570.3125, 12910704.6875, 12910718.75, 12910731.25, 12910759.375, 12910803.125, 12910848.4375, 12910982.8125, 12911000.0, 12911010.9375, 12911017.1875, 12912228.125, 12916312.5, 12916889.0625, 12924156.25, 12927560.9375, 12931796.875, 12932035.9375, 12933071.875, 12933350.0, 12939459.375, 12939642.1875, 12940876.5625, 12940979.6875, 12941546.875, 12942839.0625, 12943095.3125, 12943232.8125, 12943476.5625, 12943479.6875, 12943828.125, 12944687.5, 12945707.8125, 12947473.4375, 12950987.5, 12951346.875, 12951432.8125, 12951698.4375, 12951750.0, 12954271.875, 12954351.5625, 12955012.5, 12957726.5625, 12959031.25, 12959500.0, 12959539.0625, 12960843.75, 12961859.375, 12963104.6875, 12964043.75, 12965510.9375, 12966543.75, 12967209.375, 12968156.25, 12968587.5, 12969748.4375, 12970470.3125, 12972260.9375, 12972590.625, 12973268.75, 12974029.6875, 12974662.5, 12975198.4375, 12975932.8125, 12976057.8125, 12982201.5625, 12982904.6875, 12986221.875, 12988396.875, 12989965.625, 13014637.5, 13025496.875, 58917862.5], [27.849821996621284, 60.500791230954924, 26.79385006686414, 23.41593291973486, 6.880427503501954, 68.77689668086003, 47.556601400429294, 23.601426716576483, 73.10367949857005, 15.770782503086227, 184.06505795037836, 269.9371466561336, 93.90222961809903, 43.24260590517391, 20.80311777603059, 19.029494981178438, 58.88898863621846, 48.857721023775746, 97.856203191525, 17.485226799356916, 6.159596829234166, 39.95225582000322, 8.200876114638579, 25.128427873596877, 43.48802214106113, 30.765739578647125, 21.88064910027788, 21.201534198322573, 145.63061083678065, 29.09340612392039, 30.060737386305753, 13.71098377875418, 19.091551901278365, 29.758797212973604, 131.3174777338663, 19.352542075597754, 5.498397096190623, 137.17417154509062, 6.808834188858077, 6.296605222186079, 157.22140595960045, 6.447657103506088, 13.292306237548841, 72.56320360541626, 8.808686099975857, 46.58452587426719, 12.264725564189867, 9.077668160971427, 10.238165173691097, 44.16526196168185, 75.0865494718268, 142.36328269747864, 104.17466452511549, 15.826880332489736, 27.43570554068998, 64.30245190167457, 21.32466542135201, 137.71301300623628, 67.49018927440407, 104.73538681617089, 6.446436050798025, 5.544009323446635, 24.263027525467862, 90.52858538543434, 175.23867906290252, 23.501131180152015, 52.03059830918923, 30.119940065170717, 82.33636471256072, 302.4818844791614, 13.080272175650027, 18.860762623964327, 32.77415675495182, 16.195603677980166, 6.551487302475189, 78.20882772725368, 72.13071272800045, 7.56705593931459, 30.447476936147428, 55.84397038697488, 37.60082206202503, 183.16628360969173, 167.81988046812887, 9.510466757823037, 70.63569010332584, 50.833770875120386, 16.04336164040712, 62.17866012115502, 28.229372687254266, 120.11674339798861, 9.85427189749287, 170.53081373899687, 6.400386269681516, 7.337987235968299, 44.67717150636797, 33.39059103851385, 73.21238020090786, 5.064378452959632, 92.27599150963331, 75.44840111705791, 105.29723377446751, 94.707208814785, 8.646467379118656, 128.85100932553078, 57.57450577037462, 24.243294615433612, 5.462908258075807, 76.98670623883814, 47.62907591029298, 57.967946335605106, 104.38681342100413, 55.755388881135566, 39.43430428701217, 42.02881741754261, 75.61030556454901, 46.1722422350717, 73.88859418801741, 11.039902847147069, 12.072277470222646, 386.6158819702812, 94.48225793807498, 12.422891816623938, 181.91627064996396, 172.3522778524273, 40.777121570724354, 13.674621922736812, 65.85857135210924, 106.620883369273, 14.984056102985198, 5.170490678380054, 8.286636232236523, 161.17980047116924, 182.07686842952864, 48.14932666539637, 96.85682573577971, 17.101054405588012, 64.83322927385221, 29.013967873040176, 31.14451471779802, 15.549873244630609, 16.100864278272482, 16.087369186815575, 50.57833410812664, 12.783260678979785, 31.680231825152582, 91.42410017579924, 39.42797870811253, 86.67602188084486, 15.208862221882201, 22.440966356673066, 32.50587998208353, 65.61475922256909, 36.721782702768785, 24.577936604154896, 16.69799168478043, 93.12068258753024, 57.32688703884331, 9.447226149186267, 19.91408055135898, 33.655428174679614, 33.772033400705105, 111.89485436749518, 178.68827991280105, 65.71249353732551, 39.862860199008615, 20.208456826763168, 8.091160985467795, 29.590265134803317, 31.219907630576667, 76.0836406851573, 6.891999783314974, 15.423346114781786, 69.51624409338962, 46.303738529864496, 104.16406013000946, 22.014473954806064, 20.17229604206059, 8.608138926121033, 32.48116316186457, 26.112064364535748, 13.166722561434831, 65.01522078646046, 20.462275919526967, 226.00706119472707, 176.3317963520138, 42.37818027551869, 11.61270757990534, 169.38052118568243, 125.4631970762728, 50.704531706597734, 26.592816492260738, 75.69099559729753, 10.318081361108247, 55.82585247082339, 277.06024870959124, 135.72238111993704, 44.08794957559448, 78.99246412518566, 317.6301210733693, 159.80388640770028, 63.54984154671017, 15.18823621482342, 127.14465215600887, 7.339030516011963, 73.22100598022888, 61.32982941927493, 73.0748467319867, 13.377925434912019, 15.080153785317659, 15.40346983272959, 77.65262380582486, 53.62340457781424, 30.856454654965138, 55.91109523020177, 11.155057393947194, 11.54746042715561, 54.684348868552675, 19.15580034201113, 35.87525037148717, 25.64316153983051, 6.793610657873253, 5.52037701020905, 62.83157977016704, 15.976742616656738, 87.47335145701541, 22.27365955155479, 84.47960660435075, 65.30610589675833, 33.49911649624467, 159.288689846235, 17.095755811593797, 33.37667388085461, 72.9340741034889, 55.604419372166575, 50.71085001076148, 29.449164719325356, 15.578116120508252, 14.017031136721512, 82.61197122429813, 82.70628985544909, 34.451123232456084, 46.457089456776444, 22.929211811219027, 10.184247542379822, 173.2723793161586, 14.73157444747981, 18.332463732305275, 6.436382060892586, 61.595160723239516, 19.701053815606354, 28.11148579197551, 25.782775815701463, 12.705832276155856, 6.08742302931833, 8.29098497124305, 19.99866955925107, 6.4412273896822505, 18.94424560445802, 18.16782182235235, 17.61421305427768, 75.20631838456744, 74.08228287818085, 19.630450256834585, 79.6765027519838, 10.894439317445409, 82.88631001267011, 23.826065155949287, 67.85761728679563, 11.157794546329383, 43.75257213569251, 49.653479644470664, 76.27933055015791, 109.05919738111632, 14.903636444002514, 64.64438789889809, 34.17951993457979, 38.873598918242294, 10.510937456619589, 17.42626165257555, 5.25267118568138, 19.931301711137667, 9.019863052604057, 14.847398850576742, 17.07535559050968, 83.6285310283598, 14.850619376261317, 48.665471204503724, 59.187615410081136, 10.392035683046684, 33.47911740185308, 119.5192199597584, 130.7594454701575, 11.759323109300727, 15.975988902502634, 29.80774544973362, 7.266714097573395, 21.186863935081842, 17.271405317693027, 14.863325862399092, 25.267657825277446, 43.72740552144538, 21.858876746954845, 50.95043764025541, 6.09854537682136, 33.11459447922568, 20.926993595551323, 56.93781906184252, 13.414275781225015, 67.02437514656849, 32.17091076897911, 41.72910689611227, 47.48270303812713, 17.303625568087764, 84.31503461151671, 10.851537351371901, 98.66609474301364, 40.810475321121835, 10.39927383935376, 81.7748548896829, 136.9341624381376, 61.20282461151388, 23.04824920383125, 87.91859560978047, 54.70519687429388, 47.4484038485116, 12.453403253193807, 6.603561285002569, 17.497895787059072, 37.965085369495185, 26.28236915864449, 147.085080007392, 25.496082326891482, 25.53851688523548, 5.2174351529597445, 77.06262191553182, 38.7673442428952, 17.395598906069576, 7.110316208532574, 28.152681525807676, 25.502937364249753, 19.28318334349049, 5.25327063207649, 7.688520201759892, 5.075698470650918, 47.82915857888818, 7.281440447254141, 8.922339503410228, 13.892715495178447, 38.63613219747069, 61.319110975823165, 8.302754406947006, 7.239489557365407, 38.367873466426836, 94.68269048623031, 7.302941431842313, 13.838872627667214, 26.725270468696976, 15.327625849078688, 53.04468385761387, 22.700282084541612, 31.681304410937045, 19.05116940609873, 14.050158313378157, 15.401487213566977, 49.55066427803253, 44.27307898305643, 5.613779765163099, 48.07650791101183, 67.34561076655847, 43.32431494051131, 59.314822145899285, 42.69419757131935, 12.313334195459353, 151.54058759795004, 27.30476767661624, 48.86950099679599, 40.95151849531108, 8.183076756021096])
caption, xmean,count, xle, Etot = energy_spectrum(E_tot)
hist_file(E_hist, xmean, count, caption);
([6080232.8125, 6762039.0625, 6910614.0625, 6920485.9375, 6963542.1875, 6965121.875, 7343978.125, 7537439.0625, 7579987.5, 7698945.3125, 7705070.3125, 7728292.1875, 7753101.5625, 7818876.5625, 7905085.9375, 7971668.75, 8071839.0625, 8080870.3125, 8164701.5625, 8189748.4375, 8203832.8125, 8206784.375, 8239345.3125, 8240128.125, 8269126.5625, 8278300.0, 8283107.8125, 8290350.0, 8291550.0, 8315992.1875, 8320151.5625, 8358254.6875, 8359007.8125, 8360239.0625, 8360334.375, 8360359.375, 8360370.3125, 8368857.8125, 8368918.75, 8386957.8125, 8391946.875, 8439678.125, 8477075.0, 8530668.75, 8545323.4375, 8545493.75, 8546323.4375, 8547390.625, 8560256.25, 8578945.3125, 8580370.3125, 8582537.5, 8586801.5625, 8591940.625, 8593312.5, 8597810.9375, 8599943.75, 8603123.4375, 8625248.4375, 8626095.3125, 8630546.875, 8635746.875, 8641012.5, 8660171.875, 8660559.375, 8662918.75, 8680910.9375, 8703340.625, 8704226.5625, 8706593.75, 8708492.1875, 8784617.1875, 8849843.75, 8853989.0625, 8931734.375, 8943987.5, 8945729.6875, 8948114.0625, 8957301.5625, 8976532.8125, 9080054.6875, 9083132.8125, 9131560.9375, 9135714.0625, 9137412.5, 9161440.625, 9193332.8125, 9194253.125, 9199590.625, 9237017.1875, 9258871.875, 9260057.8125, 9271243.75, 9272132.8125, 9272914.0625, 9276025.0, 9288621.875, 9288684.375, 9333451.5625, 9342142.1875, 9344489.0625, 9351317.1875, 9369115.625, 9370585.9375, 9426775.0, 9440039.0625, 9441610.9375, 9442451.5625, 9457378.125, 9481014.0625, 9481392.1875, 9481412.5, 9481862.5, 9485134.375, 9499162.5, 9500248.4375, 9501442.1875, 9501978.125, 9502993.75, 9517281.25, 9518743.75, 9522728.125, 9524393.75, 9560543.75, 9636875.0, 9637256.25, 9640932.8125, 9641489.0625, 9645251.5625, 9645310.9375, 9645360.9375, 9647871.875, 9663407.8125, 9664473.4375, 9671350.0, 9677718.75, 9681654.6875, 9693484.375, 9702995.3125, 9754626.5625, 9778395.3125, 9830984.375, 9882153.125, 9882914.0625, 9882951.5625, 9925267.1875, 9933465.625, 9936626.5625, 9937993.75, 9943556.25, 9944453.125, 9945968.75, 9946406.25, 9946540.625, 9948503.125, 9984148.4375, 9999695.3125, 10002564.0625, 10002585.9375, 10043296.875, 10063353.125, 10077434.375, 10138870.3125, 10157193.75, 10205839.0625, 10318559.375, 10975318.75, 10985131.25, 11018796.875, 11102454.6875, 11113006.25, 11134478.125, 11136165.625, 11136168.75, 11137037.5, 11137928.125, 11138059.375, 11138745.3125, 11141309.375, 11141873.4375, 11144537.5, 11168637.5, 11181467.1875, 11183895.3125, 11185595.3125, 11216275.0, 11220967.1875, 11222435.9375, 11229434.375, 11232295.3125, 11238918.75, 11251175.0, 11444426.5625, 11469156.25, 11469725.0, 11469868.75, 11470428.125, 11483809.375, 11536509.375, 11558551.5625, 11559596.875, 11934118.75, 12005612.5, 12744267.1875, 12751020.3125, 12785645.3125, 12789315.625, 12793498.4375, 12794009.375, 12794476.5625, 12797982.8125, 12800014.0625, 12808253.125, 12808675.0, 12816398.4375, 12819692.1875, 12820198.4375, 12822326.5625, 12822428.125, 12823040.625, 12823045.3125, 12823676.5625, 12824795.3125, 12824796.875, 12824842.1875, 12825292.1875, 12825667.1875, 12826646.875, 12826651.5625, 12827529.6875, 12828912.5, 12829742.1875, 12829792.1875, 12830382.8125, 12830518.75, 12830812.5, 12830940.625, 12831106.25, 12835703.125, 12836643.75, 12840159.375, 12840403.125, 12840829.6875, 12840942.1875, 12841159.375, 12841500.0, 12846904.6875, 12847529.6875, 12850290.625, 12851368.75, 12853175.0, 12854612.5, 12856878.125, 12857293.75, 12857725.0, 12859064.0625, 12859237.5, 12861896.875, 12864229.6875, 12864245.3125, 12867289.0625, 12868807.8125, 12870409.375, 12870875.0, 12871975.0, 12872634.375, 12872670.3125, 12875209.375, 12876387.5, 12876659.375, 12877904.6875, 12879923.4375, 12879984.375, 12880059.375, 12880253.125, 12880795.3125, 12882628.125, 12883201.5625, 12883717.1875, 12883728.125, 12883737.5, 12884542.1875, 12885079.6875, 12885370.3125, 12886904.6875, 12888795.3125, 12888876.5625, 12889684.375, 12889854.6875, 12891448.4375, 12891951.5625, 12892267.1875, 12892278.125, 12893264.0625, 12894023.4375, 12897965.625, 12898118.75, 12898118.75, 12898440.625, 12900757.8125, 12901306.25, 12903134.375, 12910418.75, 12910440.625, 12910568.75, 12910570.3125, 12910704.6875, 12910718.75, 12910731.25, 12910759.375, 12910803.125, 12910848.4375, 12910982.8125, 12911000.0, 12911010.9375, 12911017.1875, 12912228.125, 12916312.5, 12916889.0625, 12924156.25, 12927560.9375, 12931796.875, 12932035.9375, 12933071.875, 12933350.0, 12939459.375, 12939642.1875, 12940876.5625, 12940979.6875, 12941546.875, 12942839.0625, 12943095.3125, 12943232.8125, 12943476.5625, 12943479.6875, 12943828.125, 12944687.5, 12945707.8125, 12947473.4375, 12950987.5, 12951346.875, 12951432.8125, 12951698.4375, 12951750.0, 12954271.875, 12954351.5625, 12955012.5, 12957726.5625, 12959031.25, 12959500.0, 12959539.0625, 12960843.75, 12961859.375, 12963104.6875, 12964043.75, 12965510.9375, 12966543.75, 12967209.375, 12968156.25, 12968587.5, 12969748.4375, 12970470.3125, 12972260.9375, 12972590.625, 12973268.75, 12974029.6875, 12974662.5, 12975198.4375, 12975932.8125, 12976057.8125, 12982201.5625, 12982904.6875, 12986221.875, 12988396.875, 12989965.625, 13014637.5, 13025496.875, 58917862.5], [27.849821996621284, 60.500791230954924, 26.79385006686414, 23.41593291973486, 6.880427503501954, 68.77689668086003, 47.556601400429294, 23.601426716576483, 73.10367949857005, 15.770782503086227, 184.06505795037836, 269.9371466561336, 93.90222961809903, 43.24260590517391, 20.80311777603059, 19.029494981178438, 58.88898863621846, 48.857721023775746, 97.856203191525, 17.485226799356916, 6.159596829234166, 39.95225582000322, 8.200876114638579, 25.128427873596877, 43.48802214106113, 30.765739578647125, 21.88064910027788, 21.201534198322573, 145.63061083678065, 29.09340612392039, 30.060737386305753, 13.71098377875418, 19.091551901278365, 29.758797212973604, 131.3174777338663, 19.352542075597754, 5.498397096190623, 137.17417154509062, 6.808834188858077, 6.296605222186079, 157.22140595960045, 6.447657103506088, 13.292306237548841, 72.56320360541626, 8.808686099975857, 46.58452587426719, 12.264725564189867, 9.077668160971427, 10.238165173691097, 44.16526196168185, 75.0865494718268, 142.36328269747864, 104.17466452511549, 15.826880332489736, 27.43570554068998, 64.30245190167457, 21.32466542135201, 137.71301300623628, 67.49018927440407, 104.73538681617089, 6.446436050798025, 5.544009323446635, 24.263027525467862, 90.52858538543434, 175.23867906290252, 23.501131180152015, 52.03059830918923, 30.119940065170717, 82.33636471256072, 302.4818844791614, 13.080272175650027, 18.860762623964327, 32.77415675495182, 16.195603677980166, 6.551487302475189, 78.20882772725368, 72.13071272800045, 7.56705593931459, 30.447476936147428, 55.84397038697488, 37.60082206202503, 183.16628360969173, 167.81988046812887, 9.510466757823037, 70.63569010332584, 50.833770875120386, 16.04336164040712, 62.17866012115502, 28.229372687254266, 120.11674339798861, 9.85427189749287, 170.53081373899687, 6.400386269681516, 7.337987235968299, 44.67717150636797, 33.39059103851385, 73.21238020090786, 5.064378452959632, 92.27599150963331, 75.44840111705791, 105.29723377446751, 94.707208814785, 8.646467379118656, 128.85100932553078, 57.57450577037462, 24.243294615433612, 5.462908258075807, 76.98670623883814, 47.62907591029298, 57.967946335605106, 104.38681342100413, 55.755388881135566, 39.43430428701217, 42.02881741754261, 75.61030556454901, 46.1722422350717, 73.88859418801741, 11.039902847147069, 12.072277470222646, 386.6158819702812, 94.48225793807498, 12.422891816623938, 181.91627064996396, 172.3522778524273, 40.777121570724354, 13.674621922736812, 65.85857135210924, 106.620883369273, 14.984056102985198, 5.170490678380054, 8.286636232236523, 161.17980047116924, 182.07686842952864, 48.14932666539637, 96.85682573577971, 17.101054405588012, 64.83322927385221, 29.013967873040176, 31.14451471779802, 15.549873244630609, 16.100864278272482, 16.087369186815575, 50.57833410812664, 12.783260678979785, 31.680231825152582, 91.42410017579924, 39.42797870811253, 86.67602188084486, 15.208862221882201, 22.440966356673066, 32.50587998208353, 65.61475922256909, 36.721782702768785, 24.577936604154896, 16.69799168478043, 93.12068258753024, 57.32688703884331, 9.447226149186267, 19.91408055135898, 33.655428174679614, 33.772033400705105, 111.89485436749518, 178.68827991280105, 65.71249353732551, 39.862860199008615, 20.208456826763168, 8.091160985467795, 29.590265134803317, 31.219907630576667, 76.0836406851573, 6.891999783314974, 15.423346114781786, 69.51624409338962, 46.303738529864496, 104.16406013000946, 22.014473954806064, 20.17229604206059, 8.608138926121033, 32.48116316186457, 26.112064364535748, 13.166722561434831, 65.01522078646046, 20.462275919526967, 226.00706119472707, 176.3317963520138, 42.37818027551869, 11.61270757990534, 169.38052118568243, 125.4631970762728, 50.704531706597734, 26.592816492260738, 75.69099559729753, 10.318081361108247, 55.82585247082339, 277.06024870959124, 135.72238111993704, 44.08794957559448, 78.99246412518566, 317.6301210733693, 159.80388640770028, 63.54984154671017, 15.18823621482342, 127.14465215600887, 7.339030516011963, 73.22100598022888, 61.32982941927493, 73.0748467319867, 13.377925434912019, 15.080153785317659, 15.40346983272959, 77.65262380582486, 53.62340457781424, 30.856454654965138, 55.91109523020177, 11.155057393947194, 11.54746042715561, 54.684348868552675, 19.15580034201113, 35.87525037148717, 25.64316153983051, 6.793610657873253, 5.52037701020905, 62.83157977016704, 15.976742616656738, 87.47335145701541, 22.27365955155479, 84.47960660435075, 65.30610589675833, 33.49911649624467, 159.288689846235, 17.095755811593797, 33.37667388085461, 72.9340741034889, 55.604419372166575, 50.71085001076148, 29.449164719325356, 15.578116120508252, 14.017031136721512, 82.61197122429813, 82.70628985544909, 34.451123232456084, 46.457089456776444, 22.929211811219027, 10.184247542379822, 173.2723793161586, 14.73157444747981, 18.332463732305275, 6.436382060892586, 61.595160723239516, 19.701053815606354, 28.11148579197551, 25.782775815701463, 12.705832276155856, 6.08742302931833, 8.29098497124305, 19.99866955925107, 6.4412273896822505, 18.94424560445802, 18.16782182235235, 17.61421305427768, 75.20631838456744, 74.08228287818085, 19.630450256834585, 79.6765027519838, 10.894439317445409, 82.88631001267011, 23.826065155949287, 67.85761728679563, 11.157794546329383, 43.75257213569251, 49.653479644470664, 76.27933055015791, 109.05919738111632, 14.903636444002514, 64.64438789889809, 34.17951993457979, 38.873598918242294, 10.510937456619589, 17.42626165257555, 5.25267118568138, 19.931301711137667, 9.019863052604057, 14.847398850576742, 17.07535559050968, 83.6285310283598, 14.850619376261317, 48.665471204503724, 59.187615410081136, 10.392035683046684, 33.47911740185308, 119.5192199597584, 130.7594454701575, 11.759323109300727, 15.975988902502634, 29.80774544973362, 7.266714097573395, 21.186863935081842, 17.271405317693027, 14.863325862399092, 25.267657825277446, 43.72740552144538, 21.858876746954845, 50.95043764025541, 6.09854537682136, 33.11459447922568, 20.926993595551323, 56.93781906184252, 13.414275781225015, 67.02437514656849, 32.17091076897911, 41.72910689611227, 47.48270303812713, 17.303625568087764, 84.31503461151671, 10.851537351371901, 98.66609474301364, 40.810475321121835, 10.39927383935376, 81.7748548896829, 136.9341624381376, 61.20282461151388, 23.04824920383125, 87.91859560978047, 54.70519687429388, 47.4484038485116, 12.453403253193807, 6.603561285002569, 17.497895787059072, 37.965085369495185, 26.28236915864449, 147.085080007392, 25.496082326891482, 25.53851688523548, 5.2174351529597445, 77.06262191553182, 38.7673442428952, 17.395598906069576, 7.110316208532574, 28.152681525807676, 25.502937364249753, 19.28318334349049, 5.25327063207649, 7.688520201759892, 5.075698470650918, 47.82915857888818, 7.281440447254141, 8.922339503410228, 13.892715495178447, 38.63613219747069, 61.319110975823165, 8.302754406947006, 7.239489557365407, 38.367873466426836, 94.68269048623031, 7.302941431842313, 13.838872627667214, 26.725270468696976, 15.327625849078688, 53.04468385761387, 22.700282084541612, 31.681304410937045, 19.05116940609873, 14.050158313378157, 15.401487213566977, 49.55066427803253, 44.27307898305643, 5.613779765163099, 48.07650791101183, 67.34561076655847, 43.32431494051131, 59.314822145899285, 42.69419757131935, 12.313334195459353, 151.54058759795004, 27.30476767661624, 48.86950099679599, 40.95151849531108, 8.183076756021096])
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);
([6080232.8125, 6762039.0625, 6910614.0625, 6920485.9375, 6963542.1875, 6965121.875, 7343978.125, 7537439.0625, 7579987.5, 7698945.3125, 7705070.3125, 7728292.1875, 7753101.5625, 7818876.5625, 7905085.9375, 7971668.75, 8071839.0625, 8080870.3125, 8164701.5625, 8189748.4375, 8203832.8125, 8206784.375, 8239345.3125, 8240128.125, 8269126.5625, 8278300.0, 8283107.8125, 8290350.0, 8291550.0, 8315992.1875, 8320151.5625, 8358254.6875, 8359007.8125, 8360239.0625, 8360334.375, 8360359.375, 8360370.3125, 8368857.8125, 8368918.75, 8386957.8125, 8391946.875, 8439678.125, 8477075.0, 8530668.75, 8545323.4375, 8545493.75, 8546323.4375, 8547390.625, 8560256.25, 8578945.3125, 8580370.3125, 8582537.5, 8586801.5625, 8591940.625, 8593312.5, 8597810.9375, 8599943.75, 8603123.4375, 8625248.4375, 8626095.3125, 8630546.875, 8635746.875, 8641012.5, 8660171.875, 8660559.375, 8662918.75, 8680910.9375, 8703340.625, 8704226.5625, 8706593.75, 8708492.1875, 8784617.1875, 8849843.75, 8853989.0625, 8931734.375, 8943987.5, 8945729.6875, 8948114.0625, 8957301.5625, 8976532.8125, 9080054.6875, 9083132.8125, 9131560.9375, 9135714.0625, 9137412.5, 9161440.625, 9193332.8125, 9194253.125, 9199590.625, 9237017.1875, 9258871.875, 9260057.8125, 9271243.75, 9272132.8125, 9272914.0625, 9276025.0, 9288621.875, 9288684.375, 9333451.5625, 9342142.1875, 9344489.0625, 9351317.1875, 9369115.625, 9370585.9375, 9426775.0, 9440039.0625, 9441610.9375, 9442451.5625, 9457378.125, 9481014.0625, 9481392.1875, 9481412.5, 9481862.5, 9485134.375, 9499162.5, 9500248.4375, 9501442.1875, 9501978.125, 9502993.75, 9517281.25, 9518743.75, 9522728.125, 9524393.75, 9560543.75, 9636875.0, 9637256.25, 9640932.8125, 9641489.0625, 9645251.5625, 9645310.9375, 9645360.9375, 9647871.875, 9663407.8125, 9664473.4375, 9671350.0, 9677718.75, 9681654.6875, 9693484.375, 9702995.3125, 9754626.5625, 9778395.3125, 9830984.375, 9882153.125, 9882914.0625, 9882951.5625, 9925267.1875, 9933465.625, 9936626.5625, 9937993.75, 9943556.25, 9944453.125, 9945968.75, 9946406.25, 9946540.625, 9948503.125, 9984148.4375, 9999695.3125, 10002564.0625, 10002585.9375, 10043296.875, 10063353.125, 10077434.375, 10138870.3125, 10157193.75, 10205839.0625, 10318559.375, 10975318.75, 10985131.25, 11018796.875, 11102454.6875, 11113006.25, 11134478.125, 11136165.625, 11136168.75, 11137037.5, 11137928.125, 11138059.375, 11138745.3125, 11141309.375, 11141873.4375, 11144537.5, 11168637.5, 11181467.1875, 11183895.3125, 11185595.3125, 11216275.0, 11220967.1875, 11222435.9375, 11229434.375, 11232295.3125, 11238918.75, 11251175.0, 11444426.5625, 11469156.25, 11469725.0, 11469868.75, 11470428.125, 11483809.375, 11536509.375, 11558551.5625, 11559596.875, 11934118.75, 12005612.5, 12744267.1875, 12751020.3125, 12785645.3125, 12789315.625, 12793498.4375, 12794009.375, 12794476.5625, 12797982.8125, 12800014.0625, 12808253.125, 12808675.0, 12816398.4375, 12819692.1875, 12820198.4375, 12822326.5625, 12822428.125, 12823040.625, 12823045.3125, 12823676.5625, 12824795.3125, 12824796.875, 12824842.1875, 12825292.1875, 12825667.1875, 12826646.875, 12826651.5625, 12827529.6875, 12828912.5, 12829742.1875, 12829792.1875, 12830382.8125, 12830518.75, 12830812.5, 12830940.625, 12831106.25, 12835703.125, 12836643.75, 12840159.375, 12840403.125, 12840829.6875, 12840942.1875, 12841159.375, 12841500.0, 12846904.6875, 12847529.6875, 12850290.625, 12851368.75, 12853175.0, 12854612.5, 12856878.125, 12857293.75, 12857725.0, 12859064.0625, 12859237.5, 12861896.875, 12864229.6875, 12864245.3125, 12867289.0625, 12868807.8125, 12870409.375, 12870875.0, 12871975.0, 12872634.375, 12872670.3125, 12875209.375, 12876387.5, 12876659.375, 12877904.6875, 12879923.4375, 12879984.375, 12880059.375, 12880253.125, 12880795.3125, 12882628.125, 12883201.5625, 12883717.1875, 12883728.125, 12883737.5, 12884542.1875, 12885079.6875, 12885370.3125, 12886904.6875, 12888795.3125, 12888876.5625, 12889684.375, 12889854.6875, 12891448.4375, 12891951.5625, 12892267.1875, 12892278.125, 12893264.0625, 12894023.4375, 12897965.625, 12898118.75, 12898118.75, 12898440.625, 12900757.8125, 12901306.25, 12903134.375, 12910418.75, 12910440.625, 12910568.75, 12910570.3125, 12910704.6875, 12910718.75, 12910731.25, 12910759.375, 12910803.125, 12910848.4375, 12910982.8125, 12911000.0, 12911010.9375, 12911017.1875, 12912228.125, 12916312.5, 12916889.0625, 12924156.25, 12927560.9375, 12931796.875, 12932035.9375, 12933071.875, 12933350.0, 12939459.375, 12939642.1875, 12940876.5625, 12940979.6875, 12941546.875, 12942839.0625, 12943095.3125, 12943232.8125, 12943476.5625, 12943479.6875, 12943828.125, 12944687.5, 12945707.8125, 12947473.4375, 12950987.5, 12951346.875, 12951432.8125, 12951698.4375, 12951750.0, 12954271.875, 12954351.5625, 12955012.5, 12957726.5625, 12959031.25, 12959500.0, 12959539.0625, 12960843.75, 12961859.375, 12963104.6875, 12964043.75, 12965510.9375, 12966543.75, 12967209.375, 12968156.25, 12968587.5, 12969748.4375, 12970470.3125, 12972260.9375, 12972590.625, 12973268.75, 12974029.6875, 12974662.5, 12975198.4375, 12975932.8125, 12976057.8125, 12982201.5625, 12982904.6875, 12986221.875, 12988396.875, 12989965.625, 13014637.5, 13025496.875, 58917862.5], [27.849821996621284, 60.500791230954924, 26.79385006686414, 23.41593291973486, 6.880427503501954, 68.77689668086003, 47.556601400429294, 23.601426716576483, 73.10367949857005, 15.770782503086227, 184.06505795037836, 269.9371466561336, 93.90222961809903, 43.24260590517391, 20.80311777603059, 19.029494981178438, 58.88898863621846, 48.857721023775746, 97.856203191525, 17.485226799356916, 6.159596829234166, 39.95225582000322, 8.200876114638579, 25.128427873596877, 43.48802214106113, 30.765739578647125, 21.88064910027788, 21.201534198322573, 145.63061083678065, 29.09340612392039, 30.060737386305753, 13.71098377875418, 19.091551901278365, 29.758797212973604, 131.3174777338663, 19.352542075597754, 5.498397096190623, 137.17417154509062, 6.808834188858077, 6.296605222186079, 157.22140595960045, 6.447657103506088, 13.292306237548841, 72.56320360541626, 8.808686099975857, 46.58452587426719, 12.264725564189867, 9.077668160971427, 10.238165173691097, 44.16526196168185, 75.0865494718268, 142.36328269747864, 104.17466452511549, 15.826880332489736, 27.43570554068998, 64.30245190167457, 21.32466542135201, 137.71301300623628, 67.49018927440407, 104.73538681617089, 6.446436050798025, 5.544009323446635, 24.263027525467862, 90.52858538543434, 175.23867906290252, 23.501131180152015, 52.03059830918923, 30.119940065170717, 82.33636471256072, 302.4818844791614, 13.080272175650027, 18.860762623964327, 32.77415675495182, 16.195603677980166, 6.551487302475189, 78.20882772725368, 72.13071272800045, 7.56705593931459, 30.447476936147428, 55.84397038697488, 37.60082206202503, 183.16628360969173, 167.81988046812887, 9.510466757823037, 70.63569010332584, 50.833770875120386, 16.04336164040712, 62.17866012115502, 28.229372687254266, 120.11674339798861, 9.85427189749287, 170.53081373899687, 6.400386269681516, 7.337987235968299, 44.67717150636797, 33.39059103851385, 73.21238020090786, 5.064378452959632, 92.27599150963331, 75.44840111705791, 105.29723377446751, 94.707208814785, 8.646467379118656, 128.85100932553078, 57.57450577037462, 24.243294615433612, 5.462908258075807, 76.98670623883814, 47.62907591029298, 57.967946335605106, 104.38681342100413, 55.755388881135566, 39.43430428701217, 42.02881741754261, 75.61030556454901, 46.1722422350717, 73.88859418801741, 11.039902847147069, 12.072277470222646, 386.6158819702812, 94.48225793807498, 12.422891816623938, 181.91627064996396, 172.3522778524273, 40.777121570724354, 13.674621922736812, 65.85857135210924, 106.620883369273, 14.984056102985198, 5.170490678380054, 8.286636232236523, 161.17980047116924, 182.07686842952864, 48.14932666539637, 96.85682573577971, 17.101054405588012, 64.83322927385221, 29.013967873040176, 31.14451471779802, 15.549873244630609, 16.100864278272482, 16.087369186815575, 50.57833410812664, 12.783260678979785, 31.680231825152582, 91.42410017579924, 39.42797870811253, 86.67602188084486, 15.208862221882201, 22.440966356673066, 32.50587998208353, 65.61475922256909, 36.721782702768785, 24.577936604154896, 16.69799168478043, 93.12068258753024, 57.32688703884331, 9.447226149186267, 19.91408055135898, 33.655428174679614, 33.772033400705105, 111.89485436749518, 178.68827991280105, 65.71249353732551, 39.862860199008615, 20.208456826763168, 8.091160985467795, 29.590265134803317, 31.219907630576667, 76.0836406851573, 6.891999783314974, 15.423346114781786, 69.51624409338962, 46.303738529864496, 104.16406013000946, 22.014473954806064, 20.17229604206059, 8.608138926121033, 32.48116316186457, 26.112064364535748, 13.166722561434831, 65.01522078646046, 20.462275919526967, 226.00706119472707, 176.3317963520138, 42.37818027551869, 11.61270757990534, 169.38052118568243, 125.4631970762728, 50.704531706597734, 26.592816492260738, 75.69099559729753, 10.318081361108247, 55.82585247082339, 277.06024870959124, 135.72238111993704, 44.08794957559448, 78.99246412518566, 317.6301210733693, 159.80388640770028, 63.54984154671017, 15.18823621482342, 127.14465215600887, 7.339030516011963, 73.22100598022888, 61.32982941927493, 73.0748467319867, 13.377925434912019, 15.080153785317659, 15.40346983272959, 77.65262380582486, 53.62340457781424, 30.856454654965138, 55.91109523020177, 11.155057393947194, 11.54746042715561, 54.684348868552675, 19.15580034201113, 35.87525037148717, 25.64316153983051, 6.793610657873253, 5.52037701020905, 62.83157977016704, 15.976742616656738, 87.47335145701541, 22.27365955155479, 84.47960660435075, 65.30610589675833, 33.49911649624467, 159.288689846235, 17.095755811593797, 33.37667388085461, 72.9340741034889, 55.604419372166575, 50.71085001076148, 29.449164719325356, 15.578116120508252, 14.017031136721512, 82.61197122429813, 82.70628985544909, 34.451123232456084, 46.457089456776444, 22.929211811219027, 10.184247542379822, 173.2723793161586, 14.73157444747981, 18.332463732305275, 6.436382060892586, 61.595160723239516, 19.701053815606354, 28.11148579197551, 25.782775815701463, 12.705832276155856, 6.08742302931833, 8.29098497124305, 19.99866955925107, 6.4412273896822505, 18.94424560445802, 18.16782182235235, 17.61421305427768, 75.20631838456744, 74.08228287818085, 19.630450256834585, 79.6765027519838, 10.894439317445409, 82.88631001267011, 23.826065155949287, 67.85761728679563, 11.157794546329383, 43.75257213569251, 49.653479644470664, 76.27933055015791, 109.05919738111632, 14.903636444002514, 64.64438789889809, 34.17951993457979, 38.873598918242294, 10.510937456619589, 17.42626165257555, 5.25267118568138, 19.931301711137667, 9.019863052604057, 14.847398850576742, 17.07535559050968, 83.6285310283598, 14.850619376261317, 48.665471204503724, 59.187615410081136, 10.392035683046684, 33.47911740185308, 119.5192199597584, 130.7594454701575, 11.759323109300727, 15.975988902502634, 29.80774544973362, 7.266714097573395, 21.186863935081842, 17.271405317693027, 14.863325862399092, 25.267657825277446, 43.72740552144538, 21.858876746954845, 50.95043764025541, 6.09854537682136, 33.11459447922568, 20.926993595551323, 56.93781906184252, 13.414275781225015, 67.02437514656849, 32.17091076897911, 41.72910689611227, 47.48270303812713, 17.303625568087764, 84.31503461151671, 10.851537351371901, 98.66609474301364, 40.810475321121835, 10.39927383935376, 81.7748548896829, 136.9341624381376, 61.20282461151388, 23.04824920383125, 87.91859560978047, 54.70519687429388, 47.4484038485116, 12.453403253193807, 6.603561285002569, 17.497895787059072, 37.965085369495185, 26.28236915864449, 147.085080007392, 25.496082326891482, 25.53851688523548, 5.2174351529597445, 77.06262191553182, 38.7673442428952, 17.395598906069576, 7.110316208532574, 28.152681525807676, 25.502937364249753, 19.28318334349049, 5.25327063207649, 7.688520201759892, 5.075698470650918, 47.82915857888818, 7.281440447254141, 8.922339503410228, 13.892715495178447, 38.63613219747069, 61.319110975823165, 8.302754406947006, 7.239489557365407, 38.367873466426836, 94.68269048623031, 7.302941431842313, 13.838872627667214, 26.725270468696976, 15.327625849078688, 53.04468385761387, 22.700282084541612, 31.681304410937045, 19.05116940609873, 14.050158313378157, 15.401487213566977, 49.55066427803253, 44.27307898305643, 5.613779765163099, 48.07650791101183, 67.34561076655847, 43.32431494051131, 59.314822145899285, 42.69419757131935, 12.313334195459353, 151.54058759795004, 27.30476767661624, 48.86950099679599, 40.95151849531108, 8.183076756021096])
Detected energies during the discharge + Energy spectrum
multiplot(icon_fig, T_int_first,E,xle,Etot)