in how far is it implemented in TBranch to use the SetFile method for=20
TBranchClones and TBrachObjects. The SetFile method works fine for simple=
=20
Branches of an automaticely splitted TTree. For example:=09
=09
MainEvent.cxx in $ROOTSYS/test
=09
=09=09.
=09=09.
=09=09.
=09=09=04=04=04=04=09=09
=09tree->Branch("event", "Event", &event, bufsize,split); (split=3D=3D1 !)
=09=09
=09TBranch* tmpBr=3Dtree->GetBranch("fTracks.fMass2");=20
=09tmpBr->SetFile("fTracks.fMass2.root"); =20
=09=09.
=09=09.
=09=09.
=09=09=09=09
But if we try to split the tree to different files manually, e.g.=09=09
=09.
=09.
=09.
// tree->Branch("event", "Event", &event, bufsize,split);
void* address=3Devent->GetTracks();
TBranch* tmpB=3Dtree->Branch("ggtracks", &address, bufsize, split);
tmpB->SetFile("ggtracks.root");
=20
void* address1=3D&(event->fNtrack);
tmpB=3Dtree->Branch("members", address1,"ugu/I:aga/I:peng/I", bufsize);
tmpB->SetFile("membersOfEvent.root");
=09
void* address2=3Devent->GetHeader(); // (EventHeader inherits from TObject=
)
tmpB=3Dtree->Branch("header","EventHeader", &address2, bufsize, split);
tmpB->SetFile("header.root");
, we encountered the problem that none of the files are created. The branch=
es=20
are all written to the event.root file.=20
Does the SetFile method not work for the TBranchClones and TBranchObjects, =
but=20
just for simple Branches ?=20
Cheers
=09Helmut and Bergi