1010 |
|
|
1011 |
TChain* FEVdetector::Load(TFile &mainfile){ |
TChain* FEVdetector::Load(TFile &mainfile){ |
1012 |
// |
// |
|
gObjectTable->Print(); |
|
|
// |
|
1013 |
file = &mainfile; |
file = &mainfile; |
1014 |
// |
// |
1015 |
// if ( otr ) otr->Reset(); |
if ( !L2 ) L2 = new PamLevel2(); |
|
// if ( runtree ) runtree->Reset(); |
|
|
if ( runtree ){ |
|
|
printf(" runtree residuo \n"); |
|
|
if ( runtree->GetFile() ){ |
|
|
printf("chiudi file \n"); |
|
|
// runtree->GetFile()->Close("R"); |
|
|
}; |
|
|
}; |
|
|
// |
|
|
if ( runtree ){ |
|
|
printf(" clear runtree \n"); |
|
|
runtree->Clear(); |
|
|
printf(" delete runtree \n"); |
|
|
delete runtree; |
|
|
}; |
|
|
// if ( runtree ) runtree->Print(); |
|
|
if ( otr ){ |
|
|
printf(" otr residuo \n"); |
|
|
// if ( otr->GetFile() ) otr->GetFile()->Close("R"); |
|
|
// otr->ResetBranchAddresses(); |
|
|
}; |
|
|
if ( otr ){ |
|
|
printf("proviamo ad ammazzarlo di brutto\n"); |
|
|
// otr->Clear(); |
|
|
printf("proviamo ad ammazzarlo di brutto\n"); |
|
|
otr->Delete(); |
|
|
printf("proviamo ad ammazzarlo di brutto\n"); |
|
|
//delete otr; |
|
|
printf("speriamo sia rimasto secco\n"); |
|
|
}; |
|
|
// if ( otr ){ |
|
|
// otr->DropBaskets(); |
|
|
// otr->Delete("all"); |
|
|
// }; |
|
|
// if ( runtree ){ |
|
|
// runtree->DropBaskets(); |
|
|
// runtree->Delete("all"); |
|
|
// }; |
|
|
if ( runtree ) printf("2 runtree residuo \n"); |
|
|
// if ( runtree ) runtree->Print(); |
|
|
if ( otr ) printf("2 otr residuo \n"); |
|
|
// if ( otr ) otr->Print(); |
|
|
// |
|
|
L2 = new PamLevel2(); |
|
1016 |
// |
// |
1017 |
if ( level.file == 2 ){ |
if ( level.file == 2 ){ |
1018 |
// |
// |