Hi, I was wondering as well. Looking at TTreePlayer it seems TSelector::Process is never called, only ProcessCut gets called (I'm too lazy to actually test that now). Could someone clarify what TSelector::Process is for and what the difference to ProcessCut is? Cheers, Axel. > -----Original Message----- > From: owner-roottalk@pcroot.cern.ch > [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Davide Grandi > Sent: Friday, November 22, 2002 4:47 AM > To: roottalk@cern.ch > Subject: > > > Dear rooters, > in the new version of root (3.03.09 on a Linux machine, Intel 2.0 > Ghz double processor) using MakeSelector there is a new bool part of the > .C file, essentially the Process part (see below). Sorry for my ignorance > but what is the main difference with ProcessCut (it is not mentioned in > the example in the Users Guide...)? > > Bool_t test2::Process(Int_t entry) > { > // Processing function. > // Entry is the entry number in the current tree. > // Read only the necessary branches to select entries. > // To read complete event, call fChain->GetTree()->GetEntry(entry). > // Return kFALSE as stop processing. > > } > > Bool_t test2::ProcessCut(Int_t entry) > { > // Selection function. > // Entry is the entry number in the current tree. > // Read only the necessary branches to select entries. > // Return kFALSE as soon as a bad entry is detected. > // To read complete event, call fChain->GetTree()->GetEntry(entry). > > return kTRUE; > } > > > Thanks > > Davide Grandi > > > ********************************************************************** > $ Davide Grandi % > $ INFN Milano e-mail Davide.Grandi@mib.infn.it % > $ P.zza delle Scienze 3 phone +39 02 6448 2306 % > $ 20126 MILANO fax +39 02 6448 2367 % > $ ITALY % > $ % > $ at CERN e-mail > Davide.Grandi@cern.ch % > $ CH-1211 Geneve CH phone +41 22 767 9403 % > $ Bldg. 506 room R018 % > $ or phone +41 22 767 7560 % > $ Bldg. 576 room R002 % > &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& > > >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:20 MET