/[PAMELA software]/eventviewer/flight/src/FEVdetector.cpp
ViewVC logotype

Diff of /eventviewer/flight/src/FEVdetector.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by mocchiut, Tue Mar 20 12:49:55 2007 UTC revision 1.17 by mocchiut, Tue Mar 20 15:22:00 2007 UTC
# Line 1010  int FEVdetector::SelectEvent(){ Line 1010  int FEVdetector::SelectEvent(){
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      //      //

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.23