22 |
// |
// |
23 |
|
|
24 |
SoftInfo::SoftInfo() { |
SoftInfo::SoftInfo() { |
25 |
TRIG_ver = ""; |
Clear(); |
|
TOF_ver = ""; |
|
|
AC_ver = ""; |
|
|
TRK_ver = ""; |
|
|
ORB_ver = ""; |
|
|
CAL_ver = ""; |
|
|
ND_ver = ""; |
|
|
S4_ver = ""; |
|
|
DV_ver = ""; |
|
26 |
} |
} |
27 |
|
|
28 |
void SoftInfo::Clear(){ |
void SoftInfo::Clear(Option_t *t){ |
29 |
TRIG_ver = ""; |
TRIG_ver = ""; |
30 |
TOF_ver = ""; |
TOF_ver = ""; |
31 |
AC_ver = ""; |
AC_ver = ""; |
201 |
newrun->TRK_CALIB_USED = glrun->TRK_CALIB_USED ; |
newrun->TRK_CALIB_USED = glrun->TRK_CALIB_USED ; |
202 |
newrun->CAL_DSP_MASK = glrun->CAL_DSP_MASK ; |
newrun->CAL_DSP_MASK = glrun->CAL_DSP_MASK ; |
203 |
newrun->BOOT_NUMBER = glrun->BOOT_NUMBER ; |
newrun->BOOT_NUMBER = glrun->BOOT_NUMBER ; |
204 |
|
newrun->PHYSENDRUN_MASK_S3S2S12 = glrun->PHYSENDRUN_MASK_S3S2S12 ; |
205 |
|
newrun->PHYSENDRUN_MASK_S11CRC = glrun->PHYSENDRUN_MASK_S11CRC ; |
206 |
newrun->VALIDATION = glrun->VALIDATION ; |
newrun->VALIDATION = glrun->VALIDATION ; |
207 |
// |
// |
208 |
}; |
}; |
330 |
totnorun = 1; |
totnorun = 1; |
331 |
reprocessing = false; |
reprocessing = false; |
332 |
first_file_entry = 0; |
first_file_entry = 0; |
333 |
last_file_entry = (UInt_t)(EV_TO - EV_FROM); |
if ( EV_TO >= EV_FROM ) last_file_entry = (UInt_t)(EV_TO - EV_FROM); |
334 |
norun = 1; |
norun = 1; |
335 |
runlist->AddAt((Int_t)ID,0); |
runlist->AddAt((Int_t)ID,0); |
336 |
// |
// |
362 |
// |
// |
363 |
for ( UInt_t run = 0; run < totnorun; run++){ |
for ( UInt_t run = 0; run < totnorun; run++){ |
364 |
// |
// |
365 |
oldtree->GetEntry(run); |
if ( oldtree->GetEntry(run) <= 0 ) throw -36; |
366 |
// |
// |
367 |
CopyFromTo(oldrun,newrun,oldver,newver); |
CopyFromTo(oldrun,newrun,oldver,newver); |
368 |
// |
// |
504 |
}; |
}; |
505 |
}; |
}; |
506 |
// |
// |
507 |
last_file_entry = first_file_entry + (oldrun->EV_TO - oldrun->EV_FROM + 1); |
if ( oldrun->EV_TO >= oldrun->EV_FROM ) last_file_entry = first_file_entry + (oldrun->EV_TO - oldrun->EV_FROM + 1); |
508 |
// |
// |
509 |
} else { |
} else { |
510 |
if ( !found ) first_file_entry += (oldrun->EV_TO - oldrun->EV_FROM + 1); |
if ( !found ) first_file_entry += (oldrun->EV_TO - oldrun->EV_FROM + 1); |
570 |
// |
// |
571 |
for ( UInt_t run = 0; run < totnorun; run++){ |
for ( UInt_t run = 0; run < totnorun; run++){ |
572 |
// |
// |
573 |
newtree->GetEntry(run); |
if ( newtree->GetEntry(run) <= 0 ) throw -36; |
574 |
// |
// |
575 |
file_entries += (newrun->EV_TO - newrun->EV_FROM + 1); |
file_entries += (newrun->EV_TO - newrun->EV_FROM + 1); |
576 |
// |
// |
581 |
runlist->AddAt(newrun->ID,norun); |
runlist->AddAt(newrun->ID,norun); |
582 |
norun++; |
norun++; |
583 |
}; |
}; |
584 |
last_file_entry = first_file_entry + (newrun->EV_TO - newrun->EV_FROM + 1); |
if ( newrun->EV_TO >= newrun->EV_FROM ) last_file_entry = first_file_entry + (newrun->EV_TO - newrun->EV_FROM + 1); |
585 |
}; |
}; |
586 |
}; |
}; |
587 |
if ( debug ) printf("norun %i \n",(int)norun); |
if ( debug ) printf("norun %i \n",(int)norun); |
606 |
if ( isreadonly ) newtree->Delete(); |
if ( isreadonly ) newtree->Delete(); |
607 |
} |
} |
608 |
|
|
609 |
void ItoRunInfo::Clear(){ |
void ItoRunInfo::Clear(Option_t *t){ |
610 |
if ( newtree ) newtree->Delete(); |
if ( newtree ) newtree->Delete(); |
611 |
} |
} |
612 |
|
|
659 |
totnorun = newtree->GetEntries(); |
totnorun = newtree->GetEntries(); |
660 |
// |
// |
661 |
for ( UInt_t nrun = 0; nrun < totnorun; nrun++){ |
for ( UInt_t nrun = 0; nrun < totnorun; nrun++){ |
662 |
newtree->GetEntry(nrun); |
if ( newtree->GetEntry(nrun) <= 0 ) throw -36; |
663 |
// |
// |
664 |
if ( nwrun->ID == run || run == 0 ){ |
if ( nwrun->ID == run || run == 0 ){ |
665 |
CopyFromTo(nwrun,(GL_RUN*)this,nwver,version); |
CopyFromTo(nwrun,(GL_RUN*)this,nwver,version); |
666 |
found = true; |
found = true; |
667 |
last_file_entry = first_file_entry + (nwrun->EV_TO - nwrun->EV_FROM + 1); |
if ( nwrun->EV_TO >= nwrun->EV_FROM ) last_file_entry = first_file_entry + (nwrun->EV_TO - nwrun->EV_FROM + 1); |
668 |
}; |
}; |
669 |
if ( !found ) first_file_entry += (nwrun->EV_TO - nwrun->EV_FROM + 1); |
if ( !found ) first_file_entry += (nwrun->EV_TO - nwrun->EV_FROM + 1); |
670 |
}; |
}; |