Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
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__
12
class
WINDOWSEXPORT
prdfBuffer
:
public
buffer
{
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
;
42
PHDWORD
data
[1];
43
} *
buffer_ptr
;
44
45
buffer_ptr
bptr
;
46
PHDWORD
*
data_ptr
;
47
int
buffer_size
;
48
int
max_length
;
49
int
current_index
;
50
int
is_good
;
51
};
52
53
#endif
online_distribution
blob
master
newbasic
prdfBuffer.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:28
using
1.8.2 with
sPHENIX GitHub integration