Privacy and Security Notice

Archived Messages for CLAS_OFFLINE_1997@cebaf.gov: Incompatible BOS bank C structures

Incompatible BOS bank C structures

Dave Heddle (heddle@CEBAF.GOV)
Thu, 12 Jun 1997 12:49:47 -0400

Joe and I discussed this, but I thought the whole group should know.

The C structures for bos banks used by ced, ber, and other programs
such as the DC noise reduction algorithm are different from those in the
recently released c_bos_io. This means that these codes will not, at least for
now, use this library.

I only discovered this when dragging Joe into a student's office (Zoe Zhou)
who had just finished a PERL script for converting .ddl files to C headers.
He said that it was already done, although I didn't know about it. (That
is also when we discovered different formats for the banks).

The format used by ced and other C apps was documented, for example in CLAS NOTE
94-012 which describes the format of events. While I never created a library of
the routines which manipulate these structures, all that code has existed for
years. It would presumably have been easier to pull out those routines and
put them into an archive than to start from scratch.

We have not completely solved the problem of the left hand not knowing what the
right hand is doing.

Zoe is continuing in her scripting. She will next have a script that
automatically sniffs for ddl files, creates the headers, and makes a
master header that includes all the single bank headers. Again, this
will be for the ced-style banks. She will then do the same thing for
C++, except she will create class definitions. In this case she will
provide class methods for things like formatted printing so that a
bank can print itself. So, unlike the mistake I made last time, I tell
you this in advance and would be willing to listen to compelling arguments
as to what she should not pursue this.

Cheers,

David