FMS database (calibrations/LED)

(This information is also available in the drupal FMSsubsystem area: https://drupal.star.bnl.gov/STAR/subsys/fms/database/calibration)



The following datasets (with names) are in the database:
St_fmsGain ("Calibrations/fms/fmsGain")
St_fmsGainCorrection ("Calibrations/fms/fmsGainCorrection")
St_fmsLed ("Calibrations/fms/fmsLed")
St_fmsLedRef ("Calibrations/fms/fmsLedRef")
St_fmsPi0Mass ("Calibrations/fms/fmsPi0Mass")
St_fmsRec ("Calibrations/fms/fmsRec")


 


fmsGain and fmsGainCorrection are the original calibrations inherited from the FPD.
For the FMS:
Large cells, north -> detectorId=8
Large cells, south -> detectorId=9
Small cells, north -> detectorId=10
Small cells, south -> detectorId=11

The channels are counting from near-beam to outside and bottom up.
Large cells are arrays of 17x34, small cells are 12x24.
The corners and central holes are included in the channel count, i.e. these entries have gain=0.

$STAR/StDb/idl/fmsGain.idl

struct fmsGain
{
    octet detectorId;     /* DetectorId */
    unsigned short ch;     /* Ch 1-578 */
    float gain;     /* gain GeV/ch */
}; 

$STAR/StDb/idl/fmsGainCorrection.idl

struct fmsGainCorrection
{
    octet detectorId;     /* DetectorId */
    unsigned short ch;     /* Ch 1-578 */
    float corr;     /* gain correction factor */
}; 

 



The following datatables are not indexed. They are only used for the FMS.
The BLOB arrays follow the same order as the channels for the gains (starting with 0 instead of 1, obviously).

$STAR/StDb/idl/fmsLed.idl

struct fmsLed
{
    float adc_ln[578];     /* LED ADC value Large North */
    float err_ln[578];     /* LED uncertainty Large North */
    float adc_ls[578];     /* Large South */
    float err_ls[578];     /* */
    float adc_sn[288];     /* Small North */
    float err_sn[288];     /* */
    float adc_ss[288];     /* Small South */
    float err_ss[288];     /* */
};

$STAR/StDb/idl/fmsLedRef.idl

struct fmsLedRef
{
    float adc_ln[578];     /* LED ADC value Large North */
    float err_ln[578];     /* LED uncertainty Large North */
    float adc_ls[578];     /* Large South */
    float err_ls[578];     /* */
    float adc_sn[288];     /* Small North */
    float err_sn[288];     /* */
    float adc_ss[288];     /* Small South */
    float err_ss[288];     /* */
};

$STAR/StDb/idl/fmsPi0Mass.idl

struct fmsPi0Mass
{
    float mass_ln[578];     /* Reconstructed pi0 mass Large North */
    float err_ln[578];     /* Mass uncertainty Large North */
    float mass_ls[578];     /* Large South */
    float err_ls[578];     /* */
    float mass_sn[288];     /* Small North */
    float err_sn[288];     /* */
    float mass_ss[288];     /* Small South */
    float err_ss[288];     /* */
};




fmsRec contains parameters for the cluster and photon reconstruction, which have previously been hard coded or stored in local files. These parameters are not likely to change, but have been moved into the database for consistency and backwards compatibility.

$STAR/StDb/idl/fmsRec.idl

struct fmsRec
{
    unsigned short ROW_LOW_LIMIT;     /* */
    unsigned short COL_LOW_LIMIT;     /* */
    float CEN_ROW_LRG;     /* */
    unsigned short CEN_ROW_WIDTH_LRG;     /* */
    unsigned short CEN_UPPER_COL_LRG;     /* */
    float CEN_ROW_SML;     /* */
    unsigned short CEN_ROW_WIDTH_SML;     /* */
    unsigned short CEN_UPPER_COL_SML;     /* */
    float CORNER_ROW;     /* */
    float CORNER_LOW_COL;     /* */
    unsigned short CLUSTER_BASE;     /* */
    unsigned short CLUSTER_ID_FACTOR_DET;     /* */
    unsigned short TOTAL_TOWERS;     /* */
    float PEAK_TOWER_FACTOR;     /* */
    float TOWER_E_THRESHOLD;     /* */
    float BAD_2PH_CHI2;     /* */
    float BAD_MIN_E_LRG;     /* */
    float BAD_MAX_TOW_LRG;     /* */
    float BAD_MIN_E_SML;     /* */
    float BAD_MAX_TOW_SML;     /* */
    float VALID_FT;     /* */
    float VALID_2ND_FT;     /* */
    float VALID_E_OWN;     /* */
    float SS_C;     /* */
    float SS_A1;     /* */
    float SS_A2;     /* */
    float SS_A3;     /* */
    float SS_B1;     /* */
    float SS_B2;     /* */
    float SS_B3;     /* */
    unsigned short CAT_NTOWERS_PH1;     /* */
    float CAT_EP1_PH2;     /* */
    float CAT_EP0_PH2;     /* */
    float CAT_SIGMAMAX_MIN_PH2;     /* */
    float CAT_EP1_PH1;     /* */
    float CAT_EP0_PH1;     /* */
    float CAT_SIGMAMAX_MAX_PH1;     /* */
    float PH1_START_NPH;     /* */
    float PH1_DELTA_N;     /* */
    float PH1_DELTA_X;     /* */
    float PH1_DELTA_Y;     /* */
    float PH1_DELTA_E;     /* */
    unsigned short PH2_START_NPH;     /* */
    float PH2_START_FSIGMAMAX;     /* */
    float PH2_RAN_LOW;     /* */
    float PH2_RAN_HIGH;     /* */
    float PH2_STEP_0;     /* */
    float PH2_STEP_1;     /* */
    float PH2_STEP_2;     /* */
    float PH2_STEP_3;     /* */
    float PH2_STEP_4;     /* */
    float PH2_STEP_5;     /* */
    float PH2_STEP_6;     /* */
    float PH2_MAXTHETA_F;     /* */
    float PH2_LOWER_NPH;     /* */
    float PH2_LOWER_XF;     /* */
    float PH2_LOWER_YF;     /* */
    float PH2_LOWER_XMAX_F;     /* */
    float PH2_LOWER_XMAX_POW;     /* */
    float PH2_LOWER_XMAX_LIMIT;     /* */
    float PH2_LOWER_5_F;     /* */
    float PH2_LOWER_6_F;     /* */
    float PH2_UPPER_NPH;     /* */
    float PH2_UPPER_XF;     /* */
    float PH2_UPPER_YF;     /* */
    float PH2_UPPER_XMIN_F;     /* */
    float PH2_UPPER_XMIN_P0;     /* */
    float PH2_UPPER_XMIN_LIMIT;     /* */
    float PH2_UPPER_5_F;     /* */
    float PH2_UPPER_6_F;     /* */
    float PH2_3_LIMIT_LOWER;     /* */
    float PH2_3_LIMIT_UPPER;     /* */
    float GL_LOWER_1;     /* */
    float GL_UPPER_DELTA_MAXN;     /* */
    float GL_0_DLOWER;     /* */
    float GL_0_DUPPER;     /* */
    float GL_1_DLOWER;     /* */
    float GL_1_DUPPER;     /* */
    float GL_2_DLOWER;     /* */
    float GL_2_DUPPER;     /* */
};