/[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.18 by mocchiut, Thu May 3 20:09:29 2007 UTC revision 1.22 by mocchiut, Tue May 22 08:15:07 2007 UTC
# Line 291  int OrbitalInfoCore(UInt_t run, TFile *f Line 291  int OrbitalInfoCore(UInt_t run, TFile *f
291    // number of run to be processed    // number of run to be processed
292    //    //
293    numbofrun = runinfo->GetNoRun();    numbofrun = runinfo->GetNoRun();
294      UInt_t totnorun = runinfo->GetRunEntries();
295    //    //
296    // Try to access the OrbitalInfo tree in the file, if it exists we are reprocessing data if not we are processing a new run    // Try to access the OrbitalInfo tree in the file, if it exists we are reprocessing data if not we are processing a new run
297    //    //
# Line 317  int OrbitalInfoCore(UInt_t run, TFile *f Line 318  int OrbitalInfoCore(UInt_t run, TFile *f
318      //      //
319      if (verbose) printf("\n Preparing the pre-processing...\n");      if (verbose) printf("\n Preparing the pre-processing...\n");
320      //      //
321      if ( run == 0 ){      if ( run == 0 || totnorun == 1 ){
322        //        //
323        // we are reprocessing all the file        // we are reprocessing all the file
324        // 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
# Line 490  int OrbitalInfoCore(UInt_t run, TFile *f Line 491  int OrbitalInfoCore(UInt_t run, TFile *f
491        code = -11;        code = -11;
492        goto closeandexit;        goto closeandexit;
493      };      };
494      //      //
495      if ( runinfo->EV_TO > nevents-1 ) {      if ( runinfo->EV_TO > nevents-1 ) {
496        if ( debug ) printf(" OrbitalInfo - ERROR: too few entries in the registry tree\n");        if ( debug ) printf(" OrbitalInfo - ERROR: too few entries in the registry tree\n");
497        l0File->Close();        l0File->Close();
# Line 567  int OrbitalInfoCore(UInt_t run, TFile *f Line 568  int OrbitalInfoCore(UInt_t run, TFile *f
568        //        //
569        if ( (atime > runinfo->RUNTRAILER_TIME) || (atime < runinfo->RUNHEADER_TIME)  ) {        if ( (atime > runinfo->RUNTRAILER_TIME) || (atime < runinfo->RUNHEADER_TIME)  ) {
570          if (verbose) printf(" OrbitalInfo - WARNING: event at time outside the run time window, skipping it\n");          if (verbose) printf(" OrbitalInfo - WARNING: event at time outside the run time window, skipping it\n");
571          debug = true;  //      debug = true;
572          continue;          continue;
573        }        }
574        //        //
# Line 699  int OrbitalInfoCore(UInt_t run, TFile *f Line 700  int OrbitalInfoCore(UInt_t run, TFile *f
700          if ( debug ) printf(" I am there \n");          if ( debug ) printf(" I am there \n");
701          //          //
702          lowerqtime = upperqtime;          lowerqtime = upperqtime;
703          UInt_t maxloop = 100000000;              Long64_t maxloop = 100000000LL;
704          UInt_t mn = 0;          Long64_t mn = 0;
705          bool gh=false;          bool gh=false;
706          ooi=oi;          ooi=oi;
707          if ( verbose ) printf(" OrbitalInfoCore: sync with quaternions data upperqtime %u lowerqtime %u atime %u \n",(UInt_t)upperqtime,(UInt_t)lowerqtime,atime);          if ( verbose ) printf(" OrbitalInfoCore: sync with quaternions data upperqtime %u lowerqtime %u atime %u \n",(UInt_t)upperqtime,(UInt_t)lowerqtime,atime);
# Line 708  int OrbitalInfoCore(UInt_t run, TFile *f Line 709  int OrbitalInfoCore(UInt_t run, TFile *f
709            if ( mn > maxloop ){            if ( mn > maxloop ){
710              if ( verbose ) printf(" OrbitalInfoCore: quaternions sync out of range! exiting\n");              if ( verbose ) printf(" OrbitalInfoCore: quaternions sync out of range! exiting\n");
711              gh = true;              gh = true;
712                neventsm = 0;
713            };            };
714            mn++;            mn++;
715            if (oi<5) oi++;            if (oi<5) oi++;

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

  ViewVC Help
Powered by ViewVC 1.1.23