How to read PrimEx beam test 2000 data


primex_analyzer

The code which can be used to read the raw data files is available in two parts. The first is libprimex and the second is primex_analyzer. The routines for file reading and tagger reconstruction are built into the primex library. The primex_analyzer program uses that library read in events and create histograms from them.

Several other software packages are neccessary to build the primex_analyzer program:
All of these are available on the JLab CUE. If you wish to do analysis offsite, you'll need to get these. (The toughest part might be getting the CLAS libraries. If you're offsite platform is Linux or SunOS, you might be able to get away with just copying existing library files and some header files. You'll also have to set up your CLAS_LIB environment variable).

To get the code, login to the JLab CUE and do the following:
jlabs1:~> source /group/primex/scripts/primex.cshrc 
jlabs1:~> pcvs co programs/jul_00/libprimex programs/jul_00/primex_analyzer
cvs server: Updating programs/jul_00/libprimex
U programs/jul_00/libprimex/ADC2XY.F
U programs/jul_00/libprimex/Makefile
U programs/jul_00/libprimex/bos_file.c
U programs/jul_00/libprimex/calorimeter_geometry.c
U programs/jul_00/libprimex/cern_c.c
U programs/jul_00/libprimex/eid2E.c
U programs/jul_00/libprimex/et.c
U programs/jul_00/libprimex/find_xy.c
U programs/jul_00/libprimex/read_calib_parameters.c
U programs/jul_00/libprimex/tagger.c
cvs server: Updating programs/jul_00/libprimex/include
U programs/jul_00/libprimex/include/cern_c.h
U programs/jul_00/libprimex/include/primex.h
cvs server: Updating programs/jul_00/primex_analyzer
U programs/jul_00/primex_analyzer/Makefile
U programs/jul_00/primex_analyzer/hist_book.c
U programs/jul_00/primex_analyzer/hist_end.c
U programs/jul_00/primex_analyzer/hist_fill.c
U programs/jul_00/primex_analyzer/pana.c
U programs/jul_00/primex_analyzer/pana.h
U programs/jul_00/primex_analyzer/pana.tcl
U programs/jul_00/primex_analyzer/pana_tcl_init.c
U programs/jul_00/primex_analyzer/pana_term_init.c
jlabs1:~> 



Next, go to the programs/jul_00/libprimex directory and do a "make".

Go to the programs/jul_00/primex_analyzer directory and do a "make"
This should create an executable "primex_analyzer".

Getting data files

The raw data files are stored on the JLab tape silo in the /mss/clas/primex/data directory. The files in the /mss directory are only small "stub" files that tell the tape robot which tape has the file on it etc... To access a file, you must send a request to the tape robot via the jcache command.

e.g.
jlabs1:~> jcache /mss/clas/primex/data/primcal_024949.A00 
Processing.....
Request id = 240673
jlabs1:~> 

An e-mail will be sent to you once the file has been copied to the cache disk. You will then find the file(s) in /cache/clas/primex/data.



David Lawrence
davdl@jlab.org
Wed Aug 23 01:19:38 EDT 2000