TChain and AddFriend

I am trying to use the TChain and AddFriend methods. This is what I do:

TChain *chainbm = new TChain(“bmtree”);
chainbm->Add(“beam_info.root”);

TChain chainsr = new TChain(“NtpSt”);
chainsr->Add("/plvm/debdatta/real_neardata/mar_2005/N00006696
.root");

chainsr->AddFriend(“chainbm”); or
chainsr->AddFriend(“bmtree”);

None of them seem to work, I get an error message:
Unknown TChain bmtree or
Unknown TChain chainbm
Both the chains have the same number of entries.

                       - thanks Debdatta.

Dochainsr->AddFriend(chainbm);
Cheers,
Philippe.