1399 |
TSQLRow *Row; |
TSQLRow *Row; |
1400 |
stringstream myquery; |
stringstream myquery; |
1401 |
stringstream rname; |
stringstream rname; |
1402 |
|
// pcksList packetsNames; |
1403 |
|
// pcksList::iterator Iter; |
1404 |
|
// getPacketsNames(packetsNames); |
1405 |
rname.str(""); |
rname.str(""); |
1406 |
// ---------------- |
// ---------------- |
1407 |
myquery.str(""); |
myquery.str(""); |
1437 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
1438 |
pktfirst = ph->GetCounter(); |
pktfirst = ph->GetCounter(); |
1439 |
obtfirst = ph->GetOrbitalTime(); |
obtfirst = ph->GetOrbitalTime(); |
1440 |
|
// |
1441 |
|
// code = eh->GetCounter(); |
1442 |
|
// UInt_t en = 0; |
1443 |
|
// for(Iter = packetsNames.begin(); Iter != packetsNames.end(); Iter++){ |
1444 |
|
// en = code->Get(GetPacketType(*Iter)); |
1445 |
|
// if ( !strcmp("CalibCalPed",*Iter) || !strcmp("CalibTrk1",*Iter) || !strcmp("CalibTrk2",*Iter) || !strcmp("CalibS4",*Iter) ){ |
1446 |
|
// // |
1447 |
|
// TTree *TC = 0; |
1448 |
|
// TC = (TTree*)file->Get("CalibCalPed"); |
1449 |
|
// if ( !TC || TC->IsZombie() ) return; |
1450 |
|
// EventHeader *ehc = 0; |
1451 |
|
// PscuHeader *phc = 0; |
1452 |
|
// TC->SetBranchAddress("Header", &ehc); |
1453 |
|
// TC->GetEntry(0); |
1454 |
|
// phc = ehc->GetPscuHeader(); |
1455 |
|
// pktfirst = phc->GetCounter(); |
1456 |
|
// obtfirst = phc->GetOrbitalTime(); |
1457 |
|
// // |
1458 |
|
// }; |
1459 |
|
// }; |
1460 |
|
// |
1461 |
}; |
}; |
1462 |
// |
// |
1463 |
// look for Resurs offset |
// look for Resurs offset |
1489 |
for (Int_t i = 8; i<13; i++){ |
for (Int_t i = 8; i<13; i++){ |
1490 |
dwo.Append(name[i],1); |
dwo.Append(name[i],1); |
1491 |
}; |
}; |
1492 |
if ( dwo.IsDigit() ) dworbit = (UInt_t)dwo.Atoi(); |
if ( dwo.IsDigit() ){ |
1493 |
|
dworbit = (UInt_t)dwo.Atoi(); |
1494 |
|
} else { |
1495 |
|
dworbit = 1; |
1496 |
|
}; |
1497 |
}; |
}; |
1498 |
// |
// |
1499 |
|
// |
1500 |
if ( !Row ){ |
if ( !Row ){ |
1501 |
oss.str(""); |
oss.str(""); |
1502 |
oss << "SELECT YEAR(OFFSET_DATE),MONTH(OFFSET_DATE),DAY(OFFSET_DATE),HOUR(OFFSET_DATE),MINUTE(OFFSET_DATE),SECOND(OFFSET_DATE) FROM GL_RESURS_OFFSET WHERE FROM_ORBIT< " |
oss << "SELECT YEAR(OFFSET_DATE),MONTH(OFFSET_DATE),DAY(OFFSET_DATE),HOUR(OFFSET_DATE),MINUTE(OFFSET_DATE),SECOND(OFFSET_DATE) FROM GL_RESURS_OFFSET WHERE FROM_ORBIT< " |