/[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.13 by mocchiut, Wed Apr 18 14:07:04 2007 UTC revision 1.15 by mocchiut, Tue May 22 08:15:07 2007 UTC
# Line 170  int S4Core(UInt_t run, TFile *file, TSQL Line 170  int S4Core(UInt_t run, TFile *file, TSQL
170    const char* outDir = gSystem->DirName(gSystem->DirName(file->GetPath()));    const char* outDir = gSystem->DirName(gSystem->DirName(file->GetPath()));
171    //    //
172    Int_t i = 0;    Int_t i = 0;
173    TString processFolder = "S4Folder_"+run;    TString processFolder = Form("S4Folder_%u",run);
174    if ( S4argc > 0 ){    if ( S4argc > 0 ){
175      i = 0;      i = 0;
176      while ( i < S4argc ){      while ( i < S4argc ){
# Line 326  int S4Core(UInt_t run, TFile *file, TSQL Line 326  int S4Core(UInt_t run, TFile *file, TSQL
326    // number of run to be processed    // number of run to be processed
327    //    //
328    numbofrun = runinfo->GetNoRun();    numbofrun = runinfo->GetNoRun();
329      UInt_t totnorun = runinfo->GetRunEntries();
330    //    //
331    // 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
332    //    //
# Line 353  int S4Core(UInt_t run, TFile *file, TSQL Line 354  int S4Core(UInt_t run, TFile *file, TSQL
354      //      //
355      if (verbose) printf("\n Preparing the pre-processing...\n");      if (verbose) printf("\n Preparing the pre-processing...\n");
356      //      //
357      if ( run == 0 ){      if ( run == 0 || totnorun == 1 ){
358        //        //
359        // we are reprocessing all the file        // we are reprocessing all the file
360        // 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.13  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.23