116 |
if( !dbc->IsConnected() )return NULL; |
if( !dbc->IsConnected() )return NULL; |
117 |
stringstream myquery; // EMILIANO |
stringstream myquery; // EMILIANO |
118 |
myquery.str(""); // EMILIANO |
myquery.str(""); // EMILIANO |
119 |
myquery << "SET time_zone='+0:00'"; // EMILIANO |
myquery << "SET time_zone='+0:00'; SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';"; // EMILIANO |
120 |
dbc->Query(myquery.str().c_str()); // EMILIANO |
dbc->Query(myquery.str().c_str()); // EMILIANO |
121 |
if(TrkParams::DebugMode()){ |
if(TrkParams::DebugMode()){ |
122 |
cout << " ...done"<<endl; |
cout << " ...done"<<endl; |
900 |
return true; |
return true; |
901 |
}; |
}; |
902 |
|
|
903 |
|
/** |
904 |
|
* Get ADC-to-MIP conversion parameters |
905 |
|
* @param nl ladder number (0-2) |
906 |
|
* @param nv view number (0-11) |
907 |
|
*/ |
908 |
|
float TrkParams::GetMIP(int nl, int nv){ |
909 |
|
TrkParams::Load(2); |
910 |
|
if( !TrkParams::IsLoaded(2) )return 0.; |
911 |
|
return adc2mip_.mip[nl][nv]; |
912 |
|
} |
913 |
|
|
914 |
/** |
/** |
915 |
* Get BY (kGauss) |
* Get BY (kGauss) |