261 |
printf(" ...connection recovered, I can continue! \n"); |
printf(" ...connection recovered, I can continue! \n"); |
262 |
// |
// |
263 |
myquery.str(""); |
myquery.str(""); |
264 |
myquery << "SET time_zone='+0:00'"; |
myquery << "SET time_zone='+0:00';"; |
265 |
|
delete dbc->Query(myquery.str().c_str()); |
266 |
|
fNquery++; |
267 |
|
myquery.str(""); |
268 |
|
myquery << "SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';"; |
269 |
delete dbc->Query(myquery.str().c_str()); |
delete dbc->Query(myquery.str().c_str()); |
270 |
fNquery++; |
fNquery++; |
271 |
myquery.str(""); |
myquery.str(""); |
1883 |
T->GetEntry(0); |
T->GetEntry(0); |
1884 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
1885 |
pktfirst = ph->GetCounter(); |
pktfirst = ph->GetCounter(); |
1886 |
|
if ( eh ){ |
1887 |
|
delete eh; |
1888 |
|
eh = 0; |
1889 |
|
} |
1890 |
// obtfirst = ph->GetOrbitalTime(); |
// obtfirst = ph->GetOrbitalTime(); |
1891 |
// |
// |
1892 |
}; |
}; |
1898 |
stringstream oss; |
stringstream oss; |
1899 |
// |
// |
1900 |
TString name=rname.str().c_str(); |
TString name=rname.str().c_str(); |
1901 |
UInt_t dworbit = 0; |
// UInt_t dworbit = 0; |
1902 |
// Int_t nlength = name.Length(); |
// Int_t nlength = name.Length(); |
1903 |
delete pResult; |
delete pResult; |
1904 |
if (Row){ |
if (Row){ |
1943 |
if ( Row ){ |
if ( Row ){ |
1944 |
// printf(" GREAT! the DB structure is the new one! \n"); |
// printf(" GREAT! the DB structure is the new one! \n"); |
1945 |
fndit = true; |
fndit = true; |
1946 |
dworbit = 1; |
// dworbit = 1; |
1947 |
}; |
}; |
1948 |
}; |
}; |
1949 |
}; |
}; |
2018 |
T->GetEntry(0); |
T->GetEntry(0); |
2019 |
ph = eh->GetPscuHeader(); |
ph = eh->GetPscuHeader(); |
2020 |
pktfirst = ph->GetCounter(); |
pktfirst = ph->GetCounter(); |
2021 |
|
if ( eh ){ |
2022 |
|
delete eh; |
2023 |
|
eh = 0; |
2024 |
|
} |
2025 |
// obtfirst = ph->GetOrbitalTime(); |
// obtfirst = ph->GetOrbitalTime(); |
2026 |
// |
// |
2027 |
}; |
}; |
2034 |
stringstream oss; |
stringstream oss; |
2035 |
// |
// |
2036 |
TString name=rname.str().c_str(); |
TString name=rname.str().c_str(); |
2037 |
UInt_t dworbit = 0; |
// UInt_t dworbit = 0; |
2038 |
// Int_t nlength = name.Length(); |
// Int_t nlength = name.Length(); |
2039 |
delete pResult; |
delete pResult; |
2040 |
if (Row){ |
if (Row){ |
2079 |
if (Row){ |
if (Row){ |
2080 |
// printf(" GREAT! the DB structure is the new one! \n"); |
// printf(" GREAT! the DB structure is the new one! \n"); |
2081 |
fndit = true; |
fndit = true; |
2082 |
dworbit = 1; |
// dworbit = 1; |
2083 |
}; |
}; |
2084 |
}; |
}; |
2085 |
}; |
}; |
2375 |
|
|
2376 |
// Set the right time_zone (otherwise horrible things will occur! :) |
// Set the right time_zone (otherwise horrible things will occur! :) |
2377 |
if ( !this->GetGLTABLES()->IsConnected(dbc) ) return -57; |
if ( !this->GetGLTABLES()->IsConnected(dbc) ) return -57; |
2378 |
delete dbc->Query("SET time_zone = '+0:00'"); |
delete dbc->Query("SET time_zone = '+0:00';"); |
2379 |
|
delete dbc->Query("SET sql_mode = 'NO_UNSIGNED_SUBTRACTION';"); |
2380 |
|
|
2381 |
// Do the query |
// Do the query |
2382 |
this->GetGLTABLES()->AddQ(); |
this->GetGLTABLES()->AddQ(); |