37 void lasertest_single(TString filename,
int ftpc,
int lsec,
int straight,
int gfit,
char* t0,
char* gas,
float gastemp,
float mbfield)
44 cout<<
"Starting lasertest_single.C:"<<endl;
45 cout<<
" filename = "<<filename<<
".root"<<endl;
46 cout<<
" ftpc = "<<ftpc;
47 if ( ftpc == 1 ) cout<<
" FTPC West"<<endl;
48 if ( ftpc == 2 ) cout<<
" FTPC East"<<endl;
49 cout<<
" lsec = "<<lsec<<endl;
50 cout<<
" straight = "<<straight<<endl;
51 cout<<
" gfit = "<<gfit<<endl;
62 cout<<
" minz = "<<minz<<endl;
63 cout<<
" maxz = "<<maxz<<endl;
64 cout<<
" minrad = "<<minrad<<endl;
65 cout<<
" maxrad = "<<maxrad<<endl;
66 cout<<
" t0 = "<<t0<<endl;
67 cout<<
" gas = "<<gas<<endl;
68 cout<<
" gastemp = "<<gastemp<<endl;
69 cout<<
" mbfield = "<<mbfield<<endl;
72 if (gClassTable->GetID(
"TTable") < 0) gSystem->Load(
"libStar");
74 gSystem->Load(
"libMinuit.so");
75 gSystem->Load(
"libSpectrum.so");
77 gSystem->Load(
"St_base");
78 gSystem->Load(
"StChain");
80 gSystem->Load(
"libtpc_Tables");
82 gSystem->Load(
"StStarLogger");
83 gSystem->Load(
"StUtilities");
84 gSystem->Load(
"StarClassLibrary");
85 gSystem->Load(
"StEvent");
86 gSystem->Load(
"StarMagField");
87 gSystem->Load(
"StMagF");
89 gSystem->Load(
"libStDb_Tables.so");
90 gSystem->Load(
"StDetectorDbMaker.so");
91 gSystem->Load(
"StTpcDb");
92 gSystem->Load(
"StDbUtilities");
93 gSystem->Load(
"StDbLib.so");
94 gSystem->Load(
"StDbBroker.so");
95 gSystem->Load(
"libStDb_Tables.so");
96 gSystem->Load(
"St_db_Maker.so");
98 gSystem->Load(
"StFtpcCalibMaker");
99 gSystem->Load(
"libftpc_Tables");
100 gSystem->Load(
"StFtpcClusterMaker");
101 gSystem->Load(
"StFtpcTrackMaker");
104 const char *mysqlDB =
"MySQL:StarDb";
105 const char *paramsDB =
"$STAR/StarDb";
112 laser->GetRunInfo(filename);
113 cout<<
" run = "<<laser->RunNum()<<
" date = "<<laser->Date()<<
" time = "<<laser->Time()<<endl;
116 dbMk->SetDateTime(laser->Date(),laser->Time());
118 Bool_t laserRun = kTRUE;
120 dbMk->InitRun(laser->RunNum());
124 cout<<
"dbDate = "<<dbMk->GetDateTime().GetDate()<<endl;
125 cout<<
"After Database init !!!"<<endl;
133 laser->
DoLaserCalib(filename,ftpc,lsec,straight,gfit,minz,maxz,minrad,maxrad,t0,gas,gastemp,mbfield);
virtual Int_t DbInit(float mbfield)
The FTPC calibration maker.
void DoLaserCalib(TString filename, int ftpc, int lsec, int straight, int gfit, int minz, int maxz, int minrad, int maxrad, char *t0, char *gas, float gastemp, float mbfield)