OpenGATE / Gate

Official public repository of Gate
http://www.opengatecollaboration.org
GNU Lesser General Public License v3.0
231 stars 261 forks source link

separating slash in branch name hinders easy plotting #656

Open bl0x opened 6 months ago

bl0x commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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