[Halld-offline] how to prevent JANA from eating commandline args
Richard Jones
richard.t.jones at uconn.edu
Tue Oct 18 11:21:19 EDT 2016
David,
This command dapp->create_event_buffer_thread = false; was the perfect
antedote, thanks!
-Richard Jones
On Tue, Oct 18, 2016 at 9:44 AM, David Lawrence <davidl at jlab.org> wrote:
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/halld-offline/attachments/20161018/a7d6bfc8/attachment-0002.html>
More information about the Halld-offline
mailing list