[Halld-offline] how to prevent JANA from eating commandline args
David Lawrence
davidl at jlab.org
Tue Oct 18 09:44:27 EDT 2016
Hi Richard,
I think what you want to do is insert this just before the call to dapp->Init()
dapp->create_event_buffer_thread = false;
This will prevent it from launching the special thread for reading in events
which you don’t need. It should prevent the error below.
For the more general case of having JANA ignore command line argumenst,
you have to cull them from the list passed into the DApplication constructor.
Regards,
-Dave
> On Oct 18, 2016, at 9:19 AM, Richard Jones <richard.t.jones at uconn.edu> wrote:
>
> Hello David,
>
> Is there a recommended way to prevent applications (like hdgeant4, hdgeant) that want to link into the JANA framework to prevent JANA from eating commandline arguments? My hdgeant4 has its own commandline args that it defines, but JANA is trying to parse them too, and printing out bold and ominous-sounding error messages at startup (see below). However it seems to move on after saying "Telling all threads to quit..." and my simulation still functions correctly.
>
> JANA ERROR>>
> JANA ERROR>> xxxxxxxxxxxx Unable to open event source "run.mac"! xxxxxxxxxxxx
> JANA ERROR>>
> JANA ERROR>> xxxxxxxxxxxx NO VALID EVENT SOURCES GIVEN !!! xxxxxxxxxxxx
> JANA ERROR>>
> JANA >>
> JANA >>Telling all threads to quit ...
>
> -Richard Jones
More information about the Halld-offline
mailing list