11 void uploadToDB(
const char* filelist=
"bemcTriggerPed.lis", TString tableType =
"bemcTriggerPed", TString path =
"/ldaphome/onlmon/bemctrgdb2011/tables.emconline_trg/StarDb/Calibrations/emc/trigger/") {
13 gROOT->Macro(
"loadMuDst.C");
14 gSystem->Load(
"StDbBroker");
15 gSystem->Load(
"St_db_Maker");
16 gSystem->Load(
"StDaqLib");
18 ifstream list(filelist);
24 if(!list.good())
break;
26 TFile *dbfile =
new TFile(file,
"READ");
31 time.ReplaceAll(path,
"");
32 time.ReplaceAll(tableType+
".",
"");
33 time.ReplaceAll(
".root",
"");
34 time.ReplaceAll(
".",
" ");
44 w.loadTableFromFile(dbfile);
45 w.writeToDb(tableType.Data(), time.Data());
void loadTables(const char *sqlTime, const char *flavor="ofl")
load directly from DB, no Maker needed