41 void lasertest(TString filename,
int ftpc,
int lsec,
int straight,
int gfit,
char* t0,
char* gas,
float gastemp,
float mbfield)
47 cout<<
"Starting lasertest.C:"<<endl;
48 cout<<
" filename = "<<filename<<
".root"<<endl;
49 cout<<
" ftpc = "<<ftpc;
50 if ( ftpc == 1 ) cout<<
" FTPC West"<<endl;
51 if ( ftpc == 2 ) cout<<
" FTPC East"<<endl;
52 cout<<
" lsec = "<<lsec<<endl;
53 cout<<
" straight = "<<straight<<endl;
54 cout<<
" gfit = "<<gfit<<endl;
65 cout<<
" minz = "<<minz<<endl;
66 cout<<
" maxz = "<<maxz<<endl;
67 cout<<
" minrad = "<<minrad<<endl;
68 cout<<
" maxrad = "<<maxrad<<endl;
69 cout<<
" t0 = "<<t0<<endl;
70 cout<<
" gas = "<<gas<<endl;
71 cout<<
" gastemp = "<<gastemp<<endl;
72 cout<<
" mbfield = "<<mbfield<<endl;
75 if (gClassTable->GetID(
"TTable") < 0) gSystem->Load(
"libStar");
77 gSystem->Load(
"libMinuit.so");
78 gSystem->Load(
"libSpectrum.so");
80 gSystem->Load(
"St_base");
81 gSystem->Load(
"StChain");
83 gSystem->Load(
"libtpc_Tables");
85 gSystem->Load(
"StUtilities");
86 gSystem->Load(
"StarClassLibrary");
87 gSystem->Load(
"StEvent");
88 gSystem->Load(
"StarMagField");
89 gSystem->Load(
"StMagF");
91 gSystem->Load(
"libStDb_Tables.so");
92 gSystem->Load(
"StDetectorDbMaker.so");
93 gSystem->Load(
"StTpcDb");
94 gSystem->Load(
"StDbUtilities");
95 gSystem->Load(
"StDbLib.so");
96 gSystem->Load(
"StDbBroker.so");
97 gSystem->Load(
"libStDb_Tables.so");
98 gSystem->Load(
"St_db_Maker.so");
100 gSystem->Load(
"StFtpcCalibMaker");
101 gSystem->Load(
"libftpc_Tables");
102 gSystem->Load(
"StFtpcClusterMaker");
103 gSystem->Load(
"StFtpcTrackMaker");
106 const char *mysqlDB =
"MySQL:StarDb";
107 const char *paramsDB =
"$STAR/StarDb";
113 laser->GetRunInfo(filename);
114 cout<<
" date = "<<laser->Date()<<
" time = "<<laser->Time()<<endl;
117 dbMk->SetDateTime(laser->Date(),laser->Time());
122 cout<<
"dbDate = "<<dbMk->GetDateTime().GetDate()<<endl;
123 cout<<
"After Database init !!!"<<endl;
132 for (
int i=-5;i<7;i++)
137 for (
int k=-5;k<8;k++)
142 sprintf(t,
"%.2f",step);
143 sprintf(g,
"%.2f",step2);
145 cout<<
"laser->DoLaserCalib: deltat0 = "<<t<<
" und deltaGas = "<<g<<endl;
147 cout<<
"Kommt zum Schluss !!!"<<endl;
149 laser->
DoLaserCalib(filename,ftpc,lsec,straight,gfit,minz,maxz,minrad,maxrad,t,g,gastemp,mbfield);
153 laser->
DoLaserCalib(filename,ftpc,lsec,straight,gfit,minz,maxz,minrad,maxrad,
"0",
"0",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)