Data Acqusition Data Format version 1.7 19-JUL-1997 by A.Tamii
0) Preface
This manual describes the data strcutre in the new data acqusition
system at the Research Center for Nuclear Physics (RCNP).
The block structure is described in another manual (mt_fromat).
1) Region
The region header size is one word (= 2 Bytes). The upper 4 bits contain
the region ID and the lower 12 bits contain the region size. The unit of
region size is word (= 2 Bytes) and it does not contain the size of the
region header.
MSB 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 LSB
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| Region ID | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Region IDs are defined as follows.
HEX OCT
0 00 ... Illegal
1 01 ... 4299-4298(VDC) Old Format -> disposed
2 02 ... Input Register
3 03 ... ADC
4 04 ... TDC
5 05 ... 4299-PCOSIII(MWPC) Old Format -> disposed
6 06 ... Scaler
7 07 ... 3377 VDC
8 10 ... (Reserved)
9 11 ... 4299-4298(VDC) New Format -> disposed
a 12 ... 4299-PCOSII(MWPC) New Format
b 13 ... ADC-LAS
c 14 ... TDC-LAS
d 15 ... FERA (ADC)
e 16 ... FERET(TDC)
f 17 ... Check Sum
2) Event ID
Event IDs are defined as follows. Each of them corresponds to a certain
bit of the coincidence register.
ID (Decimal)
1 Unused
__
2 Spin Mode (UP = DOWN)
____
3 Spin Mode (DOWN = UP)
______
4 HataIn (CAVE)
______
5 HataIn (WN)
6 GR F.P. Event
7 Not Used
8 LAS F.P. Event
9 Coincidence
10 Reserved
11 2nd Level Event
12 FPP Event
13 2nd Level Accept
14 2nd Level Reject
15 Not Used
16 Block End Event
(memo)
o GR F.P. Event(6), LAS F.P. Event(8), and Coincidence(9) Bits
are ...
o A 2nd Level Event(11) means that the corresponding event
is generated with the 2nd Level Trigger module.
o A 2nd Level Accept(13) means that the corredonding event
was accepted with the 2nd Level Trigger module.
(c.f. )
o A 2nd Level Reject(14) means that the corredonding event
was rejected with the 2nd Level Trigger module.
(c.f. )
o Block End Events are created only by software.
3) Region Data Format
This chapter describes the details of the region data.
Region data are created corresponding to each module.
(Ex. If you use four ADC modules, then four ADC regions
should be contained in each event data.)
3.1 4299-4298(VDC) Old Format (disposed)
Region Header Word (Added by 4299)
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Region ID=0x01 | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
VDC Data
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Np | Module Address | 0 | Optional |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Ap | Channel Address | TDC Data 1 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Ap | Channel Address | TDC Data 2 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Ap | Channel Address | TDC Data 3 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Np | Module Address | 0 | Optional |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Ap | Channel Address | TDC Data 1 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| Delineating Word |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Np | Module Address | 0 | Optional |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Ap | Channel Address | TDC Data 1 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| Delineating Word |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
・Default Setting: Np=1, Ap=0, Delileating=0
・Optional Pattern is defined by each 4298 Controler.
・Delineating Word is sent by each 4298 Controler.
3.2 Input Register
Region Header Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Region ID=0x02 | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Input Register Data (EventID)
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|16 |15 |14 |13 |12 |11 |10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
o Usually Region Size is 1
o Each bit of data corresponds to each event ID.
3.3 ADC
Region Header Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Region ID=0x03 | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
ADC Data
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
o The bit number of ADC data depends on the ADC module you use.
3.4 TDC
Region Header Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Region ID=0x04 | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
TDC Data
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
o The bit number of TDC data depends on the TDC module you use.
o In the case of Phillips TDC, the upper 4 bits represent a channel
in a moudle.
3.5 4299-PCOSIII(MWPC) Old Format (disposed)
Region Header Word (Added by 4299)
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Region ID=0x05 | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
MWPC Data
Clusterized Data (Width=1)
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | Logical Address | Channel(Wire) | h |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Clusterized Data (Width>1)
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 1 | 0 | Width |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | Logical Address | Channel(Wire) | h |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
... (Clusterized Data) ....
Delimiter Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 1 | 1 | PCOS Number | 0 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
... (Clusterized Data) ....
Delimiter Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 1 | 1 | PCOS Number | 0 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
o The delimiter word is sent by each PCOS Controler.
Each PCOS Controler has its own (defined) PCOS Number.
o Each Delay&Latch module has its own (defined) Logical Address.
o 'h' means half bit.
o Note that there is no width information when width=1.
3.6 Scaler
Region Header Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Region ID=0x06 | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Scaler Data
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| Lower 16bits |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | Upper 8bits |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| Lower 16bits |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | Upper 8bits |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
o The unit of the region size is word.
Therefore, the number of scalers is a half of the region size.
3.7 LeCroy 3377 (Drift Chamber TDC)
Region Header Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Region ID=0x07 | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Module Header Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 1 |wd |Event Num. |le | res | Module ID |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
TDC Data
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | TDC Channel | TDC Data 1 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | TDC Channel | TDC Data 2 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | TDC Channel | TDC Data n |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Module Header Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 1 |wd |Event Num. |le | res | Module ID |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
TDC Data
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | TDC Channel | TDC Data 1 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | TDC Channel | TDC Data n |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
o wd: Word Format
0 = Single Word Format (default)
1 = Double Word Format
o Event Num.: Event Number
o le: Leading/Trailing Edge
0 = Leading Edge Only (default)
1 = Both Leading and Trailing Edges
o res: Resolution
0 = 0.5 ns
1 = 1.0 ns (default)
2 = 2.0 ns
3 = 4.0 ns
o Module ID: Module ID (8bits)
MSB 7 6 5 4 3 2 1 0
+-------+-------+-------+-------+-------+-------+-------+-------+
|GR/LAS | VDC# | Wire | 3377 TDC ID |
+-------+-------+-------+-------+-------+-------+-------+-------+
7bit: GR/LAS (MSB)
0 = GR
1 = LAS
6-4bits: VDC/MWDC and Wire
(654)
000 = X of Front VDC
001 = X of MWDC
010 = U of Front VDC
011 = V of Front VDC
100 = X of Rear VDC
101 = Y of MWDC
110 = U of Rear VDC
111 = V of Rear VDC
3-0bit: 3377TDC ID
starts with 0
* Module IDs of 70-7F and F0-FF(Hex) are reserved for special use.
3.8 4299-4298(VDC) New Format (disposed)
Region Header Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Region ID=0x09 | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Added by 4299
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| Optional(1) | word count |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
VDC Data
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Np | Module Address | 0 | Optional(2) |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Ap | Channel Address | TDC Data 1 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Ap | Channel Address | TDC Data 2 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Ap | Channel Address | TDC Data 3 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Np | Module Address | 0 | Optional(2) |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Ap | Channel Address | TDC Data 1 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| Delineating Word |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Np | Module Address | 0 | Optional(2) |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Ap | Channel Address | TDC Data 1 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| Delineating Word |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
o In default setting, Np=1, Ap=0 and Delileating=0.
o Each 4299 Data Bus Interface has its own (defined) Optional
Pattern(1). It is usually 1.
o Each 4298 TDC Controller has its own (defined) Optional
Pattern(2).
o The Delineating Word is sent by each 4298 TDC Controler.
3.9 4299-PCOSIII(MWPC) New Format
Region Header Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Region ID=0x0a | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Added by 4299
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| Optional | word count |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
MWPC Data
Clusterized Data (Width=1)
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | Logical Address | Channel(Wire) | h |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Clusterized Data (Width>1)
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 1 | 0 | Width |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | Logical Address | Channel(Wire) | h |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
... (Clusterized Data) ....
Delimiter Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 1 | 1 | PCOS Number | 0 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
... (Clusterized Data) ....
Delimiter Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 1 | 1 | PCOS Number | 0 |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
o Optional pattern added by 4299 is usually 5.
o The delimiter word is sent by each PCOS Controler.
Each PCOS Controller has its own (defined) PCOS Number.
o Rach Delay&Latch module has its own (defined) Logical Address.
o 'h' means half bit.
o Note that there is no width information when width=1.
o PCOS Logical Address (9bits)
8 7 6 5 4 3 2 1 0
+-----+-----+-----+-----+-----+-----+-----+-----+-----+
| Plane | MDPC# | Latch Station |
+-----+-----+-----+-----+-----+-----+-----+-----+-----+
8-7bits: Wire (Plane)
(87)
00 = X Plane
01 = U Plane
10 = V Plane
11 = Not Used
6-5bits: MWDC Number
(65)
00 = MWDC 1
01 = MWDC 2
10 = MWDC 3
11 = MWDC 4
3-0bits: Delay&Latch(LeCroy2731A) Station Number
3.10 ADC-LAS
Region Header Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Region ID=0x0b | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
ADC Data
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
o The bit number of ADC data depends on the ADC module you use.
3.11 TDC-LAS
Region Header Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Region ID=0x0c | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
TDC Data
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
o The bit number of TDC data depends on the TDC module you use.
o In the case of Phillips TDC, the upper 4 bits represent a channel
in a moudle.
3.12 FERA(ADC)
(Compress Mode)
Region Header Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Region ID=0x0d | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
FERA Header
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 1 | Word Count | 0 | Virtual Station Number |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
FERA Data
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | Channel | ADC Data |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | Channel | ADC Data |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
(No-Compress Mode)
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Region ID=0x0d | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
FERA Data
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | ADC Data |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | ADC Data |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
o The default setting is the compress mode.
o Each FERA 4300B has its own (defined) Vertual Station Number.
o Word Count=0 means Word Count=16.
o When overflow, Data=2047.
o Vertual Station Number
MSB 7 6 5 4 3 2 1 0
+-------+-------+-------+-------+-------+-------+-------+-------+
| A/T | 0 | 0 |GR/LAS | FERA ID |
+-------+-------+-------+-------+-------+-------+-------+-------+
7bit: ADC/TDC
0 = FERA - ADC
1 = FERET - TDC
4bit: GR/LAS (MSB)
0 = GR
1 = LAS
3-0bit: FERA ID
starts with 1
0x01 ... GR FERA for Scintillators and FPP Hodoscope Y
0x02 ... GR FERA for FPP Hodoscope X
0x11 ... LAS FERA for Scintillators
3.13 FERET (TDC)
(Compress Mode)
Region Header Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Region ID=0x0e | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
FERA Header
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 1 | Word Count | 0 | Virtual Station Number |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
FERET Data
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | Channel | TDC Data |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | Channel | TDC Data |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
(No-Compress Mode)
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Region ID=0x0e | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
FERET Data
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | TDC Data |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
....
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| 0 | TDC Data |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
o The default setting is the compress mode.
o Each FERA 4300B has its own (defined) Vertual Station Number.
o Word Count=0 means Word Count=16.
o When overflow, Data=2047.
o Vertual Station Number
MSB 7 6 5 4 3 2 1 0
+-------+-------+-------+-------+-------+-------+-------+-------+
| A/T | 0 | 0 |GR/LAS | FERA ID |
+-------+-------+-------+-------+-------+-------+-------+-------+
7bit: ADC/TDC
0 = FERA - ADC
1 = FERET - TDC
4bit: GR/LAS (MSB)
0 = GR
1 = LAS
3-0bit: FERA ID
starts with 1
0x81 ... GR FERET for Scintillators and FPP Hodoscope Y
0x82 ... GR FERET for FPP Hodoscope X
0x91 ... LAS FERET for Scintillators
3.14 Check Sum
Region Header Word
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
|Region ID=0x0F | Region Size |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
Check Sum Data
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
| |
+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+
・Usually Region Size = 1.
・Check Sum Data is specified so as to the lower 16 bits of the sum
of the all data word (16bit) becoems zero.
4) Example Block
Typical blocks are shown below.
4.1 Run Start Block
ffff ... Block Header ID
0006 ... Block Header Size
0f01 ... Run Start Block ID
0029 ... (Block Size) - (Block Header Size)
0000 ... Block Number
0000 ... Number of Events
0000 ... Reserved Word
0100 ... Data Format Version (1.0)
0304 ... Byte Order
0102 ... |
0000 ... Time (the num. of secs since the Epoch, 00:00:00 GMT 1 Jan 1970)
0000 ... |
(Note that above two words are in the big endian byte order)
0001 ... Run Number
5043 ... Comment (PC)
4f53 ... | (OS)
2044 ... | ( D)
656c ... | (el)
6179 ... | (ay)
2043 ... | ( C)
6865 ... | (he)
636b ... | (ck)
2e20 ... | (. )
4465 ... | (De)
6c61 ... | (la)
793d ... | (y=)
3435 ... | (45)
306e ... | (0n)
7365 ... | (se)
6320 ... | (c )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
ffef ... Block Trailer ID
0002 ... Block Trailer Size
4.2 Run End Block
ffff ... Block Header ID
0006 ... Block Header Size
0f02 ... Run End Block ID
0029 ... (Block Size) - (Block Header Size)
0000 ... Block Number
0000 ... Number of Events
0000 ... Reserved Word
0100 ... Data Format Version (1.0)
0304 ... Byte Order
0102 ... |
0000 ... Time (the num. of secs since the Epoch, 00:00:00 GMT 1 Jan 1970)
0000 ... |
(Note that above two words are in the big endian byte order)
0001 ... Run Number
5043 ... Comment (PC) same as run start block
4f53 ... | (OS)
2044 ... | ( D)
656c ... | (el)
6179 ... | (ay)
2043 ... | ( C)
6865 ... | (he)
636b ... | (ck)
2e20 ... | (. )
4465 ... | (De)
6c61 ... | (la)
793d ... | (y=)
3435 ... | (45)
306e ... | (0n)
7365 ... | (se)
6320 ... | (c )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
0000 ... | ( )
ffef ... Block Trailer ID
0002 ... Block Trailer Size
4.3 Data Block
ffff ... Block Header ID
0006 ... Block Header Size
0000 ... Data Block ID
1ea6 ... (Block Size) - (Block Header Size)
252d ... Block Number
006c ... Number of Events
ffdf ... Event Header ID
0006 ... Event Header Size
0000 ... Event ID
003c ... Event Size
0000 ... Event Number
0001 ... Number of Fields in This Event
ffcf ... Field Header ID
0004 ... Field Header Size
0000 ... Field ID
0038 ... Field Size
2001 ... Input Register Region Header (Region Size=1) from FCET-FERA
1c3a ... Input Register Data
(GR-FPP-2ndLevel Event, Spin Down, Cave-Hata out, WN-Hata out
2ndLevel-Accept)
d007 ... FERA Region Header (Region Size=7)
b001 ... FERA Header (WC=6, VSN=1 GR-FERA#1)
0096 ... FERA DATA #1 (ch.0 ADC=0x96)
0873 ... FERA DATA #2 (ch.1 ADC=0x73)
1037 ... FERA DATA #3 (ch.2 ADC=0x37)
182e ... FERA DATA #4 (ch.3 ADC=0x2E)
2081 ... FERA DATA #5 (ch.4 ADC=0x81)
283b ... FERA DATA #6 (ch.5 ADC=0x3B)
d005 ... FERA Region Header (Region Size=5)
a002 ... FERA Header (WC=4, VSN=2 GR-FERA#2)
181e ... FERA DATA #1 (ch.4 ADC=0x1E)
20e9 ... FERA DATA #2 (ch.5 ADC=0xE9)
5828 ... FERA DATA #3 (ch.11 ADC=0x28)
60a0 ... FERA DATA #4 (ch.12 ADC=0xA0)
e006 ... FERET Region Header (Region Size=6)
a881 ... FERET Header (WC=5, VSN=81 GR-FERET#1)
024b ... FERET DATA #1 (ch.0 TDC=0x24B)
0a85 ... FERET DATA #2 (ch.1 TDC=0x285)
1b08 ... FERET DATA #3 (ch.3 TDC=0x308)
2287 ... FERET DATA #4 (ch.4 TDC=0x287)
2b16 ... FERET DATA #5 (ch.5 TDC=0x316)
e003 ... FERET Region Header (Region Size=3)
9082 ... FERET Header (WC=4, VSN=82 GR-FERET#2)
2231 ... FERET DATA #1 (ch.4 TDC=0x231)
6254 ... FERET DATA #2 (ch.12 TDC=0x254)
2001 ... Input Register Region Header (Region Size=1) from FCET-3377
1fff ... Input Register Data
7011 ... VDC Region Header (Region Size=17)
8961 ... 3377 Header (ID=61 GR-VDC-Rear-U-1)
5d79 ... TDC Data (ch.23, TDC=179)
61fa ... TDC Data (ch.24, TDC=1FA)
659d ... TDC Data (ch.25, TDC=19D)
8941 ... 3377 Header (ID=41 GR-VDC-Rear-X-1)
3559 ... TDC Data (ch.13, TDC=159)
39e7 ... TDC Data (ch.14, TDC=1E7)
3da9 ... TDC Data (ch.15, TDC=1A9)
8921 ... 3377 Header (ID=21 GR-VDC-Front-U-1)
6981 ... TDC Data (ch.26. TDC=181)
6e03 ... TDC Data (ch.27. TDC=202)
71a3 ... TDC Data (ch.28. TDC=1A3)
8901 ... 3377 Header (ID=01 GR-VDC-Front-X-1)
4166 ... TDC Data (ch.16. TDC=166)
45ec ... TDC Data (ch.17. TDC=1EC)
49a2 ... TDC Data (ch.18. TDC=1A2)
8900 ... 3377 Header (ID=01 GR-VDC-Front-X-0)
a008 ... PCOS Region Header (Region Size=10)
5007 ... 4299 Header (Optional=5, WC=7)
8002... Cluster Width (=2)
3209 ... Wire U3-209
39fa ... Wire U4-1FA
c800 ... Delimiter (PCOS Number=2)
52cc ... Wire V3-2CC
5b18 ... Wire V4-318
cc00 ... Delimiter (PCOS Number=3)
ffdf ... Event Header ID
0006 ... Event Header Size
0000 ... Event ID
004a ... Event Size
0001 ... Event Number
0001 ... Number of Fields in This Event
...
ffdf ... Event Header ID
0006 ... Event Header Size
0001 ... Event ID (Block End Event)
004a ... Event Size
014b ... Event Number
0001 ... Number of Fields in This Event
ffcf ... Field Header ID
0004 ... Field Header Size
0000 ... Field ID
0046 ... Field Size
2001 ... Input Register Region Header (Region Size=1)
8000 ... Input Register Data (Block End Event)
6020 ... Scaler Region Header (Region Size=20)
0000 ... Scaler = 0
0000 ... |
cc66 ... Scaler = 0x0008cc66
0008 ... |
...
ffef ... Event Trailer ID
0002 ... Event Trailer Size