#ifndef _TPCDateIO_h_ #define _TPCDateIO_h_ #include "event.h" //#include "Rtypes.h" class TPCDateIO { int fcnt; // event counter int firstfec; int fbranch; public: void printError( char *where, int errorCode ); int PrintEquipmentHeader(struct equipmentHeaderStruct *e); int PrintEventHeader(struct eventHeaderStruct *event); int PrintAltroChannel(long long * x ); short get10BitWord(unsigned short * x, int pos); int ProcessAltroChannel(unsigned char *ptr,int version); int ProcessEquipment(char *ptr,int version); int ProcessEvent(char *ptr); int Process(int neve,int skip); int Skip(int neve=1){ return Process(neve,1);}; int Run(int neve=1){ return Process(neve,0);}; ~TPCDateIO(); TPCDateIO(){}; TPCDateIO(char *datefile, char *geopath); // ClassDef(TPCDateIO,1); }; #endif