From 6ce806c4a7773fda1ea1937250dabc39f2cf4637 Mon Sep 17 00:00:00 2001 From: Yuri Fisyak Date: Fri, 8 Mar 2024 09:36:39 -0500 Subject: [PATCH 1/2] remove TPC calibration files from StarDb (#662) [Remove TpcnPad && TpcnTbk tables from StarDb/Calibrations/tpc --- StarDb/Calibrations/tpc/TpcnPad.C | 13 ------------- StarDb/Calibrations/tpc/TpcnPad.y2019.C | 17 ----------------- StarDb/Calibrations/tpc/TpcnTbk.C | 13 ------------- 3 files changed, 43 deletions(-) delete mode 100644 StarDb/Calibrations/tpc/TpcnPad.C delete mode 100644 StarDb/Calibrations/tpc/TpcnPad.y2019.C delete mode 100644 StarDb/Calibrations/tpc/TpcnTbk.C diff --git a/StarDb/Calibrations/tpc/TpcnPad.C b/StarDb/Calibrations/tpc/TpcnPad.C deleted file mode 100644 index 2f9baa82704..00000000000 --- a/StarDb/Calibrations/tpc/TpcnPad.C +++ /dev/null @@ -1,13 +0,0 @@ -#include "tables/St_tpcCorrection_Table.h" - -TDataSet *CreateTable() { - if (!gROOT->GetClass("St_tpcCorrection")) return 0; - Int_t nrows = 2; - tpcCorrection_st row; - St_tpcCorrection *tableSet = new St_tpcCorrection("TpcnPad",nrows); - memset(&row,0,tableSet->GetRowSize()); - tableSet->AddAt(&row);// Outer - tableSet->AddAt(&row);// Inner - // ----------------- end of code --------------- - return (TDataSet *)tableSet; -} diff --git a/StarDb/Calibrations/tpc/TpcnPad.y2019.C b/StarDb/Calibrations/tpc/TpcnPad.y2019.C deleted file mode 100644 index 36786a650ff..00000000000 --- a/StarDb/Calibrations/tpc/TpcnPad.y2019.C +++ /dev/null @@ -1,17 +0,0 @@ -#include "tables/St_tpcCorrection_Table.h" - -TDataSet *CreateTable() { - if (!gROOT->GetClass("St_tpcCorrection")) return 0; - Int_t nrows = 1; - tpcCorrection_st row; - St_tpcCorrection *tableSet = new St_tpcCorrection("TpcnPad",nrows); - memset(&row,0,tableSet->GetRowSize()); - row.idx = 1; - row.nrows = nrows; - row.type = 200; - row.min = 1.5; - row.max = 16.5; - tableSet->AddAt(&row);// Outer & Inner - // ----------------- end of code --------------- - return (TDataSet *)tableSet; -} diff --git a/StarDb/Calibrations/tpc/TpcnTbk.C b/StarDb/Calibrations/tpc/TpcnTbk.C deleted file mode 100644 index 7e5d984757b..00000000000 --- a/StarDb/Calibrations/tpc/TpcnTbk.C +++ /dev/null @@ -1,13 +0,0 @@ -#include "tables/St_tpcCorrection_Table.h" - -TDataSet *CreateTable() { - if (!gROOT->GetClass("St_tpcCorrection")) return 0; - Int_t nrows = 2; - tpcCorrection_st row; - St_tpcCorrection *tableSet = new St_tpcCorrection("TpcnTbk",nrows); - memset(&row,0,tableSet->GetRowSize()); - tableSet->AddAt(&row);// Outer - tableSet->AddAt(&row);// Inner - // ----------------- end of code --------------- - return (TDataSet *)tableSet; -} From b6dc337559298c32dc60643ef49358d5c9653e28 Mon Sep 17 00:00:00 2001 From: Dmitry Arkhipkin Date: Mon, 11 Mar 2024 18:23:56 -0400 Subject: [PATCH 2/2] new FCS tables for Akio (#665) Subj. New table definitions as requested by FCS expert. --- StDb/idl/fcsEcalGainOnline.idl | 10 ++++++++++ StDb/idl/fcsHcalGainOnline.idl | 10 ++++++++++ StDb/idl/fcsPresThreshold.idl | 10 ++++++++++ 3 files changed, 30 insertions(+) create mode 100644 StDb/idl/fcsEcalGainOnline.idl create mode 100644 StDb/idl/fcsHcalGainOnline.idl create mode 100644 StDb/idl/fcsPresThreshold.idl diff --git a/StDb/idl/fcsEcalGainOnline.idl b/StDb/idl/fcsEcalGainOnline.idl new file mode 100644 index 00000000000..66881b83450 --- /dev/null +++ b/StDb/idl/fcsEcalGainOnline.idl @@ -0,0 +1,10 @@ +/* fcsEcalGainOnline.idl + * + * Table: fcsEcalGainOnline + * + * description: // FCS ECal gain online + */ + +struct fcsEcalGainOnline { + float gainOnline[1496]; /* gaincorr 2*748 */ +}; diff --git a/StDb/idl/fcsHcalGainOnline.idl b/StDb/idl/fcsHcalGainOnline.idl new file mode 100644 index 00000000000..ec43e0fbe01 --- /dev/null +++ b/StDb/idl/fcsHcalGainOnline.idl @@ -0,0 +1,10 @@ +/* fcsHcalGainOnline.idl + * + * Table: fcsHcalGainOnline + * + * description: // FCS HCal gain online + */ + +struct fcsHcalGainOnline { + float gainOnline[520]; /* gaincorr 2*260 */ +}; diff --git a/StDb/idl/fcsPresThreshold.idl b/StDb/idl/fcsPresThreshold.idl new file mode 100644 index 00000000000..acc495d977b --- /dev/null +++ b/StDb/idl/fcsPresThreshold.idl @@ -0,0 +1,10 @@ +/* fcsPresThreshold.idl + * + * Table: fcsPresThreshold + * + * description: // FCS Pres Threshold online + */ + +struct fcsPresThreshold { + float threshold[384]; /* valley position 2*192 */ +};