please i have tree and branch
this branch has a leaf contained a 7 variables
please i don’t know the code for making this leaf with its variable
please help me
please this is a programme how can i make xx leaf hold xx1 and xx2
and how can i make xx1 hold xxx1 and xxx2 please i tried before with these trees examples but i couldn’t find solution for this problem please help me
TFile f(“ht.root”,“recreate”);
TTree* mytree = new TTree(“mytree”,“Test Tree”);
TH1D* h = new TH1D(“h”,“h”,10,0,1);
Double_t values[3] = {0,0,0};
TBranch *b2 = mytree->Branch(“b2”,values, “xx/D:ff:hh”);
mytree->Fill();
f.Write();
Yes, that’s simple examples you can use as model.
yes i tried with this example to find solution i used the code of tree1 then tree2 then tried with 3 and finally with 4 but without result
Hi,
See the result of calling MakeClass on your TTree for a good example
Cheers,
Philippe.