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
frameHdr.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file frameHdr.h
1
/*
2
** frameHdr.h
3
**
4
** Author: $Author: purschke $
5
** Date: $Date: 2000/07/21 01:51:13 $
6
**
7
** $Log: frameHdr.h,v $
8
** Revision 1.1.1.1 2000/07/21 01:51:13 purschke
9
** mlp -- adding the new automakified "basic" module to CVS.
10
**
11
**
12
** Revision 1.4 1998/12/11 22:01:30 markacs
13
** (stephen markacs) adding log into cvs tags
14
**
15
*/
16
/*
17
**
18
*/
19
20
#ifndef _FRAMEHDR_
21
#define _FRAMEHDR_
22
23
#include "
framePublic.h
"
24
#include "
frameHdrV1.h
"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
30
#define FRAME_LENGTH_OFFSET_OF_DWORD 0
31
32
#define FRAME_MARK_OFFSET_OF_DWORD 1
33
34
#define FRAME_HDR_VERSION_OFFSET_OF_DWORD 2
35
#define FRAME_HDR_VERSION_OFFSET_IN_DWORD 24
36
#define FRAME_HDR_VERSION_NUM_BITS 8
37
#define FRAME_HDR_VERSION_MASK 0xff000000
38
39
#define FRAME_HDR_LENGTH_OFFSET_OF_DWORD 2
40
#define FRAME_HDR_LENGTH_OFFSET_IN_DWORD 16
41
#define FRAME_HDR_LENGTH_NUM_BITS 8
42
#define FRAME_HDR_LENGTH_MASK 0x00ff0000
43
44
#define FRAME_LENGTH_OFFSET 0
45
#define FRAME_MARK_OFFSET 1
46
47
#define NUM_FRAME_VERSIONS 2
/* we have a dummy version 0 */
48
#define CURRENT_FRAME_HDR_VERSION 1
49
50
CONSTANT
UINT
numFrameVersions
=
NUM_FRAME_VERSIONS
;
51
CONSTANT
UINT
frameMarkV
[
NUM_FRAME_VERSIONS
] = {0,
V1_FRAMEMARK
};
52
CONSTANT
UINT
frameHdrLengthV
[
NUM_FRAME_VERSIONS
] = {0,
V1_FRAMEHDR_LENGTH
};
53
54
CONSTANT
UINT
frameLengthOffset
=
FRAME_LENGTH_OFFSET
;
55
CONSTANT
UINT
frameMarkOffset
=
FRAME_MARK_OFFSET
;
56
57
/*
58
** Define "current" header type for use in creating new frames
59
*/
60
CONSTANT
UINT
currentFrameHdrVersion
=
CURRENT_FRAME_HDR_VERSION
;
61
CONSTANT
UINT
currentFrameHdrLength
=
V1_FRAMEHDR_LENGTH
;
62
CONSTANT
UINT
currentFrameMark
=
V1_FRAMEMARK
;
63
CONSTANT
UINT
currentAlignLength
=
V1_ALIGN_LENGTH
;
64
CONSTANT
UINT
currentFrameQuantum
=
V1_FRAME_QUANTUM
;
65
66
CONSTANT
UINT
maxFrameHdrLength
=
V1_FRAMEHDR_LENGTH
;
67
68
/* *** temporarily in framePublic.h *** typedef ALIGNBLKV1 ALIGNBLK; */
69
70
#ifdef __cplusplus
71
}
72
#endif
73
74
#endif
75
76
77
78
online_distribution
blob
master
newbasic
frameHdr.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:27
using
1.8.2 with
sPHENIX GitHub integration