The BAQ/Data Acquisition/DAQ System/Data Format
もどる
データフォーマットは理研フォーマット(rdf)です。 1block = 16KBytes constantです。
Block Header
0001 0000 0000 0000 Header Block
0000 0000 0000 0000 Data Block
#### Header Block 16KBytes ####
0001 0000 0000 0000 0000 0000 0000 0000 --> Constant
0000 0000 ....
Word
0 : 0001 - Flag of Header
1-9 : 0000
10-13 : Run Number (ASCII 8Char.) "RUN-1066"
14 : Space * 2 (ASCII 2Char.) " "
15-23 : Start Time (ASCII 18Char.) "START => 12:58:56 "
24-32 : Stop Time (ASCII 18Char.) " STOP => 13:53:36 "
33 : Space * 2 (ASCII 2Char.) " "
34-42 : Print Time (ASCII 18Char.) "Print -> 13:57:07 "
43-47 : Print Date (ASCII 10Char.) " 22-SEP-98"
48-49 : 0000
50-89 : Header (ASCII 80char.)
90-129 : Space (ASCII 80Char.)
130- : 0000
---- Example ----
\0 \0 \0 \0 R U N - 1 0 6 6 S T
A R T = > 1 2 : 5 8 : 5 6
S T O P = > 1 3 : 5 3 : 3
6 P r i n t = > 1 3 :
5 7 : 0 7 2 2 - S E P - 9 8
\0 \0 \0 \0 R u n 1 0 6 6 s a m e
a s b e f o r e
-----------------
#### Ender Block 16KBytes ####
ffff 0000 0000 0000 0000 0000 0000 0000 -- > Constant
0000 0000 ....
Word
0 : ffff - Flag of Ender
1-9 : 0000
10-13 : Run Number (ASCII 10Char.) "RUN-1066"
14 : Space * 2 (ASCII 2Char.) " "
15-23 : Start Time (ASCII 18Char.) "START => 12:58:56 "
24-32 : Stop Time (ASCII 18Char.) " STOP => 13:53:36 "
33 : Space * 2 (ASCII 2Char.) " "
34-42 : Print Time (ASCII 18Char.) "Print -> 13:57:07 "
43-47 : Print Date (ASCII 10Char.) " 22-SEP-98"
48-49 : 0000
50-89 : Header (ASCII 80char.)
90-129 : Ender (ASCII 80Char.)
130- : 0000
#### Event Block 16KBytes ####
0000 0000 0000 0000 .... .... .... ....
Word
0-3 : 0000 - Flag of Data
4 : Event size (Words - Include this)
5 : FID = 1 -> Constant
6 : Event ID
7 : Segment size (Words - Include this)
8 : Segment ID
9- : Data
$ Event size $
Ex.) 0x8046 --> 1000|0000|0100|0110
^ ^^^^^^^^^^^^^^
Always '1' Event size
$ Fixed data (Non FERA) $
0 : Segment size (Words - Include this)
1 : Segment ID
3- : Data
$ Variable data (FERA) $
0 : Segment size (Words - Include this)
1 : Segment ID
3 : FERA Data size (Words - Except this)
4 : FERA Header
Ex.) 0x800e --> 1000|1000|0000|1110
^
Always '1'
16 11
--------------------------------------
| 1|WC=0to15 | | |
--------------------------------------
Last Update: 2005/4/6
Hidetada Baba
baba @ rarfaxp.riken.jp