| 105 |
tr->SetBranchAddress("CalibS4", &S4CalibEvent); |
tr->SetBranchAddress("CalibS4", &S4CalibEvent); |
| 106 |
if ( tr->GetEntries() < glS4calib->EV_ROOT ) return(NULL); |
if ( tr->GetEntries() < glS4calib->EV_ROOT ) return(NULL); |
| 107 |
// |
// |
| 108 |
tr->GetEntry(glS4calib->EV_ROOT); |
if ( tr->GetEntry(glS4calib->EV_ROOT) <= 0 ) throw -36; |
| 109 |
// |
// |
| 110 |
// Variables initialization |
// Variables initialization |
| 111 |
// |
// |
| 275 |
S4folder << tempname.str().c_str(); |
S4folder << tempname.str().c_str(); |
| 276 |
tempname << "/S4tree_run"; |
tempname << "/S4tree_run"; |
| 277 |
tempname << run << ".root"; |
tempname << run << ".root"; |
| 278 |
|
UInt_t totnorun = 0; |
| 279 |
// |
// |
| 280 |
// DB classes |
// DB classes |
| 281 |
// |
// |
| 332 |
// |
// |
| 333 |
// number of run to be processed |
// number of run to be processed |
| 334 |
// |
// |
| 335 |
numbofrun = runinfo->GetNoRun(); |
numbofrun = runinfo->GetNoRun(); |
| 336 |
UInt_t totnorun = runinfo->GetRunEntries(); |
totnorun = runinfo->GetRunEntries(); |
| 337 |
// |
// |
| 338 |
// Try to access the S4 tree in the file, if it exists we are reprocessing data if not we are processing a new run |
// Try to access the S4 tree in the file, if it exists we are reprocessing data if not we are processing a new run |
| 339 |
// |
// |
| 421 |
} |
} |
| 422 |
for (UInt_t j = 0; j < nobefrun; j++){ |
for (UInt_t j = 0; j < nobefrun; j++){ |
| 423 |
// |
// |
| 424 |
S4trclone->GetEntry(j); |
if ( S4trclone->GetEntry(j) <= 0 ) throw -36; |
| 425 |
// |
// |
| 426 |
// copy s4clone to mydec |
// copy s4clone to mydec |
| 427 |
// |
// |
| 588 |
// |
// |
| 589 |
if ( procev%1000 == 0 && procev > 0 && verbose ) printf(" %iK \n",procev/1000); |
if ( procev%1000 == 0 && procev > 0 && verbose ) printf(" %iK \n",procev/1000); |
| 590 |
// |
// |
| 591 |
l0head->GetEntry(re); |
if ( l0head->GetEntry(re) <= 0 ) throw -36; |
| 592 |
// |
// |
| 593 |
// absolute time of this event |
// absolute time of this event |
| 594 |
// |
// |
| 607 |
// start processing |
// start processing |
| 608 |
// |
// |
| 609 |
s4->Clear(); |
s4->Clear(); |
| 610 |
l0S4->GetEntry(re); |
if ( l0S4->GetEntry(re) <= 0 ) throw -36; |
| 611 |
if (l0s4e->unpackError == 0){ |
if (l0s4e->unpackError == 0){ |
| 612 |
s4->S4adc = l0s4e->S4_DATA; |
s4->S4adc = l0s4e->S4_DATA; |
| 613 |
// |
// |
| 652 |
// |
// |
| 653 |
// Get entry from old tree |
// Get entry from old tree |
| 654 |
// |
// |
| 655 |
S4trclone->GetEntry(j); |
if ( S4trclone->GetEntry(j) <= 0 ) throw -36; |
| 656 |
// |
// |
| 657 |
// copy s4clone to s4 |
// copy s4clone to s4 |
| 658 |
// |
// |