/[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.12 by mocchiut, Tue Apr 17 11:58:35 2007 UTC revision 1.16 by mocchiut, Wed May 30 11:45:11 2007 UTC
# Line 72  TArrayD *S4_paramfit(UInt_t atime, TSQLS Line 72  TArrayD *S4_paramfit(UInt_t atime, TSQLS
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    glS4calib->Query_GL_S4_CALIB(atime, dbc);    Int_t s4sig = glS4calib->Query_GL_S4_CALIB(atime, dbc);
76      if ( s4sig < 0 ) throw s4sig;
77    //    //
78    GL_ROOT *glroot = new GL_ROOT();    GL_ROOT *glroot = new GL_ROOT();
79    if ( !dbc->IsConnected() ) throw -504;    if ( !dbc->IsConnected() ) throw -504;
# Line 170  int S4Core(UInt_t run, TFile *file, TSQL Line 171  int S4Core(UInt_t run, TFile *file, TSQL
171    const char* outDir = gSystem->DirName(gSystem->DirName(file->GetPath()));    const char* outDir = gSystem->DirName(gSystem->DirName(file->GetPath()));
172    //    //
173    Int_t i = 0;    Int_t i = 0;
174    TString processFolder = "S4Folder_"+run;    TString processFolder = Form("S4Folder_%u",run);
175    if ( S4argc > 0 ){    if ( S4argc > 0 ){
176      i = 0;      i = 0;
177      while ( i < S4argc ){      while ( i < S4argc ){
# Line 183  int S4Core(UInt_t run, TFile *file, TSQL Line 184  int S4Core(UInt_t run, TFile *file, TSQL
184        };        };
185        if ( (!strcmp(S4argv[i],"--debug")) || (!strcmp(S4argv[i],"-g"))) {        if ( (!strcmp(S4argv[i],"--debug")) || (!strcmp(S4argv[i],"-g"))) {
186          verbose = true;          verbose = true;
187            debug = true;
188        };        };
189        if ( (!strcmp(S4argv[i],"--verbose")) || (!strcmp(S4argv[i],"-v"))) {        if ( (!strcmp(S4argv[i],"--verbose")) || (!strcmp(S4argv[i],"-v"))) {
190          verbose = true;          verbose = true;
# Line 325  int S4Core(UInt_t run, TFile *file, TSQL Line 327  int S4Core(UInt_t run, TFile *file, TSQL
327    // number of run to be processed    // number of run to be processed
328    //    //
329    numbofrun = runinfo->GetNoRun();    numbofrun = runinfo->GetNoRun();
330      UInt_t totnorun = runinfo->GetRunEntries();
331    //    //
332    // Try to access the S4 tree in the file, if it exists we are reprocessing data if not we are processing a new run    // Try to access the S4 tree in the file, if it exists we are reprocessing data if not we are processing a new run
333    //    //
# Line 352  int S4Core(UInt_t run, TFile *file, TSQL Line 355  int S4Core(UInt_t run, TFile *file, TSQL
355      //      //
356      if (verbose) printf("\n Preparing the pre-processing...\n");      if (verbose) printf("\n Preparing the pre-processing...\n");
357      //      //
358      if ( run == 0 ){      if ( run == 0 || totnorun == 1 ){
359        //        //
360        // we are reprocessing all the file        // we are reprocessing all the file
361        // if we are reprocessing everything we don't need to copy any old event and we can just work with the new tree and delete the old one immediately        // if we are reprocessing everything we don't need to copy any old event and we can just work with the new tree and delete the old one immediately

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

  ViewVC Help
Powered by ViewVC 1.1.23