E01-020 Stable Current Periods


The stable_current.tar.gz file includes all the files needed to extract the stable current periods for any run in addition to actual examples from E01-020. There are 3 main codes:

  1. write_all_scalers
  2. scalers_to_hbook_tab
  3. stable_current

The first 2 codes are modified versions of Paul Ulmer's scalers tool. Ulmer's codes were modified to produce a table of selected scalers in addition to the totals of the prescaled event types 1, 3 and 5. The new stable_current code is then used to extract the stable current periods along with the corresponding times, events, charge, current, trigger totals, etc, by using this table.
These codes must be executed in the shown order.
You can also use the stable_all script to run all these programs for a list of runs (run_list):

./stable_all run_list

The l2745.out and l2745.ps files show the final results for run # 2745.

To use these codes for other experiments, you might need to modify the BCM calibration offsets and constants in the stable_current.cpp code. You will also need to check the lscalermap and rscalermap files to make sure that you are using the correct scaler banks and channels.

      Name                    Last modified       Size  

[TXT] l2745.out 06-Aug-2005 00:44 1k [   ] l2745.ps 06-Aug-2005 00:44 104k [TXT] stable_current.cpp 19-Nov-2005 02:30 5k [TXT] stable_current.cpp.html 06-Mar-2006 06:36 14k [   ] stable_current.tar.gz 19-Nov-2005 02:28 3.1M