On Wed, 9 Mar 2011 14:27:54 +0100, Rene Brun <Rene.Brun_at_cern.ch> wrote:
> use TChain::SetBranchAddress and TChain::SetBranchStatus
so this code just happens to work for the special case of a TChain with one file (I was careful to check the methods I was calling on the TTree were virtual ;))...
> > void MyClass::init_branches(TTree *t)
> > {
> > TBranch *b = t->GetBranch("some_br_name");
> > if (!b) { panic(); }
> > b->SetAddress(&this->m_some_var);
> > b->SetStatus(1);
> > }
-s
-- ######################################### # Dr. Sebastien Binet # Laboratoire de l'Accelerateur Lineaire # Universite Paris-Sud XI # Batiment 200 # 91898 Orsay #########################################Received on Wed Mar 09 2011 - 14:41:51 CET
- application/pgp-signature attachment: stored
This archive was generated by hypermail 2.2.0 : Wed Mar 09 2011 - 17:50:01 CET