Privacy and Security Notice

Archived Messages for CLAS_TOF_1997@cebaf.gov: New Software for the TOF group.

New Software for the TOF group.

Maurik Holtrop (maurik@einstein.sr.unh.edu)
Mon, 04 Aug 1997 11:45:18 -0400 (EDT)

Dear TOF,

I have written a number of programs that can be useful in analyzing data
from the TOF system. All these programs are now under CVS control in the
directory: "utilities/bosanal" in the standard CVS tree. To get a copy
just use "cvs checkout utilities/bosanal".

All programs are tested on the main JLAB sun computers. If you want to run
them on other architectures and they don't work, or if you find other bugs
in this code, please don't hesitate to contact me.

These programs can also be used as templates for writing your own analysis
program. If you do so, please be sure to rename them to avoid name
confusion. Also, feel free to improve on these programs themselves if you
like.

I will be making a web page describing these programs. The url is:
http://www.physics.unh.edu/Maurik/tof_utils.shtml

Each program will provide help when invoked with the -help command-line
switch.

An overview of the programs:

dispevt:
A utility to display the contends of an event onto the screen.
The program will show the header event and the contends of each of
the SC related banks, including the RAW data comming directly from
the crate. The option -dmux (or -r <file> where file is the
translation table.) will "unscramble" the RAW bank so you can
check whether this is done correctly in the crate.

bosanal:
A utility to quickly create a set of PAW histograms and ntuple.
The code does not (yet) do any calculation on the data. It forms a
good template for writing programs that perform simple
calculations using only information from the SC banks.

pedestals:
A utility to write out new pedestal files and sparsification
tables. Note that it writes a sparsification table for ALL the
crates, not just the TOF crate. Also, unlike the previous method
for calculating sparsification tables, the tables are independent
of the translation tables. The code derives the results directly
from the raw banks. This has the great advantage that a
sparsification entry is made in the tables for all channels not
just the channels that are being used.
UPDATE: I am working on an update that will do better gaussian
fitting.

c2c_filter:
This utility sorts through a run (presumably cosmics, but can be
any run) and writes out a new BOS file with all those events that
had a hit in two adjacent TOF paddles. This new run can then be
analyzed for Counter to Counter timing.
This code forms a good template for all programs that want to do
simple data filtering.
UPDATE: Currently it does not work on the CLON cluster because
there is a bug in one of the libraries. I'm looking into it.
The code runs fine on the main JLAB (sun) cluster.

c2c_anal:
A code that is intended to do the counter to counter timing
adjustment. This is still very incomplete. I'm still working on
it.

I hope these utilities help. If you have any suggestions, let me know and
I'll try to implement them. Also if you would like to convert your KUMAC
to a small "C" program, let me know and I can help you with the
implementation.

Best Regards,
Maurik Holtrop

----------------------------------------------------------------------
University of New Hampshire tel: (603) 862-2019
Physics Department fax: (603) 862-2998
DeMeritt Hall email: maurik.holtrop@unh.edu
Durham, NH 03824 Home:(603) 659-8765
----------------------------------------------------------------------