CPP/NPP (2022-05) BCAL pi0 calibration

From GlueXWiki
Jump to: navigation, search

List of action

  • Create a new variation: ccdb mkvar bcal_cpp -p default
  • Copy BCAL gain ratios, run dependence, 202205
  • Dump for the 1st run of the 1st period BCAL/ADC_gains, ccdb dump BCAL/ADC_gain -v bcal_cpp -r 100491 > ADC_gains_bcal_cpp_100491.txt, remove # in ADC_gains_bcal_cpp_100491.txt
  • Apply the ratio, python apply_gainratios.py --gainratios gainratio_CCDB_202205_mon_ver14.txt --currentgains ADC_gains_bcal_cpp_100491.txt --output ADC_gains_bcal_cpp_100491_new.txt
  • Add the corrected table to period 1, ccdb add BCAL/ADC_gains -v bcal_cpp -r 100491-100581 ADC_gains_bcal_cpp_100491_new.txt
  • Launch first iteration, ./do_iterations.csh 1 2 BCAL_pi0 2022-05 100491 100581 1 bcal_cpp to check if the entire chain is working
  • First iteration is successful but the results are weird, 3rd layer sees nothing?
  • Continue with second iteration, ./do_iterations.csh 2 6 BCAL_pi0 2022-05 100491 100581 1 bcal_cpp
  • Between iteration 3 and 4, correct a mistake in the macro, bcal_pi0cal_fit.c, which calculates the new gain
  • Continue with iteration 6 to 12, source do_iterations.csh 6 12 BCAL_pi0 2022-05 100491 100581 1 bcal_cpp
  • After iteration 11, there is no changed between the old and new gains
  • Last iteration is launched to confirm the point above, ./do_iterations.csh 12 13 BCAL_pi0 2022-05 100491 100581 1 bcal_cpp
  • Add period 1 gain to 2 and 3, ccdb add BCAL/ADC_gains -v bcal_cpp -r 100653-100825 /work/halld/home/gxproj9/bcal-cal/2022-05/period_1/merged-methodBCAL_pi0/g12/new-gains.txt
  • Continue with period 3, source do_iterations.csh 1 6 BCAL_pi0 2022-05 100660 100825 3 bcal_cpp
  • Change code (of gainmatrix_ig) so that only events with trigger bit 1 or 3 are analyzed
  • With the code changes, the calibration is proceeding without calibrating layers 3 and 4 (at the moment)

List of changes

Monitoring results

What is currently in the default variation

all tables have being updated

Periods

Energy correction