0001 function hxrspec = cam2hxrspec_jd(cam) 0002 % 0003 ncam = length(cam); 0004 for icam = 1:ncam, 0005 cam{icam}.camindex = icam*ones(size(cam{icam}.chordsnum)); 0006 end 0007 % 0008 hxrspec = cell2mat_jd(cam,'chordsnum'); 0009 % 0010 for icam = 1:ncam, 0011 hxrspec.ids{icam} = cam{icam}.id; 0012 hxrspec.centralchords{icam} = cam{icam}.centralchord; 0013 hxrspec.selectedchords{icam} = cam{icam}.selectedchord; 0014 end 0015 0016 % 0017 % camnum: 1 0018 % id: 'TCV HXR camera # 1' 0019 % chordsnum: [5 6 7 8 9 10 11 12 13 14 15 16 17 18] 0020 % chordsind: [1 2 3 4 5 6 7 8 9 10 11 12 13 14] 0021 % centralchord: 16 0022 % R_hxr: [1.0480 1.0480 1.0480 1.0480 1.0480 1.0480 1.0480 1.0480 1.0480 1.0480 1.0480 1.0480 1.0480 1.0480] 0023 % Z_hxr: [-1.1370 -1.1370 -1.1370 -1.1370 -1.1370 -1.1370 -1.1370 -1.1370 -1.1370 -1.1370 -1.1370 -1.1370 -1.1370 -1.1370] 0024 % alpha_hxr: [3.1416 3.1416 3.1416 3.1416 0 0 0 0 0 0 0 0 0 0] 0025 % beta_hxr: [3.0824 3.0945 3.1109 3.1273 3.1394 3.1230 3.1067 3.0904 3.0740 3.0575 3.0411 3.0247 3.0083 2.9961] 0026 % EG_hxr: [1x14 double] 0027 % kd_hxr: [14x12 double] 0028 % phf_hxr: [14x12 double] 0029 % res_hxr: [14x2 double] 0030 % ec_hxr: [0.2000 0.2000 0.2000 0.2000 0.2000 0.2000 0.2000 0.2000 0.2000 0.2000 0.2000 0.2000 0.2000 0.2000] 0031 % tc_hxr: [14x2 char] 0032 % ef_hxr: [0.2500 0.2500 0.2500 0.2500 0.2500 0.2500 0.2500 0.2500 0.2500 0.2500 0.2500 0.2500 0.2500 0.2500] 0033 % tf_hxr: [14x2 char] 0034 % ea_hxr: [0 0 0 0 0 0 0 0 0 0 0 0 0 0] 0035 % ta_hxr: [14x2 char] 0036 % ed_hxr: [2 2 2 2 2 2 2 2 2 2 2 2 2 2] 0037 % td_hxr: [14x4 char] 0038 % selectedchord: 12 0039 % 0040 % % 0041 % % data from hxrs_getchords 0042 % % focal point position 0043 % hxrs.R_hxr=cg.rd([cg.chords_abs{cg.cams(2:end)}]); 0044 % hxrs.Z_hxr=cg.zd([cg.chords_abs{cg.cams(2:end)}]); 0045 % % chord angles 0046 % hxrs.alpha_hxr=cg.alpha([cg.chords_abs{cg.cams(2:end)}]); 0047 % hxrs.beta_hxr=cg.beta([cg.chords_abs{cg.cams(2:end)}]); 0048 % % etendue data 0049 % hxrs.EG_hxr = cg.etendue([cg.chords_abs{cg.cams(2:end)}]);% etendue [1,nchord] 0050 % 0051 % % keep data for HXRC detector for the moment 0052 % hxrs.kd_hxr = ones(96,1)*[10,30,50,70,90,110,130,150,170,190,210,250];%Parameters approximately corresponding to photon energy spectra of gamma sources 57Co and 241Am. Reference energies for the photofraction [m,p] 0053 % hxrs.phf_hxr = ones(96,1)*[0.75,0.62,0.51,0.41,0.32,0.2,0.2,0.2,0.2,0.2,0.2,0.2];%Parameters approximately corresponding to photon energy spectra of gamma sources 57Co and 241Am. Photofraction determined using the "MCDET.f" Monte-carlo hard x-ray absorption code at energies kd [m,p] 0054 % hxrs.res_hxr = ones(96,1)*[6,-0.9]; % fit parameters of the energy resolution of the detectors [m,2] 0055 % 0056 % % Be window data from wiki, HXRS/Hardware 0057 % hxrs.ef_hxr = 0.127*ones(1,96); % thickness of the vacuum window (mm) [1,m] 0058 % hxrs.tf_hxr = repmat('Be',96,1); % type of material for the vacuum window (Al ou Be) [1,m] 0059 % 0060 % % no absorber of detector shield 0061 % hxrs.ea_hxr = zeros(1,96); % thickness of the absorber (mm) [1,m] (WARNING: for 2 mm Cu: 2.83= 2*(29/26)^2*(dens_Cu/dens_Fe) dens_Cu = 63.546, dens_Fe = 55.845) 0062 % hxrs.ta_hxr = repmat('Fe',96,1); % type of material for the absorber (Al,Fe,Ge,Be ou Pb) [1,m] 0063 % hxrs.ec_hxr = zeros(1,96); % thickness of the detector shield (mm) [1,m] 0064 % hxrs.tc_hxr = repmat('Al',96,1); % type of material for the detector shield (Al,C ou Be) [1,m] 0065 % hxrs.ed_hxr = 2*ones(1,96); % thickness of the detector (mm) [1,m] 0066 % hxrs.td_hxr = repmat('CdTe',96,1); % type of material for the detector (BGO,CsI,NaI,Ge or CdTe) [1,m] 0067 % 0068 % 0069 % %-------------------------------------------------------------------------- 0070 % % common data 0071 % %-------------------------------------------------------------------------- 0072 % 0073 % hxr.kdiag_hxr = [10:10:180,50 ;... 0074 % 20:10:190,110]; % Measured photon energy spectrum (keV) [kmin1,kmin2,...,kmintphot,kmax1,kmax2,...,kmaxtphot] (here photon temp is calculated between 50 and 110 keV) [1,k] 0075 % 0076 % hxr.kphot = [10:5:190]; % Photon energy in keV 0077 %