C++ structure in pyroot

Is it possible to build a c++ style structure in pyroot and pass it to the c++ code?

For example,
I need the following structure an input in the following code.

struct ttt {
  int a; 
  float b; 
} test;

obj = ROOT.cpp_code(test)


Maybe the PyROOT documentation can help?

1 Like

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