9 #ifndef STAR_StBemcTables
10 #define STAR_StBemcTables
23 #include "tables/St_emcPed_Table.h"
24 #include "tables/St_smdPed_Table.h"
25 #include "tables/St_emcStatus_Table.h"
26 #include "tables/St_smdStatus_Table.h"
27 #include "tables/St_emcCalib_Table.h"
28 #include "tables/St_smdCalib_Table.h"
29 #include "tables/St_emcGain_Table.h"
30 #include "tables/St_smdGain_Table.h"
31 #include "tables/St_emcTriggerStatus_Table.h"
32 #include "tables/St_emcTriggerPed_Table.h"
33 #include "tables/St_bemcTriggerPed4_Table.h"
34 #include "tables/St_emcTriggerLUT_Table.h"
64 emcTriggerStatus_st* mTrigS;
65 emcTriggerPed_st* mTrigP;
66 emcTriggerLUT_st* mTrigL;
67 bemcTriggerPed4_st* mTrigP4;
72 Int_t getOldId(
int det, Int_t newId)
const;
74 map<string, pair<string, string> > mValidRanges;
78 StBemcTables(Bool_t btowMapFix = kFALSE, Bool_t bprsMapFix = kFALSE);
83 const char* beginTime(
const char * tableName)
const;
84 const char* endTime(
const char * tableName)
const;
90 float calib(
int det,
int softId,
int power=1)
const;
91 float pedestal(
int det,
int softId,
int cap=0)
const;
92 float pedestalRMS(
int det,
int softId,
int cap=0)
const;
93 float gain(
int det,
int softId)
const;
97 int status(
int det,
int softId,
const char *option =
"")
const;
99 int triggerPatchStatus(
int triggerPatch)
const;
100 int triggerHighTowerStatus(
int triggerPatch)
const;
101 int triggerTowerStatus(
int crate,
int sequence)
const;
102 float triggerPedestal(
int crate,
int sequence)
const;
103 int triggerPedestalShift()
const;
104 int triggerBitConversion(
int crate,
int patchSequence)
const;
105 short triggerPed4(
int softId)
const;
106 int triggerFormulaTag(
int crate,
int patchSequence)
const;
107 int* triggerFormulaParameters(
int crate,
int patchSequence)
const;
110 int triggerPatchStatusByID(
int softId)
const;
111 int triggerHighTowerStatusByID(
int softId)
const;
112 int triggerTowerStatusByID(
int softId)
const;
113 float triggerPedestalByID(
int softId)
const;
114 int triggerBitConversionByID(
int softId)
const;
115 int triggerFormulaTagByID(
int softId)
const;
116 int* triggerFormulaParametersByID(
int softId)
const;
121 void getPedestal(Int_t det, Int_t softId, Int_t cap, Float_t& ped, Float_t& rms)
const;
122 void getStatus(Int_t det, Int_t softId, Int_t& status,
const char *option =
"")
const;
123 void getGain(Int_t det, Int_t softId, Float_t& gain)
const;
124 void getCalib(Int_t det, Int_t softId, Int_t power, Float_t& calib)
const;
133 void getTriggerPed4(Int_t softId, Short_t& PED4)
const;
void getTriggerFormulaParameters(Int_t crate, Int_t index, Int_t *parameters) const
Return LUT formula parameters.
StBemcTables(Bool_t btowMapFix=kFALSE, Bool_t bprsMapFix=kFALSE)
StBemcTables constructor.
int status(int det, int softId, const char *option="") const
void getTriggerBitConv(Int_t crate, Int_t patch, Int_t &bit) const
Return 6 bits conversion mode.
void getGain(Int_t det, Int_t softId, Float_t &gain) const
Return gain correction factor.
void getTriggerTowerStatus(Int_t crate, Int_t index, Int_t &status) const
Return trigger single tower status.
virtual ~StBemcTables()
StBemcTables destructor.
void getPedestal(Int_t det, Int_t softId, Int_t cap, Float_t &ped, Float_t &rms) const
Return pedestal mean and rms.
void getTriggerPatchStatus(Int_t patch, Int_t &status) const
Return trigger patch status.
void loadTables(StMaker *anyMaker)
load tables.
void getTriggerFormulaTag(Int_t crate, Int_t index, Int_t &formula) const
Return LUT formula.
void getCalib(Int_t det, Int_t softId, Int_t power, Float_t &calib) const
Return calibration constant.
void getTriggerHighTowerStatus(Int_t hightower, Int_t &status) const
Return trigger highTower status.
void getTriggerPedestal(Int_t crate, Int_t index, Float_t &pedestal) const
Return tower pedestal loaded in trigger.
void getTriggerPedestalShift(Int_t &pedestalShift) const
Return target pedestal shift.
void getStatus(Int_t det, Int_t softId, Int_t &status, const char *option="") const
Return status.
StEmcDecoder * getDecoder()
Return pointer to decoder.