]> jspc29.x-matter.uni-frankfurt.de Git - mvd_soft.git/commitdiff
fixed a small bug
authorJan Michel <j.michel@gsi.de>
Fri, 26 Sep 2014 17:13:59 +0000 (19:13 +0200)
committerJan Michel <j.michel@gsi.de>
Fri, 26 Sep 2014 17:14:39 +0000 (19:14 +0200)
s-curves/cpp_based-on-dabc-lib/unpacker.cxx

index 9024b0894dfac003e9c1b0731324d21036d59090..0d93c7881225e64d64d9853642731e6030471395 100644 (file)
@@ -64,12 +64,15 @@ int main(int argc, char** argv) {
 
   hadaq::ReadoutHandle ref = hadaq::ReadoutHandle::Connect(filename);
   hadaq::RawEvent* evnt = 0;
+  ref.NextEvent(1.);
   while((evnt = ref.NextEvent(1.)) != 0) {
     readSubEvents(evnt);
 #if DEBUG>=1
     printf("------------------------\n");
 #endif     
     }
+
+    
   writeResults();
 
   save_tree();
@@ -284,7 +287,6 @@ signed analyzeData(hadaq::RawSubevent* sub, unsigned ix, unsigned datalen, unsig
           d = d >> 1;
           }
         pos++;
-        ix++;
         if(ix >= RocEnd) break;
         }
       }