Thanks much Rene, that worked.
~Hovhanes
On Mar 2, 2011, at 3:02 PM, Rene Brun wrote:
> You must have a Tree in teh chain. You can for example force the first Tree (entry=0) with > chain->LoadTree(0); > TH1F* h = (TH1F*)chain->GetTree()->GetUserInfo()->At(0); > > Rene > > > > On 02/03/2011 14:56, Hovhannes Khandanyan wrote:
>>> TH1F* h = (TH1F*)chain->GetTree()->GetUserInfo()->At(0);
>>> TH1F* h = (TH1F*)chain->GetTree(0)->GetUserInfo()->At(0);
>>> >>> Rene >>> >>> >>> On 02/03/2011 13:08, Hovhannes Khandanyan wrote: >>>> Dear ROOTers, >>>> >>>> I have a TChain of TTrees each of which has UserInfo object with a TH1F in it. Things are OK when I operate with individual tree. Anyhow, as soon as I ask for : >>>> >>>> TH1F* h = (TH1F*)chain->GetUserInfo()->At(0); >>>> >>>> I get a NULL pointer. Please let me know what I am doing wrong. >>>> >>>> Thanks, >>>> Hovhannes >>>> >Received on Wed Mar 02 2011 - 15:15:27 CET
This archive was generated by hypermail 2.2.0 : Wed Mar 02 2011 - 17:50:01 CET