/[PAMELA software]/DarthVader/OrbitalInfo/src/OrbitalInfoCore.cpp
ViewVC logotype

Diff of /DarthVader/OrbitalInfo/src/OrbitalInfoCore.cpp

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

revision 1.24 by mocchiut, Fri Sep 7 21:14:18 2007 UTC revision 1.25 by mocchiut, Sun Sep 9 18:57:29 2007 UTC
# Line 50  using namespace std; Line 50  using namespace std;
50  // CORE ROUTINE  // CORE ROUTINE
51  //  //
52  //  //
53  int OrbitalInfoCore(UInt_t run, TFile *file, TSQLServer *dbc, Int_t OrbitalInfoargc, char *OrbitalInfoargv[]){  int OrbitalInfoCore(UInt_t run, TFile *file, GL_TABLES *glt, Int_t OrbitalInfoargc, char *OrbitalInfoargv[]){
54    //    //
55    Int_t i = 0;    Int_t i = 0;
56      TString host = glt->CGetHost();
57      TString user = glt->CGetUser();
58      TString psw = glt->CGetPsw();
59      TSQLServer *dbc = TSQLServer::Connect(host.Data(),user.Data(),psw.Data());
60    //    //
61    TString processFolder = Form("OrbitalInfoFolder_%u",run);    TString processFolder = Form("OrbitalInfoFolder_%u",run);
62    //    //
# Line 552  int OrbitalInfoCore(UInt_t run, TFile *f Line 556  int OrbitalInfoCore(UInt_t run, TFile *f
556      //      //
557      if (verbose) printf("\n Ready to start! \n\n Processed events: \n\n");      if (verbose) printf("\n Ready to start! \n\n Processed events: \n\n");
558      //      //
559      //    if ( dbc ){       //
     //      dbc->Close();  
       //      delete dbc;  
     //};  
     //  
560      for ( re = runinfo->EV_FROM; re < (runinfo->EV_FROM+runinfo->NEVENTS); re++){      for ( re = runinfo->EV_FROM; re < (runinfo->EV_FROM+runinfo->NEVENTS); re++){
561            
562        //        //
# Line 954  int OrbitalInfoCore(UInt_t run, TFile *f Line 954  int OrbitalInfoCore(UInt_t run, TFile *f
954    //    //
955    // the end    // the end
956    //    //
957      if ( dbc ){
958        dbc->Close();
959        delete dbc;
960      };
961    if (verbose) printf("\n Exiting...\n");    if (verbose) printf("\n Exiting...\n");
962    if(OrbitalInfotr)OrbitalInfotr->Delete();    if(OrbitalInfotr)OrbitalInfotr->Delete();
963    //    //

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.23