/[PAMELA software]/chewbacca/YodaProfiler/src/PamelaDBOperations.cpp
ViewVC logotype

Diff of /chewbacca/YodaProfiler/src/PamelaDBOperations.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by mocchiut, Fri Nov 28 14:07:37 2008 UTC revision 1.15 by mocchiut, Thu Dec 4 09:00:18 2008 UTC
# Line 1585  Int_t PamelaDBOperations::insertPamelaGL Line 1585  Int_t PamelaDBOperations::insertPamelaGL
1585      result = conn->Query(oss.str().c_str());      result = conn->Query(oss.str().c_str());
1586      if ( !result ) throw -10;      if ( !result ) throw -10;
1587      row = result->Next();      row = result->Next();
1588        if ( !row ) throw -92;
1589      idresof = (UInt_t)atoll(row->GetField(0));      idresof = (UInt_t)atoll(row->GetField(0));
1590      existsts = true;      existsts = true;
1591      goto eout;      goto eout;
# Line 2390  Int_t PamelaDBOperations::insertPamelaRU Line 2391  Int_t PamelaDBOperations::insertPamelaRU
2391            //    if ( conptt+1 == (nrtev+nrtbef )){              //    if ( conptt+1 == (nrtev+nrtbef )){  
2392            if ( IsDebug() ) printf(" >>>>>>>>>>> %i %u %i %u \n",ptht,rhev,nrtev,conptt);            if ( IsDebug() ) printf(" >>>>>>>>>>> %i %u %i %u \n",ptht,rhev,nrtev,conptt);
2393            ptht++;            ptht++;
2394            if ( ptht < rhev ){            if ( ptht < rhev ){
2395              rh->GetEntry(ptht);              rh->GetEntry(ptht);
2396              //pth++;              //pth++;
2397              //if ( pth < rhev ){              //if ( pth < rhev ){
# Line 2418  Int_t PamelaDBOperations::insertPamelaRU Line 2419  Int_t PamelaDBOperations::insertPamelaRU
2419              if ( (UInt_t)evbeft < upperentry-1 && upperentry>0 ){              if ( (UInt_t)evbeft < upperentry-1 && upperentry>0 ){
2420                if ( IsDebug() ) printf(" Piece of run at the end of the file with NO RUNHEADER! evbeft %u upperentry-1 %u \n",(UInt_t)evbeft,upperentry-1);                if ( IsDebug() ) printf(" Piece of run at the end of the file with NO RUNHEADER! evbeft %u upperentry-1 %u \n",(UInt_t)evbeft,upperentry-1);
2421                //                //
2422                if ( (ptt-1) < 0 ) throw -15; // should never arrive here!                //              if ( (ptt-1) < 0 ) throw -15; // should never arrive here!
2423                  if ( (rtev-1) < 0 || ptt < 0 ) throw -15; // should never arrive here!
2424                //              rt->GetEntry(ptt-1);                //              rt->GetEntry(ptt-1);
2425                rt->GetEntry(rtev-1);                rt->GetEntry(rtev-1);
2426                cod = eht->GetCounter();                cod = eht->GetCounter();

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.23