#include "ccc.h" ClassImp(C) int tree_test1() { gInterpreter->GenerateDictionary("C;vector", "ccc.h;vector"); auto t = new TTree("t", "t"); //std::vector a({1.5, 2.5, 3.4}); double am[] = {1.5, 2.5, 3.4}; C c; c.a.assign(am, am+3); std::vector vc; vc.push_back(c); int b[] = {0, 100}; //t->Branch("a", a, "a[3]/D"); t->Branch("c", &vc); t->Branch("b", b, "b[2]/I"); t->Fill(); b[0]=200; b[1]=2; t->Fill(); t->Scan("c.a:b"); t->Scan("c[b[0]].a:b[0]"); t->Scan("c[0].a"); return 0; }