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
dataBlockHdr.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file dataBlockHdr.h
1
/*
2
** dataBlockHdr.h
3
**
4
** Author: $Author: purschke $
5
** Date: $Date: 2000/07/21 01:51:11 $
6
**
7
** $Log: dataBlockHdr.h,v $
8
** Revision 1.1.1.1 2000/07/21 01:51:11 purschke
9
** mlp -- adding the new automakified "basic" module to CVS.
10
**
11
**
12
** Revision 1.3 1998/12/11 22:01:15 markacs
13
** (stephen markacs) adding log into cvs tags
14
**
15
*/
16
/*
17
**
18
** dataBlockHdr.h
19
**
20
** This file defines the descriptor for the data block and some constants
21
** used for interpreting, accessing or storing data in the descriptor.
22
** It also defines the default setting for all of the data descriptor
23
** fields, even those set by the user.
24
**/
25
26
27
#ifndef _DATABLOCKHDR_
28
#define _DATABLOCKHDR_
29
30
/*
31
** Use C linkage
32
*/
33
#ifdef __cplusplus
34
extern
"C"
{
35
#endif
36
37
typedef
38
struct
dataBlockHdr
{
39
40
BYTE
wordSize
;
/* "Word" size used to store packet data */
41
BYTE
addrLength
;
/* number of bytes used for channel address*/
42
BYTE
hitLength
;
/* Length of a single "hit" in bytes */
43
BYTE
dataPadding
;
/* Padding of the data block */
44
45
SWORD
hitFormat
;
/* Format of a single hit */
46
SWORD
numEntries
;
/* Number of "objects" stored in packet *
47
* (definition depends on packetStruct) */
48
}
DATABLOCKHDR
, *
DATABLOCKHDR_ptr
;
49
/*
50
** These are the default settings for all of the fields
51
** in the data descriptor. Some of the fields are user specified,
52
** but still have default values listed here.
53
*/
54
55
#define CURRENT_NUM_ENTRIES 0
56
#define CURRENT_WORD_SIZE 0
57
#define CURRENT_HIT_LENGTH 0
58
#define CURRENT_HIT_FORMAT 0
59
#define CURRENT_ADDR_LENGTH 0
60
#define CURRENT_DATA_PADDING 0
61
#define CURRENT_DESC_LENGTH 2
62
#define CURRENT_UNSTRUCT_DESC_LENGTH 1
63
64
CONSTANT
UINT
currentNumEntries
=
CURRENT_NUM_ENTRIES
;
65
CONSTANT
UINT
currentWordSize
=
CURRENT_WORD_SIZE
;
66
CONSTANT
UINT
currentHitLength
=
CURRENT_HIT_LENGTH
;
67
CONSTANT
UINT
currentHitFormat
=
CURRENT_HIT_FORMAT
;
68
CONSTANT
UINT
currentAddrLength
=
CURRENT_ADDR_LENGTH
;
69
CONSTANT
UINT
currentDataPadding
=
CURRENT_DATA_PADDING
;
70
CONSTANT
UINT
currentDescLength
=
CURRENT_DESC_LENGTH
;
71
CONSTANT
UINT
currentUnstructDescLength
=
CURRENT_UNSTRUCT_DESC_LENGTH
;
72
#ifdef __cplusplus
73
}
74
/* end of extern "C" */
75
#endif
76
77
#endif
78
/* end the ifndef in _DATABLOCKHDR_ block */
online_distribution
blob
master
newbasic
dataBlockHdr.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:27
using
1.8.2 with
sPHENIX GitHub integration