19 void gasTemp(TString filename,
int ftpc,
int lsec,
int straight,
int gfit,
char* t0,
char* gas,
float gastemp,
float mbfield)
25 cout<<
"Starting lasertest.C:"<<endl;
26 cout<<
" filename = "<<filename<<
".root"<<endl;
27 cout<<
" ftpc = "<<ftpc;
28 if ( ftpc == 1 ) cout<<
" FTPC West"<<endl;
29 if ( ftpc == 2 ) cout<<
" FTPC East"<<endl;
30 cout<<
" lsec = "<<lsec<<endl;
31 cout<<
" straight = "<<straight<<endl;
32 cout<<
" gfit = "<<gfit<<endl;
43 cout<<
" minz = "<<minz<<endl;
44 cout<<
" maxz = "<<maxz<<endl;
45 cout<<
" minrad = "<<minrad<<endl;
46 cout<<
" maxrad = "<<maxrad<<endl;
47 cout<<
" t0 = "<<t0<<endl;
48 cout<<
" gas = "<<gas<<endl;
49 cout<<
" gastemp = "<<gastemp<<endl;
50 cout<<
" mbfield = "<<mbfield<<endl;
53 if (gClassTable->GetID(
"TTable") < 0) gSystem->Load(
"libStar");
55 gSystem->Load(
"libMinuit.so");
56 gSystem->Load(
"libSpectrum.so");
58 gSystem->Load(
"St_base");
59 gSystem->Load(
"StChain");
61 gSystem->Load(
"libtpc_Tables");
63 gSystem->Load(
"StUtilities");
64 gSystem->Load(
"StarClassLibrary");
65 gSystem->Load(
"StEvent");
66 gSystem->Load(
"StarMagField");
67 gSystem->Load(
"StMagF");
69 gSystem->Load(
"libStDb_Tables.so");
70 gSystem->Load(
"StDetectorDbMaker.so");
71 gSystem->Load(
"StTpcDb");
72 gSystem->Load(
"StDbUtilities");
73 gSystem->Load(
"StDbLib.so");
74 gSystem->Load(
"StDbBroker.so");
75 gSystem->Load(
"libStDb_Tables.so");
76 gSystem->Load(
"St_db_Maker.so");
78 gSystem->Load(
"StFtpcCalibMaker");
79 gSystem->Load(
"libftpc_Tables");
80 gSystem->Load(
"StFtpcClusterMaker");
81 gSystem->Load(
"StFtpcTrackMaker");
84 const char *mysqlDB =
"MySQL:StarDb";
85 const char *paramsDB =
"$STAR/StarDb";
91 laser->GetRunInfo(filename);
92 cout<<
" date = "<<laser->Date()<<
" time = "<<laser->Time()<<endl;
95 dbMk->SetDateTime(laser->Date(),laser->Time());
100 cout<<
"dbDate = "<<dbMk->GetDateTime().GetDate()<<endl;
101 cout<<
"After Database init !!!"<<endl;
112 for (deltaT = gastemp-2; deltaT<gastemp+4.5; deltaT+=0.5)
115 for (
int k=-5;k<8;k++)
122 sprintf(g,
"%.2f",step2);
124 cout<<
"laser->DoLaserCalib: deltaT = "<<deltaT<<
" und deltaGas = "<<g<<endl;
125 if (k==0 && deltaT==0)
126 cout<<
"Comes at the end !!!"<<endl;
128 laser->
DoLaserCalib(filename,ftpc,lsec,straight,gfit,minz,maxz,minrad,maxrad,t0,g,deltaT,mbfield);
132 laser->
DoLaserCalib(filename,ftpc,lsec,straight,gfit,minz,maxz,minrad,maxrad,
"0",
"0",0,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)