/////////////////////////////////////////////////////////////////////////////////// /// /// \brief User control of the PCA processor /// /// \author Freija Descamps /// /// /// \details This file is for user control of the PCA processor /// This is used in generating the PCA calibration constants /// /// /// For application of these to data/MC events, see: /// PCACal.cc,hh. /// /// /////////////////////////////////////////////////////////////////////////////////// { type: "PCA_GENERATION", version: 1, run_range: [0, 0], pass: 0, comment: "", timestamp: "", pca_source: 0, // (0) 0= laserball, 1= LEDs (TELLIE) pca_type: 0, // (0) 0=timewalk and gainfit as done for SNO, 1=timewalk only, 2= gain fit only pca_flag: 0, // (0) do as was done for SNO pca_run: 20000, // run number laser_wl: 505.0, // wavelength for laserball runs select_angle: 11.0, // maximum angle between PMT direction and LEDPMT line for a TELLIE hit max_num_fiber: 115, // maximum number of fiber positions trig_type: 32768, // trigger type, external trigger (32768) extasyncDelay: 180.0, // external trigger delay timeMinVal: -100.0, // minimum eca time timeMaxVal: 600.0, // maximum eca time pca_verbosity: 2, // Set to 2 for more verbosity and more output than just the .ratdb files, // Set to 1 for more verbosity // Set to 0 for no debug output // Parameters for the LED bootstrapping method min_npoints_boot: 200, // Minimum of hits for a LED/PMT combination for it to be used in bootstrap. select_ttransit: 0.5, // Maximum diff in transittime between two LEDs and same PMT in bootstrap method tw_corr_max:0.20, // Maximum allowed absolute value for the correlation between transittime diff and LED timing diff tw_err_max:2.0, // Maximum allowed error on extracted LED timing // Parameters for the timewalk, this should really not be changed except for testing peakintpoints: 4, // The number of interpolation points in the dense peak region dropintpoints: 2, // The number of interpolation points in the peak drop-off region tailintpoints: 4, // The number of interpolation points in the tail region tailgap: [0.0,50.0,100.0,175.0,250.0], // Binning for high charge tail. minpointsperbin: 10, // Minimum required number of points in each interpolation bin max_dist_from_center: 100.0, // maximum distance (mm) from the center for the recorded laserball position // Parameters for the comparison plots between the current extracted values and the previous ones min_difference: -100, // min difference for graphing max_difference: +100, // max difference for graphing // We need to set some tolerances here for the quality of the PCA calibration, globally and for each PMT // Parameters for the TW channel flags rms_high: 3.5, // ns, if the overall RMS of a channel is above this, then flag it as 'rms too high' rms_very_high: 5.0, // ns, if the overall RMS of a channel is above this, then flag it as 'rms very high' max_tstep:1.5, // ns, the maximum up-step between the interpolation points max_flate:0.4, // fraction max_fout:0.1, // fraction tw_max_grad: 0., // Maximum allowed value for the gradient of the high-Q tail fit tw_min_grad:-0.10, // Minimum allowed value for the gradient of the high-Q tail fit tw_max_failed_int:2, // Maximum allowed failed interpolation points // Parameters for the TW general flags max_rms_high: 100, // max # channels with high rms max_rms_very_high:20, // max # channels with very high rms max_no_highq_fit:100, // max # channels with no high-q tail fitted n_max_tstep:100, // max # channels with tstep warning n_max_flate:100, // max # channels with flate warning n_max_fout:100, // max # channels with fout warning n_max_miss:100, // max # channels with too many missing interpolation points n_tw_max_grad:100, // max # channels with gradient too large n_tw_min_grad:100, // max # channels with gradient too small // Parameters for the GF channel flags peakQHS_diff_lim: 10, // max difference (previous-current) in QHS peak value peakQHL_diff_lim: 10, // max difference (previous-current) in QHL peak value threshQHS_diff_lim: 10, // max difference (previous-current) in QHS threshold value threshQHL_diff_lim: 10, // max difference (previous-current) in QHL threshold value hhpQHS_diff_lim: 10, // max difference (previous-current) in QHS hhp value hhpQHL_diff_lim: 10, // max difference (previous-current) in QHL hhp value threshQHS_limhigh: 60, // max value for the QHS threshold value threshQHL_limhigh: 60, // max value for the QHL threshold value threshQHS_limlow: 0, // min value for the QHS threshold value threshQHL_limlow: 0, // min value for the QHL threshold value // Parameters for the GF general flags max_hhpQHS_diff: 50, // max # channels that exceed hhpQHS_diff_lim max_peakQHS_diff: 50, // max # channels that exceed peakQHS_diff_lim max_threshQHS_diff: 50, // max # channels that exceed threshQHS_diff_lim max_hhpQHL_diff: 50, // max # channels that exceed hhpQHL_diff_lim max_peakQHL_diff: 50, // max # channels that exceed peakQHL_diff_lim max_threshQHL_diff: 50, // max # channels that exceed threshQHL_diff_lim max_threshQHS_high: 50, // max # channels that exceed threshQHS_limhigh max_threshQHL_high: 50, // max # channels that exceed threshQHL_limhigh max_threshQHS_low: 50, // max # channels that fail threshQHS_limlow max_threshQHL_low: 50, // max # channels that fail threshQHL_limlow max_NPW_low: 50, // max # channels that have used the NPW (peak finding method) // Parameters for the Summary flags max_offline : 500, // max # channels that are offline max_zero_occ: 400, // max # channels that are online but have zero occupancy max_low_occ: 100, // max # channels that are online but have low occupancy low_occ_lim: 1000, // minimum hits for a channel, if lower than this, the channel is flagged as low occ // The parameters for the PCA integer packer, copied from the SNO pca_wkv2_packer code qbits: 14, // the number of bits assigned to the q-value of the interpolation point qfact: 4, // the factor used for the q-value tbits: 14, // the number of bits assigned to the t-value of the interpolation point tfact: 10, // the factor used for the t-value ibits: 14, // the number of bits assigned to the intercept of the fit to high Q tail ifact: 10, // the factor used for the t-value rbits: 13, // the number of bits assigned to the gradient of the fit to high Q tail rfact: 10000, // the factor used for the t-value }