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 Bardelli Luigi wrote: > > Hello rooters, > > I have an unsplit tree made with ROOT 3.00.02, and i'm working with the > TTree::MakeSelector and TTree::Process methods. > The problem arises when i try to process the TTree with ROOT 3.00.05: > I get a segmentation violation when it reaches the line: > > void mySelector::ProcessFill(Int_t entry) > { > .... > fChain->GetTree()->GetEntry(entry); > .... > > It seems that fChain->GetTree() is ok, but fChain->GetTree()->GetEntry(entry) > is not. Opening the file by hand works well. > > Can someone help me? > Thank you > > Luigi > > ------------------------------- > Luigi Bardelli > INFN Sezione di Firenze > E-Mail: bardelli@fi.infn.it > luigi@windmail.net > -------------------------------
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:39 MET