Skip to content

Latch variable of EGS_Particle Struct #1059

Answered by ftessier
jstask0 asked this question in Questions
Discussion options

You must be logged in to vote

The meaning of latch is determined by the application (BEAMnrc, egs_chamber, etc.). It is always just an integer, but the application might interpret it as a numerical value (1, 2, 3, ...) or a bit field (correspondingly: 0x01, 0x10, 0x11, ...). In BEAMnrc, it is interpreted as a bit field, where each bit in the integer is turned on (1) or off (0) according to the latch bit associations in the geometry.

So again, latch is always a plain old integer, but in the application you can set its value and interpret it as you wish.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jstask0
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants