8 #ifndef StBemcTablesWriter_HH
9 #define StBemcTablesWriter_HH
17 #include "StEmcDbHandler.h"
18 #include "StBemcTables.h"
26 void setMaxEntryTime(
char * maxEntryTime) { mDbHandler->setMaxEntryTime(maxEntryTime); }
28 void loadTables(
const char *sqlTime,
const char *flavor=
"ofl");
29 void loadTableFromFile(TFile *f);
31 void setTable(
const char *tableName,
void *
data);
33 void setCalib(
int det,
int softId,
int power,
float val);
34 void setPedestal(
int det,
int softId,
int cap,
float val);
35 void setPedestalRMS(
int det,
int softId,
int cap,
float val);
36 void setGain(
int det,
int softId,
float val);
37 void setStatus(
int det,
int softId,
unsigned short val);
39 void setCalibStatus(
int det,
int softId,
unsigned short val);
40 void setPedestalStatus(
int det,
int softId,
unsigned short val);
41 void setGainStatus(
int det,
int softId,
unsigned short val);
43 void writeToDb(
const char * tableName,
const char * timeStamp,
const char * flavor =
"ofl");
44 void writeToFile(
const char * fileName);
48 map<string, StDbTable*> mDbTables;
void loadTables(const char *sqlTime, const char *flavor="ofl")
load directly from DB, no Maker needed