cint5.13.31

Tom Moog (moog@slowpoke.phy.anl.gov)
Mon, 3 Nov 1997 23:48:42 -0600 (CST)


I am trying to create a branch containing a TArrayS object
in a Cint script. The call to tree->Branch always give
a segment violation.

What is correct for the third argument to TTree::Branch ?

{
TFile *file=new TFile("data.root","UPDATE");
TTree *tree=new TTree();
TArrayS *s=new TArrayS(5);
TBranch *b=tree->Branch("my branch","TArrayS",???,0,0);
***
}