/[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.65 by mocchiut, Fri Jan 17 09:54:30 2014 UTC revision 1.66 by mocchiut, Mon Feb 3 16:45:14 2014 UTC
# Line 122  int OrbitalInfoCore(UInt_t run, TFile *f Line 122  int OrbitalInfoCore(UInt_t run, TFile *f
122    TTree *OrbitalInfotrclone = 0;    TTree *OrbitalInfotrclone = 0;
123    Bool_t reproc = false;    Bool_t reproc = false;
124    Bool_t reprocall = false;    Bool_t reprocall = false;
125      Bool_t igrfloaded = false;
126    UInt_t nobefrun = 0;    UInt_t nobefrun = 0;
127    UInt_t noaftrun = 0;    UInt_t noaftrun = 0;
128    UInt_t numbofrun = 0;    UInt_t numbofrun = 0;
# Line 590  int OrbitalInfoCore(UInt_t run, TFile *f Line 591  int OrbitalInfoCore(UInt_t run, TFile *f
591      //      //
592      // open IGRF files and do it only once if we are processing a full level2 file      // open IGRF files and do it only once if we are processing a full level2 file
593      //      //
594      if ( irun == 0 ){      if ( reprocall && !igrfloaded ){
595        if ( l0head->GetEntry(runinfo->EV_FROM) <= 0 ) throw -36;  
596          if ( l0head->GetEntry(runinfo->EV_FROM) > 0 ){
597            igrfloaded = true;
598        //        //
599        // absolute time of first event of the run (it should not matter a lot)        // absolute time of first event of the run (it should not matter a lot)
600        //        //
# Line 602  int OrbitalInfoCore(UInt_t run, TFile *f Line 605  int OrbitalInfoCore(UInt_t run, TFile *f
605        if ( parerror<0 ) {        if ( parerror<0 ) {
606          code = parerror;          code = parerror;
607          goto closeandexit;          goto closeandexit;
608      };        }
609        ltp1 = (Int_t)(glparam->PATH+glparam->NAME).Length();        ltp1 = (Int_t)(glparam->PATH+glparam->NAME).Length();
610        if ( verbose ) printf(" Reading Earth's Magnetic Field parameter file: %s \n",(glparam->PATH+glparam->NAME).Data());        if ( verbose ) printf(" Reading Earth's Magnetic Field parameter file: %s \n",(glparam->PATH+glparam->NAME).Data());
611        //        //
# Line 610  int OrbitalInfoCore(UInt_t run, TFile *f Line 613  int OrbitalInfoCore(UInt_t run, TFile *f
613        if ( parerror<0 ) {        if ( parerror<0 ) {
614          code = parerror;          code = parerror;
615          goto closeandexit;          goto closeandexit;
616        };        }
617        ltp2 = (Int_t)(glparam2->PATH+glparam2->NAME).Length();        ltp2 = (Int_t)(glparam2->PATH+glparam2->NAME).Length();
618        if ( verbose ) printf(" Reading Earth's Magnetic Field parameter file: %s \n",(glparam2->PATH+glparam2->NAME).Data());        if ( verbose ) printf(" Reading Earth's Magnetic Field parameter file: %s \n",(glparam2->PATH+glparam2->NAME).Data());
619        //        //
# Line 618  int OrbitalInfoCore(UInt_t run, TFile *f Line 621  int OrbitalInfoCore(UInt_t run, TFile *f
621        if ( parerror<0 ) {        if ( parerror<0 ) {
622          code = parerror;          code = parerror;
623          goto closeandexit;          goto closeandexit;
624        };        }
625        ltp3 = (Int_t)(glparam3->PATH+glparam3->NAME).Length();        ltp3 = (Int_t)(glparam3->PATH+glparam3->NAME).Length();
626        if ( verbose ) printf(" Reading Earth's Magnetic Field parameter file: %s \n",(glparam3->PATH+glparam3->NAME).Data());        if ( verbose ) printf(" Reading Earth's Magnetic Field parameter file: %s \n",(glparam3->PATH+glparam3->NAME).Data());
627        //        //
628        initize_((char *)(glparam->PATH+glparam->NAME).Data(),&ltp1,(char *)(glparam2->PATH+glparam2->NAME).Data(),&ltp2,(char *)(glparam3->PATH+glparam3->NAME).Data(),&ltp3);        initize_((char *)(glparam->PATH+glparam->NAME).Data(),&ltp1,(char *)(glparam2->PATH+glparam2->NAME).Data(),&ltp2,(char *)(glparam3->PATH+glparam3->NAME).Data(),&ltp3);
629        //        //
630          }
631      }      }
632      //      //
633      // End IGRF stuff//      // End IGRF stuff//

Legend:
Removed from v.1.65  
changed lines
  Added in v.1.66

  ViewVC Help
Powered by ViewVC 1.1.23