Hi, i would use *perl* to do the selection ... then use popen, TSystem::OpenPipe that is, to get the names in. eg.: #!/usr/bin/perl <<END_PERL @files = sort @ARGV; # some higher magick might be usefull ... print join("\n", @files); print "\n"; END_PERL and then use FILE* in = gSystem->OpenPipe("perlscript *.root", "r"); while(!feof(in)) { // read name ... open the file ... do magick } or do the preselection in perl script itself ... which is even better. Then you can also pass other stuff to analyzing routine (like labels for Canvasen). Not sure how this works on windooze ... ... there is more than one way to do it ... Cheers, matevz --------------------------------------------------- Matevz Tadel, E-mail: Matevz.Tadel@ijs.si Department of Experimental High Energy Physics F9 Jozef Stefan Institute, Jamova 39, P.o.Box 3000 SI-1001 Ljubljana, Slovenia Tel.: +386-61-177-3674 Fax: +386-61-125-7074 ---------------------------------------------------
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:20 MET