Difference between revisions of "General Calibration Procedures"

From GlueXWiki
Jump to: navigation, search
(Starting a New Run Period)
(Starting a New Run Period)
Line 6: Line 6:
  
 
* Online calibrations
 
* Online calibrations
** The online calibrations are run by a crontab running on gluon105 - keep them disabled until a base set of calibrations have been established.
+
** The online calibrations are run by a crontab running on gluon120 - keep them disabled until a base set of calibrations have been established.
 
** Work in CALIBRATION_TRAIN/online
 
** Work in CALIBRATION_TRAIN/online
 
** Modify the starting run in run_online_calibrations.sh
 
** Modify the starting run in run_online_calibrations.sh
 
** Update RCDB_SEARCH_* in  run_prompt_calibrations.py
 
** Update RCDB_SEARCH_* in  run_prompt_calibrations.py
 
** Update RUN_PERIOD
 
** Update RUN_PERIOD
 +
** Update halld_recon software
 +
*** cd $HALLD_RECON_HOME/src ; git pull origin master ; scons -j20 install
 
** Check which drive calibration data is being written to (currently gluonraid2)
 
** Check which drive calibration data is being written to (currently gluonraid2)
 
* Check to make sure the magnetic field is properly set?  This might not be a problem if it's being set online now...
 
* Check to make sure the magnetic field is properly set?  This might not be a problem if it's being set online now...

Revision as of 17:15, 16 August 2021

General Reference

Starting a New Run Period

Preparations

  • Online calibrations
    • The online calibrations are run by a crontab running on gluon120 - keep them disabled until a base set of calibrations have been established.
    • Work in CALIBRATION_TRAIN/online
    • Modify the starting run in run_online_calibrations.sh
    • Update RCDB_SEARCH_* in run_prompt_calibrations.py
    • Update RUN_PERIOD
    • Update halld_recon software
      • cd $HALLD_RECON_HOME/src ; git pull origin master ; scons -j20 install
    • Check which drive calibration data is being written to (currently gluonraid2)
  • Check to make sure the magnetic field is properly set? This might not be a problem if it's being set online now...
  • Offline calibrations
    • Right now, basically these are just skimming the data
    • ~20% of the data (file # < 30) are running skims which require tracking (pi0 skims, omegas, ...), the rest just get PS triggers and other specialties
    • Base directory for these files is: /work/halld/home/gxproj3/calib_jobs
    • Make new directory for a run period: "mkdir RunPeriod-2018-08"
    • Change into this directory and make some basic directories "mkdir log scripts sqlite_ccdb"
    • Copy in the "script" files from the previous run period (why not?)

Check-out

  • Several data types stored in the data stream rely on shared-memory and other ancilliary processes to be running. So it's good to check these. Make sure that BOR records are being written early on in the raw data, that board configurations are being written into each event, and that EPICS events are showing up in the data stream
    • Note that the first two events in a run are generally control events: Prestart and Go. Then usually the BOR event should show up
  • Make sure parameters are being reasonably propagated into the RCDB

Calibrations

  • Look at occupancy plots to find dead channels
  • Check firmware if there's new firmware.
    • So far, this has only really been tested for the fADC250's
    • hd_root -PPLUGINS=lowlevel_online -PLOWLEVEL:CHECKEMULATION=1 data.evio
      • This prints out cases where the emulated pulses don't match the measured pulses
    • hd_dump -PSKIP_TO_EVENT=XXXXXX -PEVIO:VERBOSE=10 -DDf250PulseData data.evio
      • If you see bad pulses, you can look at the pulse data by running a command like this
  • Start the timing calibrations
    • Start with the RF Calibration - for normal running, it's usually enough to just calibrate the fine timing offsets
    • Check TOF_TDC_shift calibration
    • Run HLDetectorTiming and use the HistMacro_Online*.C plugins to check the overall timing, perform a rough timing calibration
      • ROOT: SetPrimaryPeaks.C("hd_root.root",<run>,"default")
    • Run HLDetectorTiming to perform a finer alignment
      • hd_root -PEVENTS_TO_KEEP=1500000 -PTRKFIT:HYPOTHESES_POSITIVE=8 -PTRKFIT:HYPOTHESES_NEGATIVE=9 -PPID:OUT_OF_TIME_CUT=50 data.evio
      • ROOT: AdjustTiming.C("hd_root.root",<run>,"default")
      • Push calibrations to "calib" variation
        • From $CALIBRATION_TRAIN/scripts: [make sure "max_run=ccdb.INFINITE_RUN" is set]
        • python copy_tables_between_variations.py -T timing_tables -R 50612 -S default -D calib