| 101 |
if (INSERT_RAW) SetRawName(filerawname); |
if (INSERT_RAW) SetRawName(filerawname); |
| 102 |
// |
// |
| 103 |
INSERT_ROOT = !filerootname.IsNull(); |
INSERT_ROOT = !filerootname.IsNull(); |
| 104 |
|
if ( INSERT_ROOT ) this->SetRootName(filerootname); |
| 105 |
this->SetOrbitNo(dwinput); |
this->SetOrbitNo(dwinput); |
| 106 |
// |
// |
| 107 |
this->SetID_RAW(0); |
this->SetID_RAW(0); |
| 190 |
throw -85; |
throw -85; |
| 191 |
}; |
}; |
| 192 |
filerootname = chpath + chfile;// + ".root"; |
filerootname = chpath + chfile;// + ".root"; |
|
if ( debug ) printf(" chewbacca: filename is %s \n",filerootname.Data()); |
|
| 193 |
}; |
}; |
| 194 |
this->SetRootName(filerootname); |
this->SetRootName(filerootname); |
|
file = TFile::Open(this->GetRootName().Data()); |
|
|
} else { |
|
|
this->SetRootName(""); |
|
| 195 |
}; |
}; |
| 196 |
|
if ( debug ) printf(" Filename is %s \n",filerootname.Data()); |
| 197 |
|
file = TFile::Open(this->GetRootName().Data()); |
| 198 |
|
// } else { |
| 199 |
|
// this->SetRootName(""); |
| 200 |
|
// this->SetRootName(filerootname); |
| 201 |
|
// }; |
| 202 |
} |
} |
| 203 |
|
|
| 204 |
// |
// |
| 398 |
return; |
return; |
| 399 |
}; |
}; |
| 400 |
// |
// |
| 401 |
TString name = this->GetRootFile(); |
if ( !chewbacca ){ |
| 402 |
Int_t nlength = name.Length(); |
TString name = this->GetRootFile(); |
| 403 |
if ( nlength < 5 ) return; |
Int_t nlength = name.Length(); |
| 404 |
TString dwo = 0; |
if ( nlength < 5 ){ |
| 405 |
for (Int_t i = 0; i<5; i++){ |
if ( IsDebug() ) printf(" Agh problems determining the orbit number! name = %s \n",name.Data()); |
| 406 |
dwo.Append(name[i],1); |
return; |
| 407 |
}; |
}; |
| 408 |
if ( dwo.IsDigit() ){ |
TString dwo = 0; |
| 409 |
dworbit = (UInt_t)dwo.Atoi(); |
for (Int_t i = 0; i<5; i++){ |
|
} else { |
|
|
dwo=""; |
|
|
for (Int_t i = 8; i<13; i++){ |
|
| 410 |
dwo.Append(name[i],1); |
dwo.Append(name[i],1); |
| 411 |
}; |
}; |
| 412 |
if ( dwo.IsDigit() ) dworbit = (UInt_t)dwo.Atoi(); |
if ( dwo.IsDigit() ){ |
| 413 |
|
dworbit = (UInt_t)dwo.Atoi(); |
| 414 |
|
} else { |
| 415 |
|
dwo=""; |
| 416 |
|
for (Int_t i = 8; i<13; i++){ |
| 417 |
|
dwo.Append(name[i],1); |
| 418 |
|
}; |
| 419 |
|
if ( dwo.IsDigit() ) dworbit = (UInt_t)dwo.Atoi(); |
| 420 |
|
}; |
| 421 |
|
if ( IsDebug() ) printf(" Downlink orbit is %i (dwo = %s) \n",dworbit,dwo.Data()); |
| 422 |
}; |
}; |
|
if ( IsDebug() ) printf(" Downlink orbit is %i (dwo = %s) \n",dworbit,dwo.Data()); |
|
| 423 |
return; |
return; |
| 424 |
}; |
}; |
| 425 |
|
|
| 1585 |
result = conn->Query(oss.str().c_str()); |
result = conn->Query(oss.str().c_str()); |
| 1586 |
if ( !result ) throw -10; |
if ( !result ) throw -10; |
| 1587 |
row = result->Next(); |
row = result->Next(); |
| 1588 |
|
if ( !row ) throw -92; |
| 1589 |
idresof = (UInt_t)atoll(row->GetField(0)); |
idresof = (UInt_t)atoll(row->GetField(0)); |
| 1590 |
existsts = true; |
existsts = true; |
| 1591 |
goto eout; |
goto eout; |
| 2391 |
// if ( conptt+1 == (nrtev+nrtbef )){ |
// if ( conptt+1 == (nrtev+nrtbef )){ |
| 2392 |
if ( IsDebug() ) printf(" >>>>>>>>>>> %i %u %i %u \n",ptht,rhev,nrtev,conptt); |
if ( IsDebug() ) printf(" >>>>>>>>>>> %i %u %i %u \n",ptht,rhev,nrtev,conptt); |
| 2393 |
ptht++; |
ptht++; |
| 2394 |
if ( ptht < rhev ){ |
if ( ptht < rhev ){ |
| 2395 |
rh->GetEntry(ptht); |
rh->GetEntry(ptht); |
| 2396 |
//pth++; |
//pth++; |
| 2397 |
//if ( pth < rhev ){ |
//if ( pth < rhev ){ |
| 2419 |
if ( (UInt_t)evbeft < upperentry-1 && upperentry>0 ){ |
if ( (UInt_t)evbeft < upperentry-1 && upperentry>0 ){ |
| 2420 |
if ( IsDebug() ) printf(" Piece of run at the end of the file with NO RUNHEADER! evbeft %u upperentry-1 %u \n",(UInt_t)evbeft,upperentry-1); |
if ( IsDebug() ) printf(" Piece of run at the end of the file with NO RUNHEADER! evbeft %u upperentry-1 %u \n",(UInt_t)evbeft,upperentry-1); |
| 2421 |
// |
// |
| 2422 |
if ( (ptt-1) < 0 ) throw -15; // should never arrive here! |
// if ( (ptt-1) < 0 ) throw -15; // should never arrive here! |
| 2423 |
|
if ( (rtev-1) < 0 || ptt < 0 ) throw -15; // should never arrive here! |
| 2424 |
// rt->GetEntry(ptt-1); |
// rt->GetEntry(ptt-1); |
| 2425 |
rt->GetEntry(rtev-1); |
rt->GetEntry(rtev-1); |
| 2426 |
cod = eht->GetCounter(); |
cod = eht->GetCounter(); |