{
TFile f2(“ht.root”, “recreate”);
TTree *mytree = new TTree(“mytree”, “Test Tree”);
Double_t val[5] = {0, 0, 0, 0, 0};
TBranch b2 = mytree->Branch(“b2”, val, “a/D:b:c:d:e”);
for (int i=0; i<8; i++) {
val[0] = 1; val[3] = -3.14; val[2] = i1.;
mytree->Fill() ;
}
f2.Write() ;
mytree->Print();
mytree->Scan();
}
…
please if a =7 and also a=3 how can i fill branch for this condition that’s when open branch a i will see 7 and 3
please help me as you can and thanks so much