Can I change of default output of a class in ROOT prompt?


_ROOT Version:6.28.06


Hi all:
Can I change of the default output of a class.
the default like below

cx[000]:> struct {double a; double b;} c;
cx[001]:> c
(struct (unnamed) &) @0x1373c8000

I’d like to change it like below

cx[000]:> struct {double a; double b;} c;
cx[001]:> c
{0.0, 0.0}

I try to write the operator<< but it didn’t work.

1 Like

Maybe @axel can help you on this/

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.