1 #ifndef STAR_StEmcMappingDb
2 #define STAR_StEmcMappingDb
43 void SetFlavor(
const char *flavor,
const char *tablename=NULL);
44 void SetMaxEntryTime(
int date,
int time);
46 const bemcMap_st* bemc()
const;
47 const bemcMap_st& bemc(
int softId)
const;
49 const bprsMap_st* bprs()
const;
50 const bprsMap_st& bprs(
int softId)
const;
52 const bsmdeMap_st* bsmde()
const;
53 const bsmdeMap_st& bsmde(
int softId)
const;
55 const bsmdpMap_st* bsmdp()
const;
56 const bsmdpMap_st& bsmdp(
int softId)
const;
58 int softIdFromMES(StDetectorId det,
int m,
int e,
int s)
const;
61 int softIdFromCrate(StDetectorId det,
int crate,
int channel)
const;
62 int softIdFromDaqId(StDetectorId det,
int daqId)
const;
63 int softIdFromTDC(StDetectorId det,
int TDC,
int channel)
const;
66 int softIdFromRDO(StDetectorId det,
int rdo,
int channel)
const;
72 mutable St_bemcMap *mBemcTTable;
73 mutable St_bprsMap *mBprsTTable;
74 mutable St_bsmdeMap *mSmdeTTable;
75 mutable St_bsmdpMap *mSmdpTTable;
78 mutable Int_t mBemcValidity;
79 mutable Int_t mBprsValidity;
80 mutable Int_t mSmdeValidity;
81 mutable Int_t mSmdpValidity;
90 mutable bool mBemcDirty;
91 mutable bool mBprsDirty;
92 mutable bool mSmdeDirty;
93 mutable bool mSmdpDirty;
98 void maybe_reload(StDetectorId)
const;
101 bool maybe_reset_cache(StDetectorId det)
const;
102 void reset_bemc_cache()
const;
103 void reset_bprs_cache()
const;
104 void reset_smde_cache()
const;
105 void reset_smdp_cache()
const;
107 mutable short mCacheCrate[30][160];
108 mutable short mCacheDaqId[4800];
109 mutable short mCacheTDC[30][160];
110 mutable short mCacheBprsRdo[4][4800];
111 mutable short mCacheSmdRdo[8][4800];
116 inline const bemcMap_st&
117 StEmcMappingDb::bemc(
int softId)
const {
return bemc()[softId-1]; }
119 inline const bprsMap_st&
120 StEmcMappingDb::bprs(
int softId)
const {
return bprs()[softId-1]; }
122 inline const bsmdeMap_st&
123 StEmcMappingDb::bsmde(
int softId)
const {
return bsmde()[softId-1]; }
125 inline const bsmdpMap_st&
126 StEmcMappingDb::bsmdp(
int softId)
const {
return bsmdp()[softId-1]; }
void SetDateTime(int date, int time)
St_db_Maker-compatible interface.