414 updateData.extend<
int>(
"REGION_ID");
416 updateData.extend<
int>(
"HEAD_ID");
417 updateData[
"HEAD_ID"].data<
int>() =
m_head_id;
418 updateData.extend<
int>(
"LOWRUN");
419 updateData[
"LOWRUN"].data<
int>() = 0;
420 updateData.extend<
int>(
"UPRUN");
421 updateData[
"UPRUN"].data<
int>() = 1;
422 updateData.extend<std::string>(
"HISTOGRAM");
423 updateData[
"HISTOGRAM"].data<std::string>() =
"DUMMY";
426 if (full_info->implementation() ==
"RtCalibrationIntegration") {
428 }
else if (full_info->implementation() ==
"RtCalibrationCruved") {
430 }
else if (full_info->implementation() ==
"RtCalibrationAnalytic") {
432 }
else if (full_info->implementation() ==
"RtCalibrationAnalyticExt") {
434 }
else if (full_info->implementation() ==
"Validation") {
438 log << MSG::WARNING <<
"Unknown implementation '" << full_info->implementation() <<
"'!" <<
endmsg;
446 updateData.extend<std::string>(
"ALGO_FLAG");
447 updateData[
"ALGO_FLAG"].data<std::string>() =
m_prev_algs;
448 updateData.extend<
int>(
"N_SEGS");
449 updateData[
"N_SEGS"].data<
int>() = full_info->numSeg();
450 updateData.extend<
float>(
"AVER_ANGLE");
451 updateData[
"AVER_ANGLE"].data<
float>() = full_info->meanAng();
452 if (std::abs(full_info->meanAng()) > 9.9999) {
453 updateData[
"AVER_ANGLE"].data<
float>() = ((full_info->meanAng() < 0) ? -1 : 1) * 9.9999;
455 updateData.extend<
float>(
"DELTA_AVER_ANGLE");
456 updateData[
"DELTA_AVER_ANGLE"].data<
float>() = full_info->rmsAng();
457 if (std::abs(full_info->rmsAng()) > 9.9999) {
458 updateData[
"DELTA_AVER_ANGLE"].data<
float>() = ((full_info->rmsAng() < 0) ? -1 : 1) * 9.9999;
460 updateData.extend<
float>(
"AVER_SPREAD");
461 updateData[
"AVER_SPREAD"].data<
float>() = full_info->meanPos();
462 if (std::abs(full_info->meanPos()) > 9.9999) {
463 updateData[
"AVER_SPREAD"].data<
float>() = ((full_info->meanPos() < 0) ? -1 : 1) * 9.9999;
465 updateData.extend<
float>(
"DELTA_AVER_SPREAD");
466 updateData[
"DELTA_AVER_SPREAD"].data<
float>() = full_info->rmsPos();
467 if (std::abs(full_info->rmsPos()) > 9.9999) {
468 updateData[
"DELTA_AVER_SPREAD"].data<
float>() = ((full_info->rmsPos() < 0) ? -1 : 1) * 9.9999;
470 updateData.extend<
float>(
"CONVERGENCE");
471 updateData[
"CONVERGENCE"].data<
float>() = full_info->convEst();
472 if (std::abs(full_info->convEst()) > 999.999) {
473 updateData[
"CONVERGENCE"].data<
float>() = ((full_info->convEst() < 0) ? -1 : 1) * 999.999;
476 updateData.extend<
float>(
"B_AVER");
477 updateData[
"B_AVER"].data<
float>() = 0.;
478 updateData.extend<
float>(
"T_AVER");
479 updateData[
"T_AVER"].data<
float>() = 0.;
480 updateData.extend<
float>(
"HV");
481 updateData[
"HV"].data<
float>() = 0.;
482 updateData.extend<
float>(
"CURR");
483 updateData[
"CURR"].data<
float>() = 0.;
484 updateData.extend<
float>(
"GAS");
485 updateData[
"GAS"].data<
float>() = 0.;
486 updateData.extend<
int>(
"CALIBFLAG");
487 updateData[
"CALIBFLAG"].data<
int>() =
static_cast<int>(validflag > 3);
489 updateData.extend<
int>(
"VALIDFLAG");
490 updateData[
"VALIDFLAG"].data<
int>() = validflag;
491 updateData.extend<
short>(
"BINS");
492 updateData[
"BINS"].data<
short>() = n_bins;