Hi. I've been work with a TTree using TBranchClones (using TClonesArrays). I have a TBranchClones for event information, and then a TBranchClones for secondary vertices, using splitmode=1 for both. I want to send the two branch clones to separate files. I spent quite a while figuring out how to do this: 1) SetFile() must be called for EVERY subbranch of the TBranchClones branch (one cannot just set file for the TBranchClones branch). 2) Only the SetFile(TFile*) method works, as SetFile(char*) never sets the directory in this case. Once I got this working, I put the base of the TTree in one file along with the event information branch, and I put only the secondary vertex branch in another file. However, when I wrote out my TTree, I found that the event file still contained everything! The secondary vertex file appeared to be fine, containing only information from that branch, but the event file contained the full information from the secondary vertices also. I could remove the file of secondary vertices, and the event file could be used alone to look at the secondary vertices. How do I turn this off? Thanks for any help, -Gene Van Buren
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:24 MET