17 void t0(TString filename,
char* t0,
char* gas,
float mbfield)
21 cout<<
"Starting t0.C:"<<endl;
22 cout<<
" filename = "<<filename<<
".root"<<endl;
23 cout<<
" t0 = "<<t0<<endl;
24 cout<<
" gas = "<<gas<<endl;
25 cout<<
" mbfield = "<<mbfield<<endl;
28 if (gClassTable->GetID(
"TTable") < 0) gSystem->Load(
"libStar");
29 gSystem->Load(
"St_base");
30 gSystem->Load(
"StChain");
31 gSystem->Load(
"St_Tables");
32 gSystem->Load(
"StUtilities");
33 gSystem->Load(
"StarMagField");
34 gSystem->Load(
"StMagF");
35 gSystem->Load(
"StDbLib");
36 gSystem->Load(
"StDbBroker");
37 gSystem->Load(
"St_db_Maker");
38 gSystem->Load(
"StarClassLibrary");
39 gSystem->Load(
"StDetectorDbMaker.so");
40 gSystem->Load(
"StDbUtilities");
41 gSystem->Load(
"StFtpcCalibMaker");
42 gSystem->Load(
"libftpc_Tables");
43 gSystem->Load(
"StFtpcClusterMaker");
44 gSystem->Load(
"StMagF");
47 const char *mysqlDB =
"MySQL:StarDb";
48 const char *paramsDB =
"$STAR/StarDb";
52 laser->GetRunInfo(filename);
53 cout<<
" date = "<<laser->Date()<<
" time = "<<laser->Time()<<endl;
56 dbMk->SetDateTime(laser->Date(),laser->Time());
61 cout<<
"dbDate = "<<dbMk->GetDateTime().GetDate()<<endl;
62 cout<<
"After Database init !!!"<<endl;
71 for (
int i=-10;i<11;i++)
77 sprintf(t,
"%.2f",step);
85 laser->
DoT0Calib(filename,
"0",
"0",mbfield);
virtual Int_t DbInit(float mbfield)
The FTPC calibration maker.
void DoT0Calib(TString filename, char *t0, char *gas, float mbfield)