| 1310 |
// |
// |
| 1311 |
// if the selected calibration is too old (more than 5 orbits old) try to take the closest not corrupted one |
// if the selected calibration is too old (more than 5 orbits old) try to take the closest not corrupted one |
| 1312 |
// |
// |
| 1313 |
if ( (time-myfromtime)>28500 ){ |
if ( (time-myfromtime)>28500 && myfromtime > 0 ){ |
| 1314 |
// |
// |
| 1315 |
myquery.str(""); |
myquery.str(""); |
| 1316 |
myquery << "select ID_ROOT_L0, FROM_TIME, TO_TIME, EV_ROOT from GL_CALO_CALIB where SECTION=" << section; |
myquery << "select ID_ROOT_L0, FROM_TIME, TO_TIME, EV_ROOT from GL_CALO_CALIB where SECTION=" << section; |
| 1705 |
*/ |
*/ |
| 1706 |
UInt_t GL_TIMESYNC::ResursTime(UInt_t OBT){ |
UInt_t GL_TIMESYNC::ResursTime(UInt_t OBT){ |
| 1707 |
// |
// |
| 1708 |
return(((UInt_t)((Int_t)(this->DBobt(OBT)-this->DBobt(OBT0))/1000)+TIMESYNC)); |
return(((UInt_t)((Int_t)(this->DBobt(OBT)-this->DBobt(OBT0)/1000))+TIMESYNC)); |
| 1709 |
// |
// |
| 1710 |
}; |
}; |
| 1711 |
|
|