Title: RICH Beam Test 05
1RICH Beam Test 05
2Cable Connection
PF01-36 20?
FF01-36 50?
FM01-36 30?/40?
MM01-30 10?
HM01-36 10?
3Run Header Block
- A Run Header Block
- Magic cookie (01 02 03 04) I4
- Length of the block I4
- Block ID (1) I4
- RUN_TYPE type of the run C80
- VERSION version C80
- RUN ID run ID C80
- START_TIME time stamp C80
- CONFIGURATION configuration file C80
- GEOMETRY geometry file C80
- START_COMMENT comments C80
-
- FF 00 00 00 I4
Run type RAW_DATA, SIMULATION, PEDESTAL,
RANDOM_TRIGGER,
4Event Block
- B Event Block
- Magic cookie ( 01 02 03 04) I4
- Length of the block I4
- Block ID (2) I4
- Event number I4
- Super block ID
I4 - Number of FEH wit hits I4
- Extended BCO time stamp I4
- Hit data word 1 I4
- Extended BCO time stamp I4
- Hit data word 2 I4
-
- FF FF 00 00 I4
HIT Data Format 0010 pppp 00bb bbbb wwww hhhh
hhhh hhhh
12 cells per word, 11 words per hybrid (11 x 12
132) 15 hybrids maximum
5Run Trailer Block
- C Run Trailer Block
- Magic cookie ( 01 02 03 04) I4
- Length of the block I4
- Block ID (99) I4
- N_EVENTS number C80
- N_RECORDS number C80
- END_TIME time stamp C80
- END_COMMENT comment C80
-
- FF FF FF FF I4
6Data Formatter
Triggered header word 1fff ffee eeee eeee eeee
eeee eeee eeee. Fine BCO count Extended BCO count.
Data to PC Triggered/untriggered header word Hit
data word Hit data word Hit data word .
Untriggered header word 0001 00ee eeee eeee eeee
eeee eeee eeee Extended BCO count.
Hit data word 0010 pppp 00bb bbbb wwww hhhh hhhh
hhhh Plane ID, or hybrid ID. BCO counter from
hybrid Word ID, in total 11 words per hybrid
(11x12132), word ID from 0 to 10. Hit
information, 1 bit per cell, 12 cells per word.
Data from FEH 00 0000 bbbb bb10 FEH BCO
count hh hhhh hhhh hh11 channel 0-11 00 00hh
hhhh hh11 channel 120-127
7Offline Analysis
- Executive file rich_tb
- Reads in data file, decodes event, generate
ntuple, provides event display, - Input control namelist file rich_tb.nml
- CONTROL
- data_in_file(1) 'data/BEAM_354.dat'
- hbk_out_file ' '
- map_file 'map_cell.dat'
- hot_file 'hot_cell.dat'
- max_evts 0
- ncycle 1
- nskip 0
- dump_opt 7
- drop_feh(1) 0
- max_hit_cut 1000
- min_hit_cut 0
- END
- PAW macro file manip.kumac
- Generates cell map, 2D accumulative hit plot,
single event display and so on.
Support multiple input files Default is
run_xxxxx.hbk Channel ID to geometry
conversion To remove noisy channels Maximum event
to study, 0 means all. Cycle to dump a event
(more follow) Number of events to skip Option in
event dump (more follow) Control removal of a FEH
8Offline Source Code
9Event Dump
- Controlled by cyclegt0, and dump_opt parameters.
event 100 dumpgtevent Length of this block
29 integer numbers
25 hit word
11 Number of total hits 2 Numb of
skimmed hits 2 Num of hit FEH(data)
1 Numbe of skimmed FEH 1 FEH 2
has 2 hits
event 100 dumpgthit Number of total hits
2 ihit FEH cell is_hot 1 2 14
0 2 2 18 0
10Event Display from DUMP
event 200 dumpgt display 2000
event 200 dumpgt display
11Hit Map From manip.kumac
12CWN Ntuple
- All integer variables in ID99.
- evt_num, Event ID (serial number in
analysis) - evt_id Event ID (saved in data)
- bco_id Extended BCO ID
- sb_id Super Block ID
- rich_nhit Number of hits in this event
- rich_ifeh(rich_nhit) Front end hybrid ID of
the hit - rich_cell(rich_nhit) Channel (cell) ID of the
hit - rich_ihot(rich_nhit) Whether it is from a hot
cell - More entries can be added later
13BAR2 Register
14BAR2 Command
15BAR5 Register
16BCO Issue
Run 382 Red first 67,000 events, Plane 2 34798
hits Out of 47510 events 19484 no hit word Plane
4 has nearly 1 hits per event Blue all 314,000
events