/[PAMELA software]/DarthVader/AnticounterLevel2/src/AcCore.cpp
ViewVC logotype

Diff of /DarthVader/AnticounterLevel2/src/AcCore.cpp

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

revision 1.29 by pam-fi, Tue Nov 29 13:44:46 2011 UTC revision 1.30 by mocchiut, Tue May 15 14:30:56 2012 UTC
# Line 671  int AcCore(UInt_t run, TFile *file, GL_T Line 671  int AcCore(UInt_t run, TFile *file, GL_T
671    //    //
672    if ( code < 0 && verbose ) printf("\n ANTICOUNTER - ERROR: an error occurred, try to save anyway...\n");    if ( code < 0 && verbose ) printf("\n ANTICOUNTER - ERROR: an error occurred, try to save anyway...\n");
673    if ( verbose ) printf("\n Writing and closing rootple\n");    if ( verbose ) printf("\n Writing and closing rootple\n");
   if ( runinfo ) runinfo->Close();  
674    if ( ac ) ac->SetName("Anticounter");    if ( ac ) ac->SetName("Anticounter");
675    if ( file ){    if ( file ){
676      file->cd();      file->cd();
677      file->Write();      ac->Write("Anticounter",TObject::kOverwrite);
678    };    };
679    //    //
680    if ( myfold ) gSystem->Unlink(acfolder.str().c_str());    if ( myfold ) gSystem->Unlink(acfolder.str().c_str());
# Line 684  int AcCore(UInt_t run, TFile *file, GL_T Line 683  int AcCore(UInt_t run, TFile *file, GL_T
683    //    //
684    if ( verbose ) printf("\n Exiting...\n");    if ( verbose ) printf("\n Exiting...\n");
685    //    //
   if( ac ) ac->Delete();  
   if ( acl2 ) delete acl2;  
   if ( acl2clone ) delete acl2clone;  
686    if ( glroot ) delete glroot;    if ( glroot ) delete glroot;
687      if ( runinfo ) runinfo->Close();
688    if ( runinfo ) delete runinfo;    if ( runinfo ) delete runinfo;
689    //    //
690    if(code < 0) throw code;    if(code < 0) throw code;

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

  ViewVC Help
Powered by ViewVC 1.1.23