Location of reconstruction libs, where the calibration is used: halld_recon/src/libraries/TAGGER DTAGMHit_factory_Calib.cc // ADC time hit->time_fadc = T * fadc_t_scale - fadc_time_offsets[row][column] + t_base; // TDC time double T = locTTabUtilities->Convert_DigiTimeToNs_F1TDC(digihit) - tdc_time_offsets[row][column] + t_tdc_base; // TDC time-walk correction T -= c1*pow(1/(P+c3),c2) - (t0 - c0); hit->t = T; TDC time-walk corrected time is used in the analyses List of required calibration constants: --------------------------------------- fadc_time_offsets[row][column] // CCDB table 'fadc_time_offsets' tdc_time_offsets[row][column] // CCDB table 'tdc_time_offsets' t_base, t_tdc_base // CCDB table 'base_time_offset' Time-walk corrections: c0, c1, c2, threshold, reference // CCDB table 'tdc_timewalk_corrections' ---------------------------------------- Some usefull commands to check CCDB (DO NOT WRITE TO THE CCDB) make sure that you set (should be set automatically when source env_file ) setenv JANA_CALIB_URL mysql://ccdb_user@hallddb.jlab.org/ccdb setenv CCDB_CONNECTION ${JANA_CALIB_URL} > ccdb ls /PHOTON_BEAM/microscope scaled_energy_range fadc_gains fadc_time_offsets tdc_time_offsets fiber_quality fadc_pedestals base_time_offset tdc_timewalk_corrections integral_cuts ccdb cat /PHOTON_BEAM/microscope/base_time_offset +---------------------------------------------------+ | TAGM_BASE_TIME_OFFSET | TAGM_TDC_BASE_TIME_OFFSET | | double | double | +---------------------------------------------------+ | -168.136 | -152.009 | +---------------------------------------------------+ Location of scripts for calibration: ------------------------------------- halld_recon/src/plugins/Calibration/TAGH_timewalk halld_recon/src/plugins/Calibration/TAGM_TW halld_recon/src/plugins/Calibration/PS_timing compton_mc/halld_recon/src/plugins/Calibration/PSC_TW Location of root histograms, which are used for calibration (an example): ------------------------------------------------------------------------- /cache/halld/RunPeriod-2019-11/calib/ver56/hists/Run072852 root -L hd_calib_verify_Run072852_003.root