I've tried your suggestion, but it does not solve my problem: the simple selector i sent you works well, my real one, somewhat bigger, doesn't work. I'll think about these problems Thank you very much Luigi ------------------------------- Luigi Bardelli INFN Sezione di Firenze E-Mail: bardelli@fi.infn.it luigi@windmail.net ------------------------------- On Mon, 12 Mar 2001, Rene Brun wrote: > Hi Luigi, > > I looked into your script: > When you use a TChain, you should not do: > > TChain *FiascoDATA = new TChain("Data","Data"); > FiascoDATA->Add("data/run10-2h.cfd.root"); > TBranch *FiascoBranch = FiascoDATA->GetBranch("FiascoBranch"); > FiascoBranch->SetAddress(&event); > > but simply > > TChain *FiascoDATA = new TChain("Data","Data"); > FiascoDATA->Add("data/run10-2h.cfd.root"); > FiascoDATA->SetBranchAddress("FiascoBranch",&event); > > Note that you can also do the same on a single TTree. > > We will clarify this point in the documentation. > > Rene Brun >
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:39 MET