Hi, I have a problem using CloneTree. It clones all the branches of my tree except one. This one is instead filled with zeros: root [0] TFile f("xsignal.root") root [1] TTree *xtree = (TTree *)f.Get("xtree") root [2] TTree *tree = xtree->CloneTree(10) root [3] xtree.Scan("runnumber:m0pi0:m0rhoc") ************************************************ * Row * runnumber * m0pi0 * m0rhoc * ************************************************ * 0 * 920010 * 0.1351703 * 0.8215906 * * 1 * 920010 * 0.1402094 * 0.8085310 * * 2 * 920010 * 0.1351703 * 0.7278476 * * 3 * 920010 * 0.1402094 * 0.7103212 * * 4 * 920010 * 0.1351703 * 0.4107116 * * 5 * 920010 * 0.1402094 * 0.4091337 * * 6 * 920010 * 0.1351703 * 0.4188330 * * 7 * 920010 * 0.1351703 * 0.9753960 * * 8 * 920010 * 0.1402094 * 0.9261648 * * 9 * 920010 * 0.1351703 * 0.9753960 * * 10 * 920010 * 0.1402094 * 0.9261648 * [...] Type <CR> to continue or q to quit ==> q ************************************************ (Int_t)25 root [4] tree.Scan("runnumber:m0pi0:m0rhoc") ************************************************ * Row * runnumber * m0pi0 * m0rhoc * ************************************************ * 0 * 920010 * 0.1351703 * 0 * * 1 * 920010 * 0.1402094 * 0 * * 2 * 920010 * 0.1351703 * 0 * * 3 * 920010 * 0.1402094 * 0 * * 4 * 920010 * 0.1351703 * 0 * * 5 * 920010 * 0.1402094 * 0 * * 6 * 920010 * 0.1351703 * 0 * * 7 * 920010 * 0.1351703 * 0 * * 8 * 920010 * 0.1402094 * 0 * * 9 * 920010 * 0.1351703 * 0 * ************************************************ (Int_t)10 The same happens when I use SetBranchStatus("*",1) before and after CloneTree. Also the same problem occurs when I use CopyTree. Does anybody have an idea what I am doing wrong? I am using RooT 3.10-01. Thanks, Frank
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET