EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
oncsSubevent.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file oncsSubevent.h
1 #ifndef __ONCSSUBEVENT_H__
2 #define __ONCSSUBEVENT_H__
3 // -*- c++ -*-
4 
5 
6 #include "packet.h"
7 #include "decoding_routines.h"
8 #include "oncsStructures.h"
9 #include "oncsSubConstants.h"
10 
11 #include <stddef.h>
12 
13 
14 #ifndef __CINT__
16 #else
17 class oncsSubevent : public Packet {
18 #endif
19 
20 public:
21 
23  virtual ~oncsSubevent();
24 
25  // access to information
26  virtual int getLength() const;
27  virtual int getIdentifier() const;
28  virtual int getHitFormat() const;
29  virtual int getPadding() const;
30 
31  virtual int getDataLength() const;
32  virtual int getStructure() const { return 0;};
33  virtual int getDebugLength() const { return 0;};
34  virtual int getErrorLength() const { return 0;};
35 
36  // debugging-type information
37  virtual void identify( OSTREAM& =COUT) const;
38 
39  // getting decoded values
40  int iValue(const int);
41  int iValue(const int,const char *);
42  int iValue(const int,const int);
43 
44  int iValue(const int,const int, const char *){return 0;};
45  int iValue(const int channel,const int iy, const int iz) {return 0;};
46 
47  int iValue(const int channel,const int iy, const int iz, const char *what) {return 0;};
48 
49  virtual float rValue(const int);
50  virtual float rValue(const int,const char *);
51  virtual float rValue(const int,const int);
52 
53  virtual int getArraylength(const char *);
54  virtual int fillIntArray (int [], const int, int *,const char *what="");
55  virtual int fillFloatArray (float [], const int, int *,const char *what="");
56  virtual int* getIntArray (int *,const char *what="");
57  virtual float* getFloatArray (int *,const char *what="");
58 
59  // pointer or data based handling
60  virtual int is_pointer_type() const;
61  virtual int convert();
62 
63  int setInternalParameter ( const int p1=0, const int p2=0, const char *what = "") {return 0;};
64 
65 protected:
66 
67  virtual int *decode(int *) =0;
68 
69 
75 
81 };
82 
83 // --------------------------------------------------------------------------
84 #ifndef __CINT__
86 #else
87 class oncsSubevent_w1 : public oncsSubevent {
88 #endif
89 public:
91 
92  virtual void dump ( OSTREAM& os = COUT) ;
93 
94  virtual void gdump (const int how=EVT_HEXADECIMAL, OSTREAM& os = COUT) const;
95 
96 protected:
97  inline virtual int *decode (int *) {return 0;};
98 
99 };
100 
101 // ----------------------------------------------------
102 
103 #ifndef __CINT__
105 #else
106 class oncsSubevent_w2 : public oncsSubevent {
107 #endif
108 public:
110 
111  virtual void dump ( OSTREAM& os = COUT) ;
112 
113  virtual void gdump (const int how=EVT_HEXADECIMAL, OSTREAM& os = COUT) const;
114 
115 protected:
116  inline virtual int *decode (int *) {return 0;};
117 
118 };
119 
120 // ----------------------------------------------------
121 
122 
123 #ifndef __CINT__
125 #else
126 class oncsSubevent_w4 : public oncsSubevent {
127 #endif
128 public:
130 
131  virtual void dump ( OSTREAM& os = COUT) ;
132 
133  virtual void gdump (const int how=EVT_HEXADECIMAL, OSTREAM& os = COUT) const;
134 
135 protected:
136  inline virtual int *decode (int *) {return 0;};
137 
138 };
139 
140 
141 #endif /* __ONCSSUBEVENT_H__ */