The example shows how to use the decorators by printing the coordates and radius of every node that has them.
The example shows how to use the decorators by printing the coordates and radius of every node that has them.
import RMF
def traverse(nh, pf):
if pf.get_is(nh):
d = pf.get(nh)
print(nh.get_name(), d.get_coordinates())
children = nh.get_children()
for c in children:
traverse(c, pf)
pf = RMF.ParticleFactory(fch)
traverse(fch.get_root_node(), pf)
FileConstHandle open_rmf_file_read_only(std::string path)