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 |
|
|
1732 |
*/ |
*/ |
1733 |
Long64_t GL_TIMESYNC::DBobt(UInt_t obt){ |
Long64_t GL_TIMESYNC::DBobt(UInt_t obt){ |
1734 |
// |
// |
1735 |
if ( obt < (obtfirst/2) && obtfirst > (numeric_limits<UInt_t>::max()/2) ) return((Long64_t)(obt+numeric_limits<UInt_t>::max())); |
if ( obt < (obtfirst/2) && obtfirst > (numeric_limits<UInt_t>::max()/2) ){ |
1736 |
|
return((Long64_t)obt+(Long64_t)numeric_limits<UInt_t>::max()); |
1737 |
|
}; |
1738 |
// |
// |
1739 |
if ( obt > (obtfirst*2) && obt > (numeric_limits<UInt_t>::max()/2) ){ |
if ( obt > (obtfirst*2) && obt > (numeric_limits<UInt_t>::max()/2) ){ |
1740 |
return((Long64_t)obt-(Long64_t)numeric_limits<UInt_t>::max()); |
return((Long64_t)obt-(Long64_t)numeric_limits<UInt_t>::max()); |