EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
prdfBuffer.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file prdfBuffer.h
1 #ifndef __PRDFBUFFER_H
2 #define __PRDFBUFFER_H
3 
4 #include "buffer.h"
5 #include "phenixTypes.h"
6 #include "BufferConstants.h"
7 #include "Event.h"
8 
9 
10 
11 #ifndef __CINT__
13 #else
14  class prdfBuffer : public buffer {
15 #endif
16 
17 public:
18 
19  //** Constructors
20 
21  prdfBuffer();
22  prdfBuffer( PHDWORD *array, const int length);
23  ~prdfBuffer();
24 
25  // this creates a new event on the next address
26  Event * getEvent();
27 
28  int * getEventData();
29 
30  int isGood() const { return is_good; } ;
31 
32  int buffer_swap();
33  int frame_swap(PHDWORD * fp, const int eventlength);
34 
35 protected:
36  typedef struct
37  {
38  unsigned int Length;
39  unsigned int ID;
40  int Bufseq;
41  int Runnr;
43  } *buffer_ptr;
44 
50  int is_good;
51 };
52 
53 #endif