Presentation is loading. Please wait.

Presentation is loading. Please wait.

BTeV Pixel Detector Testbeam Data File Format Based on discussion (06/27/03) attended by Lynn Garren, Rob Kutschke, Simon Kwan, Charles Newsom, Lorenzo.

Similar presentations


Presentation on theme: "BTeV Pixel Detector Testbeam Data File Format Based on discussion (06/27/03) attended by Lynn Garren, Rob Kutschke, Simon Kwan, Charles Newsom, Lorenzo."— Presentation transcript:

1 BTeV Pixel Detector Testbeam Data File Format Based on discussion (06/27/03) attended by Lynn Garren, Rob Kutschke, Simon Kwan, Charles Newsom, Lorenzo Uplegger, Jianchun Wang, Dehong Zhang JC Wang Testbeam meeting 07/03/03

2 06/27/032 General Introduction  A data file is made of blocks, starting with run header block, ending with run trailer block, and many event blocks in between.  ASCII strings and binary integers coexist in header and trailer blocks.  There are only binary numbers (integer or float) in event blocks.  Each block has a magic cookie, length of the block, and block ID at the beginning, and a block close number (e.g. 0xFF FF FF FF) at the end for search purpose.

3 06/27/033 Data File Structure Sequencer of blocks in different type of files  Raw data file from DAQ:ABBB…BC  MC data file from simulation:ABDBD…BDC  Track summary file for alignment:AEEE…EC D: MC Track Block MC generated track information. One block per event. E: Track Summary Block Reconstructed raw track information. One block per raw track. A: Run Header Block Run header information. One block per file. B: Event Block Pixel hit information. One block per event. C: Run Trailer Block Run trailer information. One block per file.

4 06/27/034 Run Header Block A: Run Header Block 1.Magic cookie (0x01 02 03 04)I*4 2.Length of the block I*4 3.Block ID (1)I*4 4.“RUN_TYPE: type of the runC*80 5.“VERSION: version” C*80 6.“RUN ID: run ID” C*80 7.“START_TIME: time stamp” C*80 8.“CONFIGURATION: configuration file”C*80 9.“GEOMETRY: geometry file”C*80 10.“START_COMMENT: comments”C*80 11.… 12.FF 00 00 00I*4  Run type string: RAW_DATA, SIMULATION, TRACK_SUMMARY, PEDESTAL, RANDOM_TRIGGER, … …

5 06/27/035 Event Block B: Event Block 1.Magic cookie (0x 01 02 03 04)I*4 2.Length of the blockI*4 3.Block ID (2)I*4 4.Event numberI*4 5.Number of planes with hitsI*4 6.Time stamp of 1 st cell hitI*4 7.1 st cell hitI*4 8.… 9.Last cell hitI*4 10.FF FF 00 00I*4

6 06/27/036 Data Format 0001Plane000ColumnRowADC 0010Plane0000Column00RowADC 0011PlanexAdcColumnxRowxxBCO 0100PlaneADCColumn000RowBCO 0101PlaneADCColumn000RowBCO 0110PlaneADCColumn0RowBCO MC FPIX0 FPIX1 preFPIX2tb preFPIX2i FPIX2 MSB  The data format at front end electronics was designed by Brad. We will keep the format to minimize errors due to packing and unpacking. In MC simulation data we keep only one format for all types of detector. LSB

7 06/27/037 Run Trailer Block C: Run Trailer Block 1.Magic cookie (0x 01 02 03 04)I*4 2.Length of the block I*4 3.Block ID (99) I*4 4.“N_EVENTS: number”C*80 5.“N_RECORDS: number”C*80 6.“END_TIME: time stamp”C*80 7.“END_COMMENT: comment”C*80 8.…… 9.FF FF FF FFI*4

8 06/27/038 MC Track Block D: MC Track Block 1.Magic cookie (0x01 02 03 04)I*4 2.Length of the blockI*4 3.Block ID (3) I*4 4.Event numberI*4 5.Number of tracksI*4 6.P of the 1 st trackR*4 7.Q of the 1 st trackR*4 8.Mass of the 1 st trackR*4 9.Xslope of the 1 st trackR*4 10.Yslope of the 1 st trackR*4 11.Local X of the 1 st track at the 1 st planeR*4 12.Local Y of the 1 st track at the 1 st planeR*4 13.… 14.Local Y of the 1 st track at the last planeR*4 15.… 16.Local Y of the last track at the last planeR*4 17.FF FF FF 00I*4

9 06/27/039 Track Summary Block E: Track Summary Block 1.Magic cookie (0x 01 02 03 04)I*4 2.Length of the blockI*4 3.Block ID (4)I*4 4.Chi2 of the fitR*4 5.Number of planesI*4 6.1 st plane IDI*4 7.Local X of the 1 st planeR*4 8.Error X of the 1 st planeR*4 9.Local Y of the 1 st planeR*4 10.Error Y of the 1 st planeR*4 11.… 12.Error Y of the last planeR*4 13.FF FF 00 00I*4


Download ppt "BTeV Pixel Detector Testbeam Data File Format Based on discussion (06/27/03) attended by Lynn Garren, Rob Kutschke, Simon Kwan, Charles Newsom, Lorenzo."

Similar presentations


Ads by Google