[BLAST_ANAWARE] limitation of init.C

From: Chris Crawford (chris2@lns.mit.edu)
Date: Fri Dec 03 2004 - 15:16:28 EST


the shell limits the number of command-line arguments to 256 (for example:)

root -l show_ep_asym.C closed 6342-6355 6723-6800 ...
 1 2 3 4
5 6 ...

if you try to process more than this, root will only hear about the
first ~252 ranges, and will not even complain about the ones it missed.

there are two workarounds:

a) use filtered runs
   $ root filter.C -c 1 -o flr-10.root 6342-6355 ...
   this has the added advantage of running a lot faster.

b) boycott the commandline. replace the line in your macro:

  gROOT->ProcessLine(".x flrpm.C");

      with something like

  gROOT->LoadMacro("init.C");
  int n=500;
  char* nn[500];
  nn[0]="-a";
  nn[1]="-b";
  nn[2]="1024-1294";
...
  nn[499]="12345-23423"
  init(n,nn,"flrpm");

thanks to nik for pointing this out.
--chris



This archive was generated by hypermail 2.1.2 : Mon Feb 24 2014 - 14:07:32 EST