[Clas12_software] bos2evio as a clara service.
Johann Goetz
jgoetz at ucla.edu
Fri Nov 4 12:07:45 EDT 2011
Hi guys,
I have converted the bos2evio program to a CLARA service. It currently uses
a mixture of the old and new CLARA libraries. I tagged it as version 1.1 of
the bos2evio project on the repository. It ships with all dependencies
except SCons and gcc. It compiles fine but may not work too well (read:
proven correct, but untested).
After some discussion with myself, Gagik and Vardan, the future plans for
this program/service are:
1) ship bank definitions in XML with EVIO buffer
a) requester can ask not to receive bank definitions
b) requester should be able to compare bank definitions XML string
with md5sum or similar to see if he needs to re-parse the XML
2) ship more than one event
a) requester should be able to specify number of events or maximum
size for buffer
3) configuration to tell it which bos files to read
This program is very much NOT thread-safe because of the bosio library
underneath. I am not sure what to do about that.
checkout and compiling should be straightforward. The last command uses the
newer SCons in the CUE in /apps and "-j16" tells scons to parallelize the
build to 16 threads:
svn co https://clas12svn.jlab.org/repos/clas12/bos2evio/tags/bos2evio_1.1bos2evio
cd bos2evio
/apps/scons/bin/scons -j16
build/bin/bos2evio-service -h
Generic options:
-h [ --help ] produce help message.
-q [ --quiet ] quiet mode.
-v [ --verbose ] verbose mode.
-b [ --bankdefs ] arg (=/u/home/clasg12/test/bos2evio/external/bankdefs)
directory containing bank
definition
XML files.
CLARA Options:
--clara-host arg (=localhost) The name of the CLARA host.
--clara-name arg (=ClaraPlatform) The name of the CLARA platform.
CLARA service name: BOS to EVIO Service
author: Johann Goetz
version: 0.1
This service reads in BOS files and waits for input of type
string with value of "next" and returns a single event
converted into the EVIO format. The EVIO buffer is prepended
with a 32bit unsigned int of value 0x12345678 which can be
used to determine if swapping is neccessary.
--
Johann T. Goetz, PhD. <http://sites.google.com/site/theodoregoetz/>
jgoetz at ucla.edu
Nefkens Group, UCLA Dept. of Physics & Astronomy
Hall-B, Jefferson Lab, Newport News, VA
Office: 757-269-5465 (CEBAF Center F-335)
Mobile: 757-768-9999
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/clas12_software/attachments/20111104/837cc543/attachment-0002.html>
More information about the Clas12_software
mailing list