00001 /*************************************************************************** 00002 * 00003 * $Id: StTpcUnpacker.hh,v 1.1 1999/02/19 16:27:48 fisyak Exp $ 00004 * 00005 * Author: bl, Jan 20, 1999 00006 * based on design outlined in: 00007 * DAQ interface to Offline 12/30/98 (M. Levine, M. Shultz, B. Lasiuk) 00008 *************************************************************************** 00009 * 00010 * Description: An abstract class which defines an interface which 00011 * allows access to raw data. Is used by the 00012 * TRS and DAQ readers! 00013 * 00014 * Return codes: 00015 * --> Data Access: 00016 * int getSector() 00017 * 0 = OK 00018 * -1 = wrong sector number 00019 * -2 = wrong event 00020 * --> int getSequences() 00021 * 0 = OK 00022 * -1 = wrong Row 00023 * -2 = wrong Pad 00024 * -3 = wrong *nSeq 00025 * -4 = wrong StSequence 00026 * -1000 = no call to get Sector 00027 * --> int getPadList() 00028 * >0 = no sequences on pad 00029 * -1000 = getSector() call failed 00030 * 00031 *************************************************************************** 00032 * 00033 * $Log: StTpcUnpacker.hh,v $ 00034 * Revision 1.1 1999/02/19 16:27:48 fisyak 00035 * Add from StarClassLibary 00036 * 00037 * Revision 1.5 1999/02/10 04:30:53 lasiuk 00038 * put TObject as base class 00039 * 00040 * Revision 1.4 1999/02/04 04:01:33 lasiuk 00041 * virtual destructor code 00042 * 00043 * Revision 1.3 1999/02/03 01:15:34 lasiuk 00044 * virtual destructor 00045 * 00046 * Revision 1.2 1999/02/02 23:50:11 lasiuk 00047 * name 00048 * 00049 * Revision 1.1 1999/02/02 23:36:34 lasiuk 00050 * Initial Revision/rename 00051 * 00052 **************************************************************************/ 00053 #ifndef ST_TPC_UNPACKER_HH 00054 #define ST_TPC_UNPACKER_HH 00055 00056 #include "TObject.h" 00057 00058 struct StSequence; 00059 class StTpcRawDataEvent; 00060 00061 #ifndef __ROOT__ 00062 class StTpcUnpacker 00063 #else 00064 class StTpcUnpacker : public TObject 00065 #endif 00066 { 00067 public: 00068 virtual ~StTpcUnpacker() {}; 00069 00070 virtual int getSector(int which, StTpcRawDataEvent* event) = 0; 00071 virtual int getSequences(int padRow, int pad, int *nSeq, StSequence** seq)= 0; 00072 virtual int getPadList(int padRow, unsigned char **padList) = 0; 00073 virtual void clear() = 0; 00074 }; 00075 #endif
1.5.9