1589 |
T->GetEntry(0); |
T->GetEntry(0); |
1590 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
1591 |
pktfirst = ph->GetCounter(); |
pktfirst = ph->GetCounter(); |
1592 |
obtfirst = ph->GetOrbitalTime(); |
// obtfirst = ph->GetOrbitalTime(); |
1593 |
// |
// |
1594 |
}; |
}; |
1595 |
// |
// |
1617 |
if ( Row ){ |
if ( Row ){ |
1618 |
// |
// |
1619 |
OBT0 = (UInt_t)atoll(Row->GetField(0)); |
OBT0 = (UInt_t)atoll(Row->GetField(0)); |
1620 |
|
obtfirst = OBT0; |
1621 |
TIMESYNC = (UInt_t)atoll(Row->GetField(1)); |
TIMESYNC = (UInt_t)atoll(Row->GetField(1)); |
1622 |
TYPE = (UInt_t)atoll(Row->GetField(2)); |
TYPE = (UInt_t)atoll(Row->GetField(2)); |
1623 |
// |
// |
1648 |
TTimeStamp tu = TTimeStamp((UInt_t)atoi(Row->GetField(0)),(UInt_t)atoi(Row->GetField(1)),(UInt_t)atoi(Row->GetField(2)),(UInt_t)atoi(Row->GetField(3)),(UInt_t)atoi(Row->GetField(4)),(UInt_t)atoi(Row->GetField(5)),0,true,0); |
TTimeStamp tu = TTimeStamp((UInt_t)atoi(Row->GetField(0)),(UInt_t)atoi(Row->GetField(1)),(UInt_t)atoi(Row->GetField(2)),(UInt_t)atoi(Row->GetField(3)),(UInt_t)atoi(Row->GetField(4)),(UInt_t)atoi(Row->GetField(5)),0,true,0); |
1649 |
T0 = (UInt_t)tu.GetSec(); |
T0 = (UInt_t)tu.GetSec(); |
1650 |
// |
// |
1651 |
toffset = TIMESYNC - (UInt_t)(this->DBobt(OBT0/1000)) + T0; |
toffset = (UInt_t)TIMESYNC - (UInt_t)(this->DBobt(OBT0)/1000) + T0; |
1652 |
// |
// |
1653 |
// printf(" T0 %u toffset is %u \n",T0,toffset); |
// printf(" T0 %u toffset is %u \n",T0,toffset); |
1654 |
// |
// |