Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

4) GENERATE OFFLINE BASELINE AND THRESHOLD DATABASE FILES

  1. Copy most recent online baseline run file from ifarm to clonfarm1 
    1. Open new terminal, log in to ifarm, and navigate to '/work/hallb/hps/phys2021_svt_calibrations/'
    2. Find the "svt_<online_run_number>_cond.dat" file with run_number closest to, but less than, the current run being fit.
    3. Copy online baseline file to clonfarm1 → 'scp /work/hallb/hps/phys2021_svt_calibrations/svt_<online_run_number>_cond.dat> dat <user>@clonfarm1.jlab.org:/data/hps/slac_svt/server/offlinePedestals/output/'
  2. Run python analysis script
    1. Return to clonfarm1 terminal directory /data/hps/slac_svt/server/offlinePedestals/
    2. Run python analysis → 'python3 offlineBaselineFitAnalysis.py -i output/hps_<run_number>_offline_baseline_fits.root -o output/hps_<run_number>_offline_baseline_fits_analysis.root -b output/svt_<online_run_number>_cond.dat -csv output/hps_<run_number>_offline_baselines.dat -thresh output/hps_<run_number>_offline_thresholds.dat'
      1. new offline baselines are located → output/hps_<run_number>_offline_baselines.dat
      2. new offline thresholds are located → output/hps_<run_number>_offline_thresholds.dat
  3. Cleanup the output directory
    1. 'mkdir output/<run_number>' and move "output/rawsvthits_0<run_number>_hh.root", "output/hps_<run_number>_offline_baseline_fits_analysis.root" and all ALL of the "<file>.dat" files into that output/<run_number> directory for safe-keeping.
    2. Remove everything elseall of the loose files associated with this run inside of output/