/[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.23 by mocchiut, Fri Nov 28 09:05:22 2008 UTC revision 1.25 by mocchiut, Fri Jan 29 05:49:28 2010 UTC
# Line 105  TArrayD *S4_paramfit(UInt_t atime, TSQLS Line 105  TArrayD *S4_paramfit(UInt_t atime, TSQLS
105    tr->SetBranchAddress("CalibS4", &S4CalibEvent);    tr->SetBranchAddress("CalibS4", &S4CalibEvent);
106    if ( tr->GetEntries() < glS4calib->EV_ROOT ) return(NULL);    if ( tr->GetEntries() < glS4calib->EV_ROOT ) return(NULL);
107    //    //
108    tr->GetEntry(glS4calib->EV_ROOT);    if ( tr->GetEntry(glS4calib->EV_ROOT) <= 0 ) throw -36;
109    //    //
110    // Variables initialization    // Variables initialization
111    //    //
# Line 275  int S4Core(UInt_t run, TFile *file,GL_TA Line 275  int S4Core(UInt_t run, TFile *file,GL_TA
275    S4folder << tempname.str().c_str();    S4folder << tempname.str().c_str();
276    tempname << "/S4tree_run";    tempname << "/S4tree_run";
277    tempname << run << ".root";      tempname << run << ".root";  
278      UInt_t totnorun = 0;
279    //    //
280    // DB classes    // DB classes
281    //    //
# Line 331  int S4Core(UInt_t run, TFile *file,GL_TA Line 332  int S4Core(UInt_t run, TFile *file,GL_TA
332    //    //
333    // number of run to be processed    // number of run to be processed
334    //    //
335    numbofrun = runinfo->GetNoRun();    numbofrun = runinfo->GetNoRun();      
336    UInt_t totnorun = runinfo->GetRunEntries();    totnorun = runinfo->GetRunEntries();
337    //    //
338    // 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
339    //    //
# Line 420  int S4Core(UInt_t run, TFile *file,GL_TA Line 421  int S4Core(UInt_t run, TFile *file,GL_TA
421        }        }
422        for (UInt_t j = 0; j < nobefrun; j++){        for (UInt_t j = 0; j < nobefrun; j++){
423          //          //
424          S4trclone->GetEntry(j);            if ( S4trclone->GetEntry(j) <= 0 ) throw -36;    
425          //          //
426          // copy s4clone to mydec          // copy s4clone to mydec
427          //          //
# Line 587  int S4Core(UInt_t run, TFile *file,GL_TA Line 588  int S4Core(UInt_t run, TFile *file,GL_TA
588        //        //
589        if ( procev%1000 == 0 && procev > 0 && verbose ) printf(" %iK \n",procev/1000);          if ( procev%1000 == 0 && procev > 0 && verbose ) printf(" %iK \n",procev/1000);  
590        //        //
591        l0head->GetEntry(re);        if ( l0head->GetEntry(re) <= 0 ) throw -36;
592        //        //
593        // absolute time of this event        // absolute time of this event
594        //        //
# Line 606  int S4Core(UInt_t run, TFile *file,GL_TA Line 607  int S4Core(UInt_t run, TFile *file,GL_TA
607        // start processing        // start processing
608        //        //
609        s4->Clear();        s4->Clear();
610        l0S4->GetEntry(re);        if ( l0S4->GetEntry(re) <= 0 ) throw -36;
611        if (l0s4e->unpackError == 0){        if (l0s4e->unpackError == 0){
612          s4->S4adc = l0s4e->S4_DATA;          s4->S4adc = l0s4e->S4_DATA;
613          //          //
# Line 651  int S4Core(UInt_t run, TFile *file,GL_TA Line 652  int S4Core(UInt_t run, TFile *file,GL_TA
652          //          //
653          // Get entry from old tree          // Get entry from old tree
654          //          //
655          S4trclone->GetEntry(j);            if ( S4trclone->GetEntry(j) <= 0 ) throw -36;    
656          //          //
657          // copy s4clone to s4          // copy s4clone to s4
658          //          //

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.23