# How to limit the energy range in USRBIN

**URL:** <https://fluka-forum.web.cern.ch/t/how-to-limit-the-energy-range-in-usrbin/5543>\
**Category:** Scoring\
**Created:** [8 January 2024 10:01 UTC](https://fluka-forum.web.cern.ch/t/how-to-limit-the-energy-range-in-usrbin/5543 "2024-01-08T10:01:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZhongLy](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/z/8edcca/32.png) [@ZhongLy](https://fluka-forum.web.cern.ch/u/ZhongLy)\
**Post date:** [8 January 2024 10:01 UTC](https://fluka-forum.web.cern.ch/t/how-to-limit-the-energy-range-in-usrbin/5543/1 "2024-01-08T10:01:24Z")

</div>

Dear expert:

I need to calculate gamma spatial distribution in different energy range(0-2.5MeV and 2.5-10MeV) by USRBIN card. But, there are issues that bother me:

1. Activation mode is used in RADDECAY card, and there is no DCYSCORE card assigned to 25-28BIN. So, is the result of 25-28 BIN referring to the zero-moment decay?

2. How can I score gamma spatial distribution in different energy range(0-2.5MeV and 2.5-10MeV)?

Thanks in advance!

Kind regards,  
LY Zhong  
[1.flair](https://fluka-forum.web.cern.ch/uploads/short-url/huYZobubezSYcggpfdfP82j654h.flair) (9.2 KB)

---

<div class="post-metadata">

**Author:** ![matisi](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/3bc359/32.png) [@matisi](https://fluka-forum.web.cern.ch/u/matisi)\
**Post date:** [8 January 2024 13:12 UTC](https://fluka-forum.web.cern.ch/t/how-to-limit-the-energy-range-in-usrbin/5543/3 "2024-01-08T13:12:11Z")

</div>

Dear Luyu Zhong,

Thanks for your questions.

1. If you have a `USRBIN` scorer with no `DCYSCORE` card associated (e.g., scorers N2\_1, N3\_1, and N4\_1 in your flair project), that detector will only score prompt fluence expressed in particle/cm^2^/primary (if you are scoring fluence), even if you have a `RADDECAY` card with `Activation` mode selected.

2. To score the gamma fluence for a given energy range you need to make use of the `fluscw.f` user routine, that is enabled by placing a `USERWEIG` card in your FLUKA input file. As for any other routine, remember to include it when compiling the executable file.  
Please have a look at this thread on the FLUKA forum, that addresses the same issue you are trying to solve:  
[USRBIN - plot fluence of neutrons within specific range of energy - Scoring - FLUKA User Forum (cern.ch)](https://fluka-forum.web.cern.ch/t/usrbin-plot-fluence-of-neutrons-within-specific-range-of-energy/1344)  
Should you have any troubles with the implementation, let me know!

I hope this helps,  
Cheers,  
Marco

---

<div class="post-metadata">

**Author:** ![rversaci](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/r/cc9497/32.png) [@rversaci](https://fluka-forum.web.cern.ch/u/rversaci)\
**Post date:** [22 January 2024 14:09 UTC](https://fluka-forum.web.cern.ch/t/how-to-limit-the-energy-range-in-usrbin/5543/4 "2024-01-22T14:09:03Z")

</div>

Closed on 22 January 2024 14:09 UTC


