Gate icon indicating copy to clipboard operation
Gate copied to clipboard

separating slash in branch name hinders easy plotting

Open bl0x opened this issue 2 years ago • 2 comments

The choice of the "/" character as a separator here:

https://github.com/OpenGATE/Gate/blob/902efdafd4383db7e44b2378270794d00da5369f/source/digits_hits/src/GateToTree.cc#L340

hinders easy plotting of the affected branches in the ROOT tree browser.

I'd suggest to use an underscore instead.

bl0x avatar Dec 13 '23 23:12 bl0x

The same is also done for the Singles tree:

https://github.com/OpenGATE/Gate/blob/902efdafd4383db7e44b2378270794d00da5369f/source/digits_hits/src/GateToTree.cc#L493

and for the coincidences:

https://github.com/OpenGATE/Gate/blob/902efdafd4383db7e44b2378270794d00da5369f/source/digits_hits/src/GateToTree.cc#L667

bl0x avatar Dec 13 '23 23:12 bl0x

I can confirm that replacing the "/" with an "_" makes the problem disappear.

bl0x avatar Dec 21 '23 01:12 bl0x