README bcal_root Aug. 28, 2006 David Lawrence This is an example program that shows how to access the BCAL06 beam test data and use it to create a ROOT file with histograms. It uses ROOT's built-in mutex for serializing access to the ROOT memory so this should be thread safe. To run it with multiple processing threads, run the program with the --nthreads=XXX option where XXX is the number of threads. To compile this program you need a compiled JANA package whose location given in the JLAB_HOME environment variable. The JLAB_MY environment variable should also be set to a directory where the compiled binaries can be installed. Before compiling this program, you should first compile and install the plugins for bcal06 (in src/plugins) via: "make install". The install step will copy header files into ${JLAB_MY}/include where they can be found when compiling this program. For more details on setting up JANA and building the libraries, see: http://www.jlab.org/Hall-D/software/wiki/index.php/HOWTO_documentation#HOWTO_Analyze_Data_Offline Once the above packages are installed, you can build bcal_root with just "make install". The binary will be installed in ${JLAB_MY}/bin/${OSNAME} where the OSNAME environment variable is set to the uname which should be something like "Linux". Questions, and comments should be directed to David Lawrence 757-269-5567 davidl@jlab.org.