Hi,
(ROOT 5.13/03)
To get right to the core of my problem:
I want to friend two chains but somehow it doesn’t work out.
I tried the following:
#include "TChain.h"
TChain *c1;
TChain *f1;
void test_friend(){
c1 = new TChain("TB/tree");
f1 = new TChain("CalibHit/LArCalibHit");
c1->Add( "rfio:///castor/cern.ch/user/n/ngollub/ATLAS/ctb_simulation/12.0.1/ctb_run2096_e9000_pid211/ntp_ctb_run2096_e9000_pid211_evt*.root" );
f1->Add( "rfio:///castor/cern.ch/user/n/ngollub/ATLAS/ctb_simulation/12.0.1/ctb_run2096_e9000_pid211/ntp_ctb_run2096_e9000_pid211_evt*.root" );
c1->Print();
f1->Print();
c1->AddFriend( f1, "alias" );
c1->Print( "_LAr*" );
}
… each of the chains is printed just as normal, but after “friending” them together I can’t access the data-members of the second chain through the first one.
What am I doing wrong?
thanks,
Peter