Hi Tau,
Try
ch.Process(sel,"",10000,0);
Cheers,
Philippe.
-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Tau Ken
Sent: Monday, January 26, 2004 3:42 PM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] How to set the number of events to process in
MakeSelector
Hi, Dear Rooters:
I use MakeSelector to analyze some data, since these
files are very big, I want to specify total number of
events I want to process. I first did:
Global->NakeSelector("anal") then I wrote a main file
that will chain files and process all files. The main
file looks like this:
#include "anal.h"
anal *sel;
TChain ch("Global");
int main(int argc, char** argv) {
//code to chain files
ch.Process(sel);
}
Then I compile my code and run it, now I want to know
where can I specify number of events I want to
process. I know how to do it interactively
ch.Process("**.root", "", "", 10000), but I do not
know how can I do it in my way. Thanks for any help!
Best,
Tao
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET