<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Am 19.03.2015 um 17:00 schrieb André
Miguel Monteiro:<br>
</div>
<blockquote cite="mid:1426780813563.60196@fc.ul.pt" type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
<p>Dear gate users,<br>
</p>
<p><br>
</p>
<p>I am using SpekCalc to generate a X-Ray spectrum with photons
with energies between 35 and 80 keV,
<span style="font-size: 12pt;">1.8mmAl and</span><span
style="font-size: 12pt;"> </span><span style="font-size:
12pt;">0.2mm Cu</span><span style="font-size: 12pt;">
filtration </span><span style="font-size: 12pt;">f</span><span
style="font-size: 12pt;">or a </span><span style="font-size:
12pt;">C</span><span style="font-size: 12pt;">T</span><span
style="font-size: 12pt;"> simu</span><span style="font-size:
12pt;">latio</span><span style="font-size: 12pt;">n, but I
don't know how to put it in a GATE </span><span
style="font-size: 12pt;">CT si</span><span style="font-size:
12pt;">mulation. How do I put that in a "source.mac" file?</span></p>
<p><br>
</p>
<p>Below is the output of a previous simulation using a spectrum
extracted from the CT example and below that is the output of
SpekCalc.<br>
</p>
<p><br>
</p>
<p>Thank you in advance.<br>
</p>
<p><br>
</p>
<p>Best regards,<br>
</p>
<p><br>
</p>
<p>André Miguel Monteiro<br>
</p>
<div><br>
</div>
<div><br>
</div>
<div>/gate/source/addSource xraygun</div>
<div>/gate/source/verbose 0</div>
<div>/gate/source/xraygun/setActivity 10000000. becquerel</div>
<div>/gate/source/xraygun/gps/verbose 0</div>
<div>/gate/source/xraygun/gps/particle gamma</div>
<div>/gate/source/xraygun/gps/energytype Arb</div>
<div>/gate/source/xraygun/gps/histname arb</div>
<div>/gate/source/xraygun/gps/emin 10.00 keV</div>
<div>/gate/source/xraygun/gps/emax 40.00 keV</div>
<div>/gate/source/xraygun/gps/histpoint 0.0100 7</div>
<div>/gate/source/xraygun/gps/histpoint 0.0102 4</div>
<div>/gate/source/xraygun/gps/histpoint 0.0104 4</div>
<div>/gate/source/xraygun/gps/histpoint 0.0105 4</div>
<div>/gate/source/xraygun/gps/histpoint 0.0106 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0107 3</div>
<div>/gate/source/xraygun/gps/histpoint 0.0108 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0109 5</div>
<div>/gate/source/xraygun/gps/histpoint 0.0110 7</div>
<div>/gate/source/xraygun/gps/histpoint 0.0112 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0114 8</div>
<div>/gate/source/xraygun/gps/histpoint 0.0115 7</div>
<div>/gate/source/xraygun/gps/histpoint 0.0116 7</div>
<div>/gate/source/xraygun/gps/histpoint 0.0117 10</div>
<div>/gate/source/xraygun/gps/histpoint 0.0118 9</div>
<div>/gate/source/xraygun/gps/histpoint 0.0119 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0120 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0122 8</div>
<div>/gate/source/xraygun/gps/histpoint 0.0123 7</div>
<div>/gate/source/xraygun/gps/histpoint 0.0124 10</div>
<div>/gate/source/xraygun/gps/histpoint 0.0125 15</div>
<div>/gate/source/xraygun/gps/histpoint 0.0126 19</div>
<div>/gate/source/xraygun/gps/histpoint 0.0127 17</div>
<div>/gate/source/xraygun/gps/histpoint 0.0128 18</div>
<div>/gate/source/xraygun/gps/histpoint 0.0129 21</div>
<div>/gate/source/xraygun/gps/histpoint 0.0130 24</div>
<div>/gate/source/xraygun/gps/histpoint 0.0132 19</div>
<div>/gate/source/xraygun/gps/histpoint 0.0133 33</div>
<div>/gate/source/xraygun/gps/histpoint 0.0134 32</div>
<div>/gate/source/xraygun/gps/histpoint 0.0135 34</div>
<div>/gate/source/xraygun/gps/histpoint 0.0136 36</div>
<div>/gate/source/xraygun/gps/histpoint 0.0137 34</div>
<div>/gate/source/xraygun/gps/histpoint 0.0138 33</div>
<div>/gate/source/xraygun/gps/histpoint 0.0139 38</div>
<div>/gate/source/xraygun/gps/histpoint 0.0140 34</div>
<div>/gate/source/xraygun/gps/histpoint 0.0142 32</div>
<div>/gate/source/xraygun/gps/histpoint 0.0143 42</div>
<div>/gate/source/xraygun/gps/histpoint 0.0144 37</div>
<div>/gate/source/xraygun/gps/histpoint 0.0145 39</div>
<div>/gate/source/xraygun/gps/histpoint 0.0146 49</div>
<div>/gate/source/xraygun/gps/histpoint 0.0147 53</div>
<div>/gate/source/xraygun/gps/histpoint 0.0148 48</div>
<div>/gate/source/xraygun/gps/histpoint 0.0149 50</div>
<div>/gate/source/xraygun/gps/histpoint 0.0150 62</div>
<div>/gate/source/xraygun/gps/histpoint 0.0152 69</div>
<div>/gate/source/xraygun/gps/histpoint 0.0153 51</div>
<div>/gate/source/xraygun/gps/histpoint 0.0154 63</div>
<div>/gate/source/xraygun/gps/histpoint 0.0155 80</div>
<div>/gate/source/xraygun/gps/histpoint 0.0156 64</div>
<div>/gate/source/xraygun/gps/histpoint 0.0157 77</div>
<div>/gate/source/xraygun/gps/histpoint 0.0158 90</div>
<div>/gate/source/xraygun/gps/histpoint 0.0159 73</div>
<div>/gate/source/xraygun/gps/histpoint 0.0160 81</div>
<div>/gate/source/xraygun/gps/histpoint 0.0162 74</div>
<div>/gate/source/xraygun/gps/histpoint 0.0163 80</div>
<div>/gate/source/xraygun/gps/histpoint 0.0164 81</div>
<div>/gate/source/xraygun/gps/histpoint 0.0165 88</div>
<div>/gate/source/xraygun/gps/histpoint 0.0166 97</div>
<div>/gate/source/xraygun/gps/histpoint 0.0167 94</div>
<div>/gate/source/xraygun/gps/histpoint 0.0168 104</div>
<div>/gate/source/xraygun/gps/histpoint 0.0169 151</div>
<div>/gate/source/xraygun/gps/histpoint 0.0170 287</div>
<div>/gate/source/xraygun/gps/histpoint 0.0172 1056</div>
<div>/gate/source/xraygun/gps/histpoint 0.0173 1489</div>
<div>/gate/source/xraygun/gps/histpoint 0.0174 1676</div>
<div>/gate/source/xraygun/gps/histpoint 0.0175 1520</div>
<div>/gate/source/xraygun/gps/histpoint 0.0176 1055</div>
<div>/gate/source/xraygun/gps/histpoint 0.0177 550</div>
<div>/gate/source/xraygun/gps/histpoint 0.0178 296</div>
<div>/gate/source/xraygun/gps/histpoint 0.0179 159</div>
<div>/gate/source/xraygun/gps/histpoint 0.0180 105</div>
<div>/gate/source/xraygun/gps/histpoint 0.0182 111</div>
<div>/gate/source/xraygun/gps/histpoint 0.0183 114</div>
<div>/gate/source/xraygun/gps/histpoint 0.0184 112</div>
<div>/gate/source/xraygun/gps/histpoint 0.0185 129</div>
<div>/gate/source/xraygun/gps/histpoint 0.0186 112</div>
<div>/gate/source/xraygun/gps/histpoint 0.0187 119</div>
<div>/gate/source/xraygun/gps/histpoint 0.0188 121</div>
<div>/gate/source/xraygun/gps/histpoint 0.0189 91</div>
<div>/gate/source/xraygun/gps/histpoint 0.0190 66</div>
<div>/gate/source/xraygun/gps/histpoint 0.0192 15</div>
<div>/gate/source/xraygun/gps/histpoint 0.0193 7</div>
<div>/gate/source/xraygun/gps/histpoint 0.0194 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0195 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0196 9</div>
<div>/gate/source/xraygun/gps/histpoint 0.0197 10</div>
<div>/gate/source/xraygun/gps/histpoint 0.0198 4</div>
<div>/gate/source/xraygun/gps/histpoint 0.0199 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0200 3</div>
<div>/gate/source/xraygun/gps/histpoint 0.0202 1</div>
<div>/gate/source/xraygun/gps/histpoint 0.0203 1</div>
<div>/gate/source/xraygun/gps/histpoint 0.0204 1</div>
<div>/gate/source/xraygun/gps/histpoint 0.0205 0</div>
<div>/gate/source/xraygun/gps/histpoint 0.0206 0</div>
<div>/gate/source/xraygun/gps/histpoint 0.0207 0</div>
<div>/gate/source/xraygun/gps/histpoint 0.0208 2</div>
<div>/gate/source/xraygun/gps/histpoint 0.0209 0</div>
<div>/gate/source/xraygun/gps/histpoint 0.0210 0</div>
<div>/gate/source/xraygun/gps/histpoint 0.0212 1</div>
<div>/gate/source/xraygun/gps/histpoint 0.0214 0</div>
<div>/gate/source/xraygun/gps/histpoint 0.0215 0</div>
<div>/gate/source/xraygun/gps/histpoint 0.0216 1</div>
<div>/gate/source/xraygun/gps/histpoint 0.0217 0</div>
<div>/gate/source/xraygun/gps/histpoint 0.0218 2</div>
<div>/gate/source/xraygun/gps/histpoint 0.0219 1</div>
<div>/gate/source/xraygun/gps/histpoint 0.0220 1</div>
<div>/gate/source/xraygun/gps/histpoint 0.0222 2</div>
<div>/gate/source/xraygun/gps/histpoint 0.0224 1</div>
<div>/gate/source/xraygun/gps/histpoint 0.0225 2</div>
<div>/gate/source/xraygun/gps/histpoint 0.0226 1</div>
<div>/gate/source/xraygun/gps/histpoint 0.0227 0</div>
<div>/gate/source/xraygun/gps/histpoint 0.0228 1</div>
<div>/gate/source/xraygun/gps/histpoint 0.0229 1</div>
<div>/gate/source/xraygun/gps/histpoint 0.0230 3</div>
<div>/gate/source/xraygun/gps/histpoint 0.0232 3</div>
<div>/gate/source/xraygun/gps/histpoint 0.0233 3</div>
<div>/gate/source/xraygun/gps/histpoint 0.0234 3</div>
<div>/gate/source/xraygun/gps/histpoint 0.0235 1</div>
<div>/gate/source/xraygun/gps/histpoint 0.0236 3</div>
<div>/gate/source/xraygun/gps/histpoint 0.0237 3</div>
<div>/gate/source/xraygun/gps/histpoint 0.0238 2</div>
<div>/gate/source/xraygun/gps/histpoint 0.0239 1</div>
<div>/gate/source/xraygun/gps/histpoint 0.0240 3</div>
<div>/gate/source/xraygun/gps/histpoint 0.0242 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0243 4</div>
<div>/gate/source/xraygun/gps/histpoint 0.0244 1</div>
<div>/gate/source/xraygun/gps/histpoint 0.0245 1</div>
<div>/gate/source/xraygun/gps/histpoint 0.0246 2</div>
<div>/gate/source/xraygun/gps/histpoint 0.0247 7</div>
<div>/gate/source/xraygun/gps/histpoint 0.0248 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0249 4</div>
<div>/gate/source/xraygun/gps/histpoint 0.0250 8</div>
<div>/gate/source/xraygun/gps/histpoint 0.0252 5</div>
<div>/gate/source/xraygun/gps/histpoint 0.0254 3</div>
<div>/gate/source/xraygun/gps/histpoint 0.0255 2</div>
<div>/gate/source/xraygun/gps/histpoint 0.0256 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0257 5</div>
<div>/gate/source/xraygun/gps/histpoint 0.0258 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0259 2</div>
<div>/gate/source/xraygun/gps/histpoint 0.0260 9</div>
<div>/gate/source/xraygun/gps/histpoint 0.0262 5</div>
<div>/gate/source/xraygun/gps/histpoint 0.0264 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0265 5</div>
<div>/gate/source/xraygun/gps/histpoint 0.0266 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0267 7</div>
<div>/gate/source/xraygun/gps/histpoint 0.0268 8</div>
<div>/gate/source/xraygun/gps/histpoint 0.0269 4</div>
<div>/gate/source/xraygun/gps/histpoint 0.0270 7</div>
<div>/gate/source/xraygun/gps/histpoint 0.0272 7</div>
<div>/gate/source/xraygun/gps/histpoint 0.0274 8</div>
<div>/gate/source/xraygun/gps/histpoint 0.0275 9</div>
<div>/gate/source/xraygun/gps/histpoint 0.0276 8</div>
<div>/gate/source/xraygun/gps/histpoint 0.0277 7</div>
<div>/gate/source/xraygun/gps/histpoint 0.0278 7</div>
<div>/gate/source/xraygun/gps/histpoint 0.0279 10</div>
<div>/gate/source/xraygun/gps/histpoint 0.0280 15</div>
<div>/gate/source/xraygun/gps/histpoint 0.0282 3</div>
<div>/gate/source/xraygun/gps/histpoint 0.0283 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0284 10</div>
<div>/gate/source/xraygun/gps/histpoint 0.0285 9</div>
<div>/gate/source/xraygun/gps/histpoint 0.0286 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0287 8</div>
<div>/gate/source/xraygun/gps/histpoint 0.0288 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0289 9</div>
<div>/gate/source/xraygun/gps/histpoint 0.0290 14</div>
<div>/gate/source/xraygun/gps/histpoint 0.0292 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0293 8</div>
<div>/gate/source/xraygun/gps/histpoint 0.0294 8</div>
<div>/gate/source/xraygun/gps/histpoint 0.0295 9</div>
<div>/gate/source/xraygun/gps/histpoint 0.0296 9</div>
<div>/gate/source/xraygun/gps/histpoint 0.0297 8</div>
<div>/gate/source/xraygun/gps/histpoint 0.0298 5</div>
<div>/gate/source/xraygun/gps/histpoint 0.0299 7</div>
<div>/gate/source/xraygun/gps/histpoint 0.0300 8</div>
<div>/gate/source/xraygun/gps/histpoint 0.0302 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0304 12</div>
<div>/gate/source/xraygun/gps/histpoint 0.0305 10</div>
<div>/gate/source/xraygun/gps/histpoint 0.0306 12</div>
<div>/gate/source/xraygun/gps/histpoint 0.0307 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0308 14</div>
<div>/gate/source/xraygun/gps/histpoint 0.0309 8</div>
<div>/gate/source/xraygun/gps/histpoint 0.0310 15</div>
<div>/gate/source/xraygun/gps/histpoint 0.0312 12</div>
<div>/gate/source/xraygun/gps/histpoint 0.0314 12</div>
<div>/gate/source/xraygun/gps/histpoint 0.0315 19</div>
<div>/gate/source/xraygun/gps/histpoint 0.0316 13</div>
<div>/gate/source/xraygun/gps/histpoint 0.0317 16</div>
<div>/gate/source/xraygun/gps/histpoint 0.0318 10</div>
<div>/gate/source/xraygun/gps/histpoint 0.0319 8</div>
<div>/gate/source/xraygun/gps/histpoint 0.0320 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0321 8</div>
<div>/gate/source/xraygun/gps/histpoint 0.0322 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0324 15</div>
<div>/gate/source/xraygun/gps/histpoint 0.0325 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0326 9</div>
<div>/gate/source/xraygun/gps/histpoint 0.0327 13</div>
<div>/gate/source/xraygun/gps/histpoint 0.0328 9</div>
<div>/gate/source/xraygun/gps/histpoint 0.0329 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0330 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0332 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0333 14</div>
<div>/gate/source/xraygun/gps/histpoint 0.0334 12</div>
<div>/gate/source/xraygun/gps/histpoint 0.0335 10</div>
<div>/gate/source/xraygun/gps/histpoint 0.0336 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0337 9</div>
<div>/gate/source/xraygun/gps/histpoint 0.0338 12</div>
<div>/gate/source/xraygun/gps/histpoint 0.0339 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0340 13</div>
<div>/gate/source/xraygun/gps/histpoint 0.0342 12</div>
<div>/gate/source/xraygun/gps/histpoint 0.0343 8</div>
<div>/gate/source/xraygun/gps/histpoint 0.0344 13</div>
<div>/gate/source/xraygun/gps/histpoint 0.0345 14</div>
<div>/gate/source/xraygun/gps/histpoint 0.0346 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0347 12</div>
<div>/gate/source/xraygun/gps/histpoint 0.0348 13</div>
<div>/gate/source/xraygun/gps/histpoint 0.0349 9</div>
<div>/gate/source/xraygun/gps/histpoint 0.0350 8</div>
<div>/gate/source/xraygun/gps/histpoint 0.0352 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0354 10</div>
<div>/gate/source/xraygun/gps/histpoint 0.0355 12</div>
<div>/gate/source/xraygun/gps/histpoint 0.0356 18</div>
<div>/gate/source/xraygun/gps/histpoint 0.0357 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0358 14</div>
<div>/gate/source/xraygun/gps/histpoint 0.0359 12</div>
<div>/gate/source/xraygun/gps/histpoint 0.0360 17</div>
<div>/gate/source/xraygun/gps/histpoint 0.0362 14</div>
<div>/gate/source/xraygun/gps/histpoint 0.0364 10</div>
<div>/gate/source/xraygun/gps/histpoint 0.0365 7</div>
<div>/gate/source/xraygun/gps/histpoint 0.0366 15</div>
<div>/gate/source/xraygun/gps/histpoint 0.0367 14</div>
<div>/gate/source/xraygun/gps/histpoint 0.0368 15</div>
<div>/gate/source/xraygun/gps/histpoint 0.0369 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0370 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0372 13</div>
<div>/gate/source/xraygun/gps/histpoint 0.0374 5</div>
<div>/gate/source/xraygun/gps/histpoint 0.0375 12</div>
<div>/gate/source/xraygun/gps/histpoint 0.0376 11</div>
<div>/gate/source/xraygun/gps/histpoint 0.0377 12</div>
<div>/gate/source/xraygun/gps/histpoint 0.0378 15</div>
<div>/gate/source/xraygun/gps/histpoint 0.0379 9</div>
<div>/gate/source/xraygun/gps/histpoint 0.0380 10</div>
<div>/gate/source/xraygun/gps/histpoint 0.0382 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0384 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0385 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0386 7</div>
<div>/gate/source/xraygun/gps/histpoint 0.0387 5</div>
<div>/gate/source/xraygun/gps/histpoint 0.0388 5</div>
<div>/gate/source/xraygun/gps/histpoint 0.0389 4</div>
<div>/gate/source/xraygun/gps/histpoint 0.0390 6</div>
<div>/gate/source/xraygun/gps/histpoint 0.0392 9</div>
<div>/gate/source/xraygun/gps/histpoint 0.0394 5</div>
<div>/gate/source/xraygun/gps/histpoint 0.0395 4</div>
<div>/gate/source/xraygun/gps/histpoint 0.0396 0</div>
<div>/gate/source/xraygun/gps/histpoint 0.0397 0</div>
<div>/gate/source/xraygun/gps/histpoint 0.0398 0</div>
<div>/gate/source/xraygun/gps/histpoint 0.0399 0</div>
<div>/gate/source/xraygun/gps/histpoint 0.0400 0 </div>
<div>/gate/source/xraygun/gps/arbint Lin</div>
<div>/gate/source/xraygun/gps/type Plane</div>
<div>/gate/source/xraygun/gps/shape Rectangle</div>
<div>/gate/source/xraygun/gps/halfx 0.5 mm</div>
<div>/gate/source/xraygun/gps/halfy 0.5 mm</div>
<div>/gate/source/xraygun/gps/mintheta 0 deg</div>
<div>/gate/source/xraygun/gps/maxtheta 20 deg</div>
<div>/gate/source/xraygun/gps/centre 0. 0 -30. cm</div>
<div>/gate/source/xraygun/gps/angtype iso<br>
</div>
<div>/gate/source/list</div>
<div><br>
<br>
</div>
<p><br>
</p>
<div>**** COMMENT ****</div>
<div><br>
</div>
<div>**** INPUTS ****</div>
<div>kVp [kV] hvMIN [keV] Dhv [keV]</div>
<div>80 35 1</div>
<div>Angle [deg.]</div>
<div>20</div>
<div>t_AIR t_BE t_AL t_CU t_SN t_W t_Wa [mm]</div>
<div>1000 0 1.8 0.2 0 0 0</div>
<div>Nf P</div>
<div>0.68 0.33</div>
<div>****CALCULATED OUTPUTS ****</div>
<div>Brem[uGy/mAs@1m] Char[uGy/mAs@1m]</div>
<div>18.27917 0.5059507</div>
<div>HVL1[cm AL] HVL2[cm AL] HVL1[cmCu] HVL2[cmCu] MeanE[keV]
EffEAl[keV] EffECu[keV]</div>
<div>0.6468978 0.7113056 0.0274761 0.0345901 52.70842
47.94336 48.65286</div>
<div>**** CALCULATED SPECTRUM ****</div>
<div>Energy[keV] N[keV cm^2 mAs]^-1 @ 1 meter</div>
<div>35 1.187381e+6</div>
<div>36 1.280875e+6</div>
<div>37 1.364120e+6</div>
<div>38 1.438492e+6</div>
<div>39 1.499967e+6</div>
<div>40 1.553381e+6</div>
<div>41 1.594962e+6</div>
<div>42 1.629092e+6</div>
<div>43 1.652779e+6</div>
<div>44 1.669283e+6</div>
<div>45 1.675181e+6</div>
<div>46 1.676172e+6</div>
<div>47 1.669860e+6</div>
<div>48 1.657938e+6</div>
<div>49 1.640536e+6</div>
<div>50 1.618250e+6</div>
<div>51 1.591554e+6</div>
<div>52 1.558279e+6</div>
<div>53 1.525396e+6</div>
<div>54 1.488330e+6</div>
<div>55 1.450930e+6</div>
<div>56 1.407308e+6</div>
<div>57 1.364181e+6</div>
<div>58 1.804551e+6</div>
<div>59 2.125239e+6</div>
<div>60 1.226175e+6</div>
<div>61 1.177968e+6</div>
<div>62 1.127134e+6</div>
<div>63 1.076617e+6</div>
<div>64 1.026495e+6</div>
<div>65 974002.7</div>
<div>66 922461.9</div>
<div>67 1.174642e+6</div>
<div>68 815959.8</div>
<div>69 844593.3</div>
<div>70 687849.9</div>
<div>71 635229.3</div>
<div>72 583219.2</div>
<div>73 529320.2</div>
<div>74 474595.1</div>
<div>75 418300.2</div>
<div>76 356307.2</div>
<div>77 294032.1</div>
<div>78 231207.9</div>
<div>79 128305.2</div>
<div>80 0</div>
<div><br>
<br>
</div>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper"
style="font-family:Calibri,Arial,Helvetica,sans-serif;
font-size:; margin:0">
<div class="BodyFragment">
<div class="PlainText"
style="font-family:Calibri,Arial,Helvetica,sans-serif"><font><br>
<br>
<font
style="font-family:Calibri,Arial,Helvetica,sans-serif"
size="2">--------------------------------</font><br>
<font
style="font-family:Calibri,Arial,Helvetica,sans-serif"
size="2">MSc Student in Biomedical and Biophysics
Engineering at Faculty of Sciences of the University
of Lisbon</font><br>
<br>
<font
style="font-family:Calibri,Arial,Helvetica,sans-serif;
font-size:small" color="black" size="3"><span
dir="ltr" style="font-size:12pt;
background-color:white"><font size="2"><span
lang="en">Institute</span><span lang="en">
</span><span lang="en">of Biophysics and</span><span
lang="en"> </span><span lang="en">Biomedical
Engineering</span><span lang="en"><br>
</span><span lang="en">Faculty</span><span
lang="en"> </span><span lang="en">of Sciences,
University</span><span lang="en">
</span><span lang="en">of Lisbon</span><br>
Campo Grande<br>
1749-016 Lisbon<br>
<br>
</font></span></font><font size="2"><font
style="font-family:Calibri,Arial,Helvetica,sans-serif">Room
Office: 1.02</font><br>
<font
style="font-family:Calibri,Arial,Helvetica,sans-serif"
color="black"><span dir="ltr"
style="background-color:white">Extension: 20509
<br>
Email: <a class="moz-txt-link-abbreviated" href="mailto:ammonteiro@fc.ul.pt">ammonteiro@fc.ul.pt</a></span></font></font></font></div>
<div class="PlainText"><font size="2"><font
style="font-family:Calibri,Arial,Helvetica,sans-serif"
color="black"><span dir="ltr"
style="background-color:white">LinkedIn Profile: </span></font><font
style="text-decoration:none; line-height:21px;
background-color:rgb(255,255,255)" color="#000000"><a
moz-do-not-send="true" tabindex="0"
href="http://linkedin.com/in/andremmonteiro">http://linkedin.com/in/andremmonteiro</a></font><font
style="font-family:Calibri,Arial,Helvetica,sans-serif"
color="black"><span dir="ltr"
style="background-color:white"><br>
Website: <a moz-do-not-send="true" tabindex="0"
href="http://www.ibeb.fc.ul.pt/" target="_blank">http://www.ibeb.fc.ul.pt/</a></span></font></font><br>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Gate-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></pre>
</blockquote>
<br>
<br>
Dear André Miguel Monteiro,<br>
<br>
you can simply replace the histogram values in the CT-example by any
histogram values you like. <br>
Keep in mind that:<br>
- Unit of energy values = MeV <br>
- Max. number of histogram points = 1024<br>
<br>
It might be useful to generate the histpoint lines by a script. <br>
Assuming the file "SpekCalc.dat" contains the SpekCalc simulation
result in ASCII file format, <br>
you can use Matlab/Octave for instance:<br>
<blockquote><i>spec_in = load('SpekCalc.dat');</i> <i> %output of
SpekCalc simulation; assumed to be an ASCII file</i><br>
<i>energ = spec_in(:,1)/1000; %keV->MeV</i><br>
<i>intens = spec_in(:,2);</i><br>
<i>fileID = fopen('source_tmp.txt','w');</i><br>
<i>for i = 1 : length(energ)</i><br>
<i> str = ['fprintf(fid,''/gate/source/xraygun/gps/histpoint ',
num2str(energ(i)),' ', num2str(intens(i)),' \n'');'];</i><br>
<i> fprintf(fileID,'%s\n',str);</i><br>
<i>end</i><br>
<i>fclose(fileID);</i><br>
</blockquote>
<br>
Best regards,<br>
Simon Schlesinger<br>
<br>
<pre class="moz-signature" cols="72">--
Dipl.-Phys. Simon Schlesinger
Bergische Universität Wuppertal
FB C - Physik, G11.07a
Tel.: 0202 / 439 - 2804
Mobil: 0151 / 401 21 890
Mail: <a class="moz-txt-link-abbreviated" href="mailto:schlesinger@uni-wuppertal.de">schlesinger@uni-wuppertal.de</a>
Web: <a class="moz-txt-link-freetext" href="http://www.techphys.uni-wuppertal.de">http://www.techphys.uni-wuppertal.de</a></pre>
</body>
</html>