# Particles leaving geometry

**URL:** <https://fluka-forum.web.cern.ch/t/particles-leaving-geometry/8156>\
**Category:** Advanced Features and User Routines\
**Created:** [11 February 2026 13:06 UTC](https://fluka-forum.web.cern.ch/t/particles-leaving-geometry/8156 "2026-02-11T13:06:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lklippha](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/l/3d9bf3/32.png) [@lklippha](https://fluka-forum.web.cern.ch/u/lklippha)\
**Post date:** [11 February 2026 13:06 UTC](https://fluka-forum.web.cern.ch/t/particles-leaving-geometry/8156/1 "2026-02-11T13:06:29Z")

</div>

Dear FLUKA experts,

I am re-touching simulations from 2024 and was wondering if it is possible to get particle based information of particles leaving a target for a simple simulation. Two years ago I simulated an electron beam imping on a target and thus used FLUKA as an event generator for our experiment. Since we were especially interested in electro-nuclear interactions, I had a custom mgdraw that produced output files with all secondary particles from ICODE=101 interactions.

Since we also want to know what happens with the secondary particles in our setup, we were now wondering if it is possible to have such exact information of particles leaving the target region. (energy, momentum, particle ID and event ID for each particle leaving the target region)

As far as I have understood this is not possible directly since boundary crossings are given in particle fluence, not single particles. But I might be wrong.

I would be very happy for some feedback or redirection if and how this would be possible in FLUKA.

Kind regards,  
Laney

---

<div class="post-metadata">

**Author:** ![dprelipc](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/dprelipc/32/2129_2.png) [@dprelipc](https://fluka-forum.web.cern.ch/u/dprelipc)\
**Post date:** [12 February 2026 14:03 UTC](https://fluka-forum.web.cern.ch/t/particles-leaving-geometry/8156/3 "2026-02-12T14:03:29Z")

</div>

Dear @lklippha,

Some of the built-in scorings of the FLUKA Cards are indeed in particle fluence, but you can adapt an mgdraw routine, the same way you have previously done, in order to score particle by particle.

If you follow [this](https://indico.cern.ch/event/1200922/contributions/5411856/attachments/2662688/4613294/10_MGDRAW_routine_2023_Advanced_ANL.pdf) lecture (slide 17) on the mgdraw user scoring, you can intercept every boundary crossing and then score the information that you require. For this, you would have to use adapt the BXDRAW entry of the routine, and know the name of the region around your target.

If you upload an example \*.inp file I can double check the region definitions such that they are correct for your purpose. Moreover, should you have issues with adapting the mgdraw, please upload your version as well and I can advise.

Hoping for a quick and smooth boundary crossing into the region of a workable solution for you,  
Daniel

---

<div class="post-metadata">

**Author:** ![lklippha](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/l/3d9bf3/32.png) [@lklippha](https://fluka-forum.web.cern.ch/u/lklippha)\
**Post date:** [18 February 2026 14:02 UTC](https://fluka-forum.web.cern.ch/t/particles-leaving-geometry/8156/4 "2026-02-18T14:02:24Z")

</div>

Dear Daniel,

thank you very much for your reply! I will try it out and let you know if anything comes up.

Kind regards

Laney

---

<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:** [5 March 2026 07:13 UTC](https://fluka-forum.web.cern.ch/t/particles-leaving-geometry/8156/5 "2026-03-05T07:13:28Z")

</div>

Closed on 5 March 2026 07:13 UTC


