1 void Db_LoadDriftMaps(
char* dirname,
char* timestamp,
char* flavor){
33 gSystem->Load(
"St_base");
34 gSystem->Load(
"StChain");
37 gSystem->Load(
"libStDb_Tables");
38 gSystem->Load(
"StUtilities");
39 gSystem->Load(
"StDbLib");
41 StDbModifier* modify=
new StDbModifier();
42 modify->SetDbName(
"Calibrations_ftpc");
43 modify->SetDateTime(timestamp);
44 modify->SetFlavor(flavor);
46 char* tableNames[4]= {
"ftpcdVDriftdP",
"ftpcDeflection",
"ftpcVDrift",
"ftpcdDeflectiondP" };
48 for(
int i=0; i<4; i++){
49 TString fname(dirname);
54 modify->SetTableName(tableNames[i]);
56 modify->SetInputFileName(fname.Data());
57 modify->WriteDataToDB();
59 cout<<
"Loaded "<<fname.Data()<<
" to database"<<endl;
static StDbManager * Instance()
strdup(..) is not ANSI