Is there a way to store RooRealVar as a branch in a tree? My aim is to get the distribution of v1 in a range of v0 variable. I tried such a way that first created and filled a histogram as below
TFile f(“tree.root”,“recreate”);
TTree *T = new TTree(“Sig”,“test”);
T->Branch(“myv1”,&h1); // I try this line but tree has no branch with the distribution of v1 variable. I get it in the root file but not in the branch.