StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StTpcUnpacker.hh
1 /***************************************************************************
2  *
3  * $Id: StTpcUnpacker.hh,v 1.1 1999/02/19 16:27:48 fisyak Exp $
4  *
5  * Author: bl, Jan 20, 1999
6  * based on design outlined in:
7  * DAQ interface to Offline 12/30/98 (M. Levine, M. Shultz, B. Lasiuk)
8  ***************************************************************************
9  *
10  * Description: An abstract class which defines an interface which
11  * allows access to raw data. Is used by the
12  * TRS and DAQ readers!
13  *
14  * Return codes:
15  * --> Data Access:
16  * int getSector()
17  * 0 = OK
18  * -1 = wrong sector number
19  * -2 = wrong event
20  * --> int getSequences()
21  * 0 = OK
22  * -1 = wrong Row
23  * -2 = wrong Pad
24  * -3 = wrong *nSeq
25  * -4 = wrong StSequence
26  * -1000 = no call to get Sector
27  * --> int getPadList()
28  * >0 = no sequences on pad
29  * -1000 = getSector() call failed
30  *
31  ***************************************************************************
32  *
33  * $Log: StTpcUnpacker.hh,v $
34  * Revision 1.1 1999/02/19 16:27:48 fisyak
35  * Add from StarClassLibary
36  *
37  * Revision 1.5 1999/02/10 04:30:53 lasiuk
38  * put TObject as base class
39  *
40  * Revision 1.4 1999/02/04 04:01:33 lasiuk
41  * virtual destructor code
42  *
43  * Revision 1.3 1999/02/03 01:15:34 lasiuk
44  * virtual destructor
45  *
46  * Revision 1.2 1999/02/02 23:50:11 lasiuk
47  * name
48  *
49  * Revision 1.1 1999/02/02 23:36:34 lasiuk
50  * Initial Revision/rename
51  *
52  **************************************************************************/
53 #ifndef ST_TPC_UNPACKER_HH
54 #define ST_TPC_UNPACKER_HH
55 
56 #include "TObject.h"
57 
58 struct StSequence;
59 class StTpcRawDataEvent;
60 
61 #ifndef __ROOT__
63 #else
64 class StTpcUnpacker : public TObject
65 #endif
66 {
67 public:
68  virtual ~StTpcUnpacker() {};
69 
70  virtual int getSector(int which, StTpcRawDataEvent* event) = 0;
71  virtual int getSequences(int padRow, int pad, int *nSeq, StSequence** seq)= 0;
72  virtual int getPadList(int padRow, unsigned char **padList) = 0;
73  virtual void clear() = 0;
74 };
75 #endif