www-server:/usr/www/docs/Divisions/np1/tamidaq/info/raw_data.txt.v1.0 RCNPDAQ データ仕様 (RAW DATA) version 1.0 17-JUL-1997 by A.Tamii 0) 序 以下の文章は Research Center for Nuclear Physics (RCNP) における 新データ収集システムにおけるローデータの仕様です。 イベントビルド後のデータについては別紙(data_format)を参考にし て下さい。 1) ブロック構造 各カウンタからのデータはそれぞれ 16 KByte の固定長のブロックにブロック にまとめられています。これらをひとまとめにしたものが、全系における1ブロ ック分のデータということになります。 いくつの系列のデータが存在するかは実験に依存します。 下にいくつかの例を示します。 ○ GR 標準実験 size data ┌────┐ │ Start │ 16KB ffff .... └────┘ ┌────┐ │ Scaler │ 16KB ffff .... ├────┤ │ GRFERA │ 16KB cccc .... ├────┤ │ GR3377 │ 16KB bbbb .... └────┘ ┌────┐ │ Scaler │ 16KB ffff .... ├────┤ │ GRFERA │ 16KB cccc .... ├────┤ │ GR3377 │ 16KB bbbb .... └────┘ ...... ┌────┐ │ END │ 16KB ffff .... └────┘ ○ GR + FPP 実験 size data ┌────┐ │ Start │ 16KB ffff .... └────┘ ┌────┐ │ Scaler │ 16KB ffff .... ├────┤ │ GRFERA │ 16KB cccc .... ├────┤ │ GR3377 │ 16KB bbbb .... ├────┤ │ GRPCOS │ 16KB aaaa .... └────┘ ┌────┐ │ Scaler │ ├────┤ ...... ○ GR + LAS 実験 size data ┌────┐ │ Start │ 16KB ffff .... └────┘ ┌────┐ │ Scaler │ 16KB ffff .... ├────┤ │ GRFERA │ 16KB cccc .... ├────┤ │ LASFERA│ 16KB cccc .... ├────┤ │ GR3377 │ 16KB bbbb .... ├────┤ │ LAS3377│ 16KB bbbb .... └────┘ ┌────┐ │ Scaler │ ├────┤ ...... ○ GR + SSD 実験 size data ┌────┐ │ Start │ 16KB ffff .... └────┘ ┌────┐ │ Scaler │ 16KB ffff .... ├────┤ │ J11-SSD│ 16KB ffff .... ├────┤ │ GRFERA │ 16KB cccc .... ├────┤ │ GR3377 │ 16KB bbbb .... └────┘ ┌────┐ │ Scaler │ ├────┤ ...... 2) 各系統のデータ構造 各系統のデータ構造について解説します。 2.1 Run Start Block ランスタートブロックについては別紙(data_format)を参照して下さい。 2.2 Run End Block ランエンドブロックについては別紙(data_format)を参照して下さい。 2.3 Scaler Block データ構造はイベントビルド後のデータ構造に準拠しています。 別紙(data_format)を参照して下さい。 2.4 J11 Block データ構造はイベントビルド後のデータ構造に準拠しています。 別紙(data_format)を参照して下さい。 2.5 FERA Block FCET Header Word ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ 0xCCCC │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ FCET Event Counter Word ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ Event Counter │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ FCET Input Register Word ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ Input Register Data │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ FERA Header ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ 1│ Word Count │ 0 │ Virtual Station Number │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ FERA Data ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ 0│ Channel │ ADC Data │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ .... ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ 0│ Channel │ ADC Data │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ FERA Header ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ 1│ Word Count │ 0 │ Virtual Station Number │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ FERA Data ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ 0│ Channel │ ADC Data │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ .... ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ 0│ Channel │ ADC Data │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ .... FCET Header Word ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ 0xCCCC │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ .... ・Virtual Station Number は各 FERA (4300B) 毎に設定する。 ・Word Counter=0 の時、Word Count=16 を表す ・オーバーフローの時 Data=2047 (Overflow Suppress される) Virtual Station Number MSB 7 6 5 4 3 2 1 0 LSB ┌───┬───┬───┬───┬───┬───┬───┬───┐ │ 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 0x81 ... GR FERET for Scintillators and FPP Hodoscope Y 0x82 ... GR FERET for FPP Hodoscope X 0x91 ... LAS FERET for Scintillators 2.6 3377 Block FCET Header Word ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ 0xBBBB │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ FCET Event Counter Word ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ Event Counter │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ FCET Input Register Word ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ Input Register Data │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ 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 │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ .... FCET Header Word ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ 0xBBBB │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ .... wd: Word Format ○ 0 = Single Word Format 1 = Double Word Format Event Num.: Event Number le: Leading/Trailing Edge ○ 0 = Leading Edge Only 1 = Both Leading and Trailing Edge res: Resolution 0 = 0.5 nsec ○ 1 = 1.0 nsec 2 = 2.0 nsec 3 = 4.0 nsec Module ID: Module ID (8bits) モジュール ID MSB 7 6 5 4 3 2 1 0 LSB ┌───┬───┬───┬───┬───┬───┬───┬───┐ │GR/LAS│ VDC# │ Wire │ 3377 TDC ID │ └───┴───┴───┴───┴───┴───┴───┴───┘ 7bit: GR/LAS (MSB) 0 = GR 1 = LAS 6bit: VDC 0 = Front VDC 1 = Rear VDC 5-4bit: Wire (54) 00 = X 01 = (Reserved) 10 = U 11 = V 3-0bit: 3377TDC ID starts with 0 * Module IDs of 70-7F and F0-FF(Hex) are reserved for special use. モジュール ID 追加規定 (1997-JUN) 97年7月に、LAS-FPP 用の MWDC が導入されることに伴い、次の モジュール ID を追加規定した。 7-4bit: (7654) 1001 = LAS MWDC X 1101 = LAS MWDC Y (このモジュール ID の追加は上記の規定に抵触しない。) 2.7 3377 Block RDTM Header Word ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ 0xAAAA │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ RDTM Event Counter Word ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ Event Counter │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ 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│ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ ... (MWDC Data) .... Delimiter Word ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ 1│ 1│ PCOS Number │ 0 │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ ... (MWDC Data) .... Delimiter Word ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ 1│ 1│ PCOS Number │ 0 │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ RDTM Header Word ┌─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┬─┐ │ 0xAAAA │ └─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┴─┘ ..... ・Delimiter Word は Master PCOS Controler ごとに送られる(現在2台)。 PCOS Number は PCOS Controler に設定される値。 ・Logical Address は各 Delay&Latch ごとに設定される。 ・h はハーフビットを表す。 ・Width=1 の時には幅の情報は来ないことに注意 PCOS Logical Address MSB LSB ┌─┬─┬─┬─┬─┬─┬─┬─┬─┐ │8│7│6│5│4│3│2│1│0│ └─┴─┴─┴─┴─┴─┴─┴─┴─┘ └─┘ └─┘ └───────┘ 傾き MWPC# Latch Station 8-7 bit ... 面の傾き ( 8 7 ) 0 0 - X 面 0 1 - U 面 1 0 - V 面 1 1 - Not Used 6-5 bit ... MWPC 番号 ( 6 5 ) 0 0 - MWPC 1 0 1 - MWPC 2 1 0 - MWPC 3 1 1 - MWPC 4 4-0 bit ... Delay&Latch(LeCroy2731A) Station 番号