Andrés Vargas
2013-03-16 21:34:42 UTC
Hi,
I've read a TTree object from a root file, I can run things like
T->Scan("Parent1.Px:Parent2.Px:Parent3.Px") without problem (i.e I can
read the data for this variables), but when I ran
T->SetBranchAddres("Parent1.Px",&p1px) I obtained this error:
Error in <TTree::SetBranchAddress>: unknown branch -> Parent1.Px
when I ran T->GetListOfBranches()->FindObject("Parent1.Px"):
(const class TObject*)0x0
Bad!
when I ran T->GetListOfLeaves()->FindObject("Parent1.Px"):
(const class TObject*)0x0
Again Bad!
when I ran T->GetListOfBranches()->FindObject("Parent1");
(const class TObject*)0x24f4c00
it is right ok?
but, when I ran T->GetListOfLeaves()->FindObject("Px"):
(const class TObject*)0x24f5af0
what is this??
I have to read data from Parent1.Px, what can I do?
Thanks in advance,
Andrés,
I've read a TTree object from a root file, I can run things like
T->Scan("Parent1.Px:Parent2.Px:Parent3.Px") without problem (i.e I can
read the data for this variables), but when I ran
T->SetBranchAddres("Parent1.Px",&p1px) I obtained this error:
Error in <TTree::SetBranchAddress>: unknown branch -> Parent1.Px
when I ran T->GetListOfBranches()->FindObject("Parent1.Px"):
(const class TObject*)0x0
Bad!
when I ran T->GetListOfLeaves()->FindObject("Parent1.Px"):
(const class TObject*)0x0
Again Bad!
when I ran T->GetListOfBranches()->FindObject("Parent1");
(const class TObject*)0x24f4c00
it is right ok?
but, when I ran T->GetListOfLeaves()->FindObject("Px"):
(const class TObject*)0x24f5af0
what is this??
I have to read data from Parent1.Px, what can I do?
Thanks in advance,
Andrés,