Analysis Software
Documentation for sPHENIX simulation 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  virtual int setIdentifier(const int newid);
40 
41  // getting decoded values
42  int iValue(const int);
43  int iValue(const int,const char *);
44  int iValue(const int,const int);
45 
46  int iValue(const int,const int, const char *){return 0;};
47  int iValue(const int channel,const int iy, const int iz) {return 0;};
48 
49  int iValue(const int channel,const int iy, const int iz, const char *what) {return 0;};
50 
51  virtual float rValue(const int);
52  virtual float rValue(const int,const char *);
53  virtual float rValue(const int,const int);
54 
55  virtual int getArraylength(const char *);
56  virtual int fillIntArray (int [], const int, int *,const char *what="");
57  virtual int fillFloatArray (float [], const int, int *,const char *what="");
58  virtual int* getIntArray (int *,const char *what="");
59  virtual float* getFloatArray (int *,const char *what="");
60 
61  // pointer or data based handling
62  virtual int is_pointer_type() const;
63  virtual int convert();
64  virtual int copyMe(int [], const int maxlength) const;
65 
66  int setInternalParameter ( const int p1=0, const int p2=0, const char *what = "") {return 0;};
67 
68 protected:
69 
70  virtual int *decode(int *) =0;
71 
72 
78 
84 };
85 
86 // --------------------------------------------------------------------------
87 #ifndef __CINT__
89 #else
90 class oncsSubevent_w1 : public oncsSubevent {
91 #endif
92 public:
94 
95  virtual void dump ( OSTREAM& os = COUT) ;
96 
97  virtual void gdump (const int how=EVT_HEXADECIMAL, OSTREAM& os = COUT) const;
98 
99 protected:
100  inline virtual int *decode (int *) {return 0;};
101 
102 };
103 
104 // ----------------------------------------------------
105 
106 #ifndef __CINT__
108 #else
109 class oncsSubevent_w2 : public oncsSubevent {
110 #endif
111 public:
113 
114  virtual void dump ( OSTREAM& os = COUT) ;
115 
116  virtual void gdump (const int how=EVT_HEXADECIMAL, OSTREAM& os = COUT) const;
117 
118 protected:
119  inline virtual int *decode (int *) {return 0;};
120 
121 };
122 
123 // ----------------------------------------------------
124 
125 
126 #ifndef __CINT__
128 #else
129 class oncsSubevent_w4 : public oncsSubevent {
130 #endif
131 public:
133 
134  virtual void dump ( OSTREAM& os = COUT) ;
135 
136  virtual void gdump (const int how=EVT_HEXADECIMAL, OSTREAM& os = COUT) const;
137 
138 protected:
139  inline virtual int *decode (int *) {return 0;};
140 
141 };
142 
143 
144 #endif /* __ONCSSUBEVENT_H__ */