# Material index in scoring LET, using GETLET function

**URL:** <https://fluka-forum.web.cern.ch/t/material-index-in-scoring-let-using-getlet-function/6234>\
**Category:** Scoring\
**Created:** [12 July 2024 08:45 UTC](https://fluka-forum.web.cern.ch/t/material-index-in-scoring-let-using-getlet-function/6234 "2024-07-12T08:45:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwlibuaa](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/k/2bfe46/32.png) [@kwlibuaa](https://fluka-forum.web.cern.ch/u/kwlibuaa)\
**Post date:** [12 July 2024 08:45 UTC](https://fluka-forum.web.cern.ch/t/material-index-in-scoring-let-using-getlet-function/6234/1 "2024-07-12T08:45:06Z")

</div>

Dear FLUKA experts,

> [@Scoring both LETd and LETt of primary protons in water](https://fluka-forum.web.cern.ch/t/scoring-both-letd-and-lett-of-primary-protons-in-water/5061/3):
>
> Dear @kwlibuaa, Thank you for your question. First of all, would you mind sharing some of the results that you find incorrect, together with the beam shape dependance? It would be very useful to me in order to pinpoint the differences. Using as a reference [this post](https://fluka-forum.web.cern.ch/t/strange-let-shape-for-800-kev-protons-in-lif/3182/5) with the canonical definition of LETt and LETd, it seems to me that your LETt calculation is coherent. However, the way you define LETd is different since dose is used, which is proportional to the deposited energy. You are somehow…

As we have discussed before, it is possible to obtain both LETd and LETt by using the GETLET function, but that was only in a water phantom, where the material index of water is a fix number 26.

ENDLET = GETLET(JTRACK,EKIN,PLA,ZERZER,26)

When I want to score the LET in a CT DICOM file, where the assigned material in each voxel might be different, how could I use the GETLET function with a correct material index?

---

<div class="post-metadata">

**Author:** ![msacrist](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/b5a626/32.png) [@msacrist](https://fluka-forum.web.cern.ch/u/msacrist)\
**Post date:** [16 July 2024 10:29 UTC](https://fluka-forum.web.cern.ch/t/material-index-in-scoring-let-using-getlet-function/6234/3 "2024-07-16T10:29:56Z")

</div>

Dear @kwlibuaa,

Thank you for your question. To use the material of a certain region in the function GETLET you can use the function `MEDFLK(MREG,1)`. It returns the material number as a function of the region number `MREG`. In this way, the material number is adjusted to each position where the function is evaluated.  
I hope this helps.

Regards,  
Mario

---

<div class="post-metadata">

**Author:** ![horvathd](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/horvathd/32/10584_2.png) [@horvathd](https://fluka-forum.web.cern.ch/u/horvathd)\
**Post date:** [31 July 2024 06:58 UTC](https://fluka-forum.web.cern.ch/t/material-index-in-scoring-let-using-getlet-function/6234/4 "2024-07-31T06:58:46Z")

</div>

Closed on 31 July 2024 06:58 UTC


