Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
oEvent.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file oEvent.h
1 #ifndef __oEVENT_BASE_H
2 #define __oEVENT_BASE_H
3 
4 #include "EvtConstants.h"
5 #include "phenixTypes.h"
6 #include "EvtStructures.h"
7 #include "packet.h"
8 
9 #define WINDOWSEXPORT
10 
11 // virtual base class for an "event"
12 
13 #ifndef __CINT__
15 #else
16 class oEvent {
17 #endif
18 
19 public:
20 
21  //** Constructors
22  oEvent(PHDWORD *, const int maxlength
23  , const int irun, const int itype, const int eseq);
24 
25  virtual ~oEvent() {}
26  virtual int prepare_next();
27  virtual int prepare_next( const int, const int);
28  virtual void set_event_type(const int);
29 
30  // frame and packet adding
31  virtual int addFrame(PHDWORD *);
32 
33  virtual int addPacket ( const Packet * p);
34 
35  virtual int addUnstructPacketData(PHDWORD * data,
36  const int length,
37  const int id,
38  const int wordsize,
39  const int hitformat);
40 protected:
41 
43  int current;
44  int in_frame;
48  int left;
50 };
51 
52 #endif