/[PAMELA software]/DarthVader/S4Level2/src/S4Core.cpp
ViewVC logotype

Diff of /DarthVader/S4Level2/src/S4Core.cpp

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

revision 1.17 by mocchiut, Thu Sep 6 12:49:32 2007 UTC revision 1.18 by mocchiut, Fri Sep 7 21:14:19 2007 UTC
# Line 71  TArrayD *S4_paramfit(UInt_t atime, TSQLS Line 71  TArrayD *S4_paramfit(UInt_t atime, TSQLS
71    //    //
72    GL_S4_CALIB *glS4calib = new GL_S4_CALIB();    GL_S4_CALIB *glS4calib = new GL_S4_CALIB();
73    //    //
74    if ( !dbc->IsConnected() ) throw -504;    //  if ( !dbc->IsConnected() ) throw -504;
75    Int_t s4sig = glS4calib->Query_GL_S4_CALIB(atime, dbc);    Int_t s4sig = glS4calib->Query_GL_S4_CALIB(atime, dbc);
76    if ( s4sig != -57 && s4sig < 0 ){    if ( s4sig != -57 && s4sig < 0 ){
77      parametri->AddAt(0.,0);      parametri->AddAt(0.,0);
# Line 81  TArrayD *S4_paramfit(UInt_t atime, TSQLS Line 81  TArrayD *S4_paramfit(UInt_t atime, TSQLS
81    if ( s4sig < 0 ) throw s4sig;    if ( s4sig < 0 ) throw s4sig;
82    //    //
83    GL_ROOT *glroot = new GL_ROOT();    GL_ROOT *glroot = new GL_ROOT();
84    if ( !dbc->IsConnected() ) throw -504;    //  if ( !dbc->IsConnected() ) throw -504;
85    glroot->Query_GL_ROOT(glS4calib->ID_ROOT_L0,dbc);    glroot->Query_GL_ROOT(glS4calib->ID_ROOT_L0,dbc);
86    //    //
87    stringstream ftmpname;    stringstream ftmpname;
# Line 478  int S4Core(UInt_t run, TFile *file, TSQL Line 478  int S4Core(UInt_t run, TFile *file, TSQL
478      //      //
479      // prepare the timesync for the db      // prepare the timesync for the db
480      //      //
481      if ( !dbc->IsConnected() ) throw -504;      //    if ( !dbc->IsConnected() ) throw -504;
482      dbtime = new GL_TIMESYNC(runinfo->ID_ROOT_L0,"ID",dbc);      dbtime = new GL_TIMESYNC(runinfo->ID_ROOT_L0,"ID",dbc);
483      //      //
484      // Search in the DB the path and name of the LEVEL0 file to be processed.      // Search in the DB the path and name of the LEVEL0 file to be processed.
485      //      //
486      if ( !dbc->IsConnected() ) throw -504;      //    if ( !dbc->IsConnected() ) throw -504;
487      glroot->Query_GL_ROOT(runinfo->ID_ROOT_L0,dbc);      glroot->Query_GL_ROOT(runinfo->ID_ROOT_L0,dbc);
488      //      //
489      ftmpname.str("");      ftmpname.str("");
# Line 568  int S4Core(UInt_t run, TFile *file, TSQL Line 568  int S4Core(UInt_t run, TFile *file, TSQL
568      //      //
569      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");
570      //      //
571        if ( dbc ){
572          dbc->Close();
573          //      delete dbc;
574        };
575        //
576      for ( re = runinfo->EV_FROM; re < (runinfo->EV_FROM+runinfo->NEVENTS); re++){      for ( re = runinfo->EV_FROM; re < (runinfo->EV_FROM+runinfo->NEVENTS); re++){
577        //        //
578        if ( procev%1000 == 0 && procev > 0 && verbose ) printf(" %iK \n",procev/1000);          if ( procev%1000 == 0 && procev > 0 && verbose ) printf(" %iK \n",procev/1000);  

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

  ViewVC Help
Powered by ViewVC 1.1.23