/[PAMELA software]/DarthVader/RunInfo/src/RunInfoCore.cpp
ViewVC logotype

Diff of /DarthVader/RunInfo/src/RunInfoCore.cpp

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

revision 1.3 by mocchiut, Thu Nov 9 14:44:08 2006 UTC revision 1.5 by mocchiut, Mon Nov 27 16:34:48 2006 UTC
# Line 39  int RunInfoCore(UInt_t run, TFile *proce Line 39  int RunInfoCore(UInt_t run, TFile *proce
39    temprname << routdir;    temprname << routdir;
40    temprname << "/" << processFolder.Data();      temprname << "/" << processFolder.Data();  
41    //    //
42      if ( !dbc->IsConnected() ) throw -807;
43    runinfo = new ItoRunInfo(dbc,processFile,processFolder);    runinfo = new ItoRunInfo(dbc,processFile,processFolder);
44    sgnl = runinfo->Update(run,"NONE","");    sgnl = runinfo->Update(run,"NONE","");
45    gSystem->Unlink(temprname.str().c_str());    gSystem->Unlink(temprname.str().c_str());
# Line 48  int RunInfoCore(UInt_t run, TFile *proce Line 49  int RunInfoCore(UInt_t run, TFile *proce
49    if ( processFile ) processFile->Write("Run");    if ( processFile ) processFile->Write("Run");
50    runinfo->Clear();    runinfo->Clear();
51    //    //
52      if ( sgnl < 0 ) throw sgnl;
53      //
54    delete runinfo;    delete runinfo;
55    //    //
56    runinfo = new ItoRunInfo(processFile);    runinfo = new ItoRunInfo(processFile);
# Line 56  int RunInfoCore(UInt_t run, TFile *proce Line 59  int RunInfoCore(UInt_t run, TFile *proce
59    runinfo->Close();    runinfo->Close();
60    processFile->cd();    processFile->cd();
61    if ( processFile ) processFile->Write("Run");    if ( processFile ) processFile->Write("Run");
   runinfo->Clear();  
   delete runinfo;  
62    //    //
63      if ( sgnl < 0 ) throw sgnl;
64    //    //
65      runinfo->Clear();
66      delete runinfo;
67    //    //
   if ( sgnl < 0 ) throw sgnl;  
68    return(sgnl);    return(sgnl);
69  }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.23