]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/TOFda.cxx
Added lines to separate TOF SMs, according to the DAM shifters request (F.Bellini)
[u/mrichter/AliRoot.git] / TOF / TOFda.cxx
index 3cc88ad2b5b6229a9dd875a1f356b880a452f6c3..f28232d281af93365ec93442dabfbf2bd979f39f 100644 (file)
@@ -224,9 +224,15 @@ main(int argc, char **argv)
     /* retry if got no event */
     if (event==NULL) continue;
     /* check event type */
-    if (event->eventType != PHYSICS_EVENT && event->eventType != CALIBRATION_EVENT) continue;
+    if (event->eventType != PHYSICS_EVENT && event->eventType != CALIBRATION_EVENT) {
+      free(event);
+      continue;
+    }
     /* check inhibit collection */
-    if (event->eventType == PHYSICS_EVENT && inhibitCollection) continue;
+    if (event->eventType == PHYSICS_EVENT && inhibitCollection) {
+      free(event);
+      continue;
+    }
     /* increment number of physics events */
     if (event->eventType == PHYSICS_EVENT) nPhysicsEvents++;
     /* increment number of calib events */
@@ -321,6 +327,8 @@ main(int argc, char **argv)
     
     /* delete raw reader */
     delete rawReader;
+    /* free event */
+    free(event);
     
   } /* end of loop over events */