I know that this probably a really stupid question, but how can I read back in compiled macro a TVectorD from a TTree. I produced the tree with the TTreeSRedirector (variable: fpcstream),
… // filling of the dcaTrack(3) and pTTrack(3)
<< "dcaTrack.=" << &dcaTrack
<< "pTTrack.="<< &pTTrack
This worked fine. Now I would like to read this tree, however I somehow screw it up and it doesn’t work:
TTree *Vertices = (TTree*)gDirectory->Get("Vertices"); TVectorT<double> dcaTrack; TVectorT<double> pTTrack; Vertices->SetBranchAddress("dcaTrack.",&dcaTrack); Vertices->SetBranchAddress("pTTrack.",&pTTrack);
This code piece was mainly generated by Vertices->MakeCode(). What am I doing wrong?