ctrlctu.o: ctrlctu.c worker.h psxshm.h
 evt.o: evt.c evt.h hadtu.h subevt.h
 evtbuild.o: evtbuild.c worker.h psxshm.h evt.h hadtu.h subevt.h \
- shmtrans.h semaphore.h hadtuqueue.h
+ shmtrans.h semaphore.h hadtuqueue.h ansiTape.h
 hadtu.o: hadtu.c hadtu.h
 hadtuqueue.o: hadtuqueue.c hadtu.h hadtuqueue.h
 hldread.o: hldread.c evt.h hadtu.h subevt.h hldread.h
 
-static char rcsId[] = "$Id: evt.c,v 6.6 2000-05-21 21:45:02 hades Exp $";
+static char rcsId[] = "$Id: evt.c,v 6.7 2000-05-22 08:20:48 hades Exp $";
 
 #define _ANSI_C_SOURCE
 #include <stddef.h>
        freeMem(my);
 }
 
-int Evt_write(void *my, FILE * file)
-{
-       return fwrite(my, 1, Evt_paddedSize(my), file);
-}
-
-int Evt_writeTape(void *my, AnsiTape *tape)
-{
-       return writeAnsiTape(tape, my, Evt_paddedSize(my));
-}
-
 void *Evt_appendSubEvt(void *my, void *subEvt)
 {
        if (SubEvt_decoding(subEvt) == SubEvtDecoding_SubEvts) {
 
 
 #include "hadtu.h"
 #include "subevt.h"
-#include "ansiTape.h"
 
 #define EVT_MAXSIZE (100 * 1024)
 
 
 void *newEvt(UInt4 decoding, UInt4 id, UInt4 runNr);
 void deleteEvt(void *my);
-int Evt_write(void *my, FILE * file);
-int Evt_writeTape(void *my, AnsiTape *tape);
 void *Evt_fget(FILE * file);
 void *Evt_appendSubEvt(void *my, void *subEvt);
 
 
-static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.15 2000-05-21 21:45:02 hades Exp $";
+static char rcsId[] = "$Header: /misc/hadesprojects/daq/cvsroot/eventbuilder/hadaq/evtbuild.c,v 6.16 2000-05-22 08:20:48 hades Exp $";
 
 #define _XOPEN_SOURCE
 #include <unistd.h>
        }
        if (outFile != NULL) {
                if (strcmp(outDev, "file") == 0) {
-                       Evt_write(evt, outFile);
+                       fwrite(evt, 1, Evt_paddedSize(evt), outFile);
                } else if (strcmp(outDev, "tape") == 0) {
-                       Evt_writeTape(evt, outTape);
+                       writeAnsiTape(outTape, evt, Evt_paddedSize(evt));
                }
        }
        deleteEvt(evt);
                if (currNrOfSubEvts == nrOfSubEvts) {
                        if (outFile != NULL) {
                                if (strcmp(outDev, "file") == 0) {
-                                       Evt_write(evt, outFile);
+                                       fwrite(evt, 1, Evt_paddedSize(evt), outFile);
                                } else if (strcmp(outDev, "tape") == 0) {
-                                       Evt_writeTape(evt, outTape);
+                                       writeAnsiTape(outTape, evt, Evt_paddedSize(evt));
                                }
                        }
                        Evt_online(evt);
        }
        if (outFile != NULL) {
                if (strcmp(outDev, "file") == 0) {
-                       Evt_write(evt, outFile);
+                       fwrite(evt, 1, Evt_paddedSize(evt), outFile);
                } else if (strcmp(outDev, "tape") == 0) {
-                       Evt_writeTape(evt, outTape);
+                       writeAnsiTape(outTape, evt, Evt_paddedSize(evt));
                }
        }
        deleteEvt(evt);