1 void Db_ReadDriftMaps(
char* dirname,
char* timestamp,
char* flavor){
31 gSystem->Load(
"St_base");
32 gSystem->Load(
"StChain");
35 gSystem->Load(
"libStDb_Tables");
36 gSystem->Load(
"StUtilities");
37 gSystem->Load(
"StDbLib");
39 StDbModifier* modify=
new StDbModifier();
40 modify->SetDbName(
"Calibrations_ftpc");
41 modify->SetDateTime(timestamp);
42 modify->SetFlavor(flavor);
44 char* tableNames[4]= {
"ftpcdVDriftdP",
"ftpcDeflection",
"ftpcVDrift",
"ftpcdDeflectiondP" };
46 for(
int i=0; i<4; i++){
47 TString fname(dirname);
52 modify->SetTableName(tableNames[i]);
54 modify->SetOutputFileName(fname.Data());
56 modify->ReadDataFromDB();
58 cout<<
"Wrote out Calibrations_ftpc database table "<<fname.Data()<<endl;
static StDbManager * Instance()
strdup(..) is not ANSI