FST Offline Database

Responsible people:
1) Zhenyu Ye: RCF account yezhenyu
2) Xu Sun: RCF account sunxuhit

There are six idl files for Calibrations/fst: v2.0 (2021/12/12)
There are four C macro files for Geometry/fst: v1.0 (2021/12/11)

(I) fstChipConfig.idl under Calibrations/fst (1152 Bytes)
non-indexed table used to flag and filter out bad chips in FstRawHitMaker, stored once per week during data taking 

  long s[ApvId: 0-287]:  /* 0 dead;  1 good; 2-9 reserved good status; 10 mis-configured */

(II) fstControl.idl under Calibrations/fst (60 Bytes)
non-indexed table used to control FstRawHitMaker, stored less than 10 times per fiscal year data taking period 

  float kFstChanMaxRmsNoiseLevel;       // maximum rms noise level marked as regular channel
  float kFstChanMinRmsNoiseLevel;        // minimum rms noise level marked as regular channel
  float kFstApvMaxCmNoiseLevel;           // maximum common mode noise level marked as regular chip
  float kFstPedCutDefault;                      // pedestal cut for pedestal calculation: default value 3.0
  float kFstMinHitCutDefault;                 // hit S/N min cut: default value 2.5
  float kFstMedHitCutDefault;                // hit S/N med cut: default value 3.5
  float kFstMaxHitCutDefault;                // hit S/N max cut: default value 4.0
  float kFstCMNCutDefault;                    // common mode noise cut for CMN calculation: default value 3.0
  long kFstMinNumOfRawHits;               // min number of raw hits per event over a ladder area
 
long kFstMaxNumOfRawHits;              // max number of raw hits per event over a ladder area
 
long kFstAlldata;                                 // all data
 
long kFstADCdata;                              // non-ZS data
 
long kFstZSdata;                                 // ZS data
 
long kFstDefaultTimeBin;                    // default maximum ADC time bin index
 
long kFstCurrentTimeBinNum;            // time bin number for current run/fill

(III) fstGain.idl under Calibrations/fst (1.2 Mbits)
non-indexed table used to convert between ADC and ionized charge in FstRawHitMaker, stored a few times per fiscal year data taking period 

float gain[elecId: 0-36863];   //gain

(IV) fstMapping.idl 
under Calibrations/fst (1.2 Mbits)
non-indexed table used to convert from electronic channel ID to detector geometry ID in FstRawHitMaker, stored once per fiscal year data taking period

long mapping[elecId: 0-36863];  //geometry ID: 0 - 36863

(V) fstPedNoise.idl 
under Calibrations/fst (16 Mbits)
non-indexed tables used for flag bad channels and for pedestal subtraction in FstRawHitMaker, stored once per day during data taking

unsigned short cmNoise[ApvId*rStrip*timeBin: 288*4*9]           //Common Mode Noise
unsigned short pedestal[elecId*timeBin: 36864*9]                      // Pedestal Mean
unsigned short totNoise[elecId
*timeBin: 36864*9]                      // Pedestal total RMS
unsigned short ranNoise[elecId*timeBin: 36864*9]                     // Pedestal random RMS


(VI) fstSimPar.idl under Calibrations/fst (12 Bytes)
non-indexed table used in FstSimMaker, stored once per fiscal year data taking period 

long mode;     // effMode: 0-ideal; 1 (default) -momentum depenent; 2 nomimal 
float pCut;      // momentum cut for momentum depenent efficiency 
float effFst;     // FST efficiency 

(VII) fstOnTpc.C under Geometry/fst
non-indexed table used in FstHitMaker to transfer from full detector to TPC (STAR) coordinate system, stored once per fiscal year data taking period

St_Survey *tableSet = new St_Survey("fstOnTpc",1)

(VIII) hssOnFst.C
 under Geometry/fst
non-indexed table used in FstHitMaker to transfer from detector half to full detector coordinate system, stored once per fiscal year data taking period

St_Survey *tableSet = new St_Survey("hssOnFst",2);

(IX)  fstWedgeOnHss.C under Geometry/fst
non-indexed table used in FstHitMaker to transfer from wedge to detector half coordinate system, stored once per fiscal year data taking period

St_Survey *tableSet = new St_Survey("fstWedgeOnHss",36);

(X) fstSensorOnWedge.C
 under Geometry/fst
non-indexed table used in FstHitMaker to transfer from sensor to wedge coordinate system, stored once per fiscal year data taking period

St_Survey *tableSet = new St_Survey("fstSensorOnWedge",108);