D0note 3537

Draft 3.4

5/22/01

 

Muon Data Formats to L2 & L3

B. Baldin, O. Bardon, J.M. Butler, M. Fortner, S. Hansen, E. Machado, N. Parashar, V. Podstavkov, C. Rotolo, S. Uvarov, D. Wood

 

Introduction.............................................................................................................................. 4

L2 Format (General)................................................................................................................ 4

L2 Muon Module Header Format............................................................................................. 4

L3 Muon Crate Header Format................................................................................................ 7

L3 Muon Module Header Format............................................................................................. 7

L3 Muon Module Trailer Format............................................................................................. 8

PDT (Proportional Drift Tubes) Formats................................................................................. 9

General PDT Hardware Description.................................................................................... 9

PDT L2 Data Format.......................................................................................................... 10

PDT L3 Data Format.......................................................................................................... 12

Scintillators........................................................................................................................... 15

General Scintillator Hardware Description....................................................................... 15

L2 Scintillator Data Format................................................................................................ 16

L3 Scintillator Data Format................................................................................................ 23

MDT (Mini-drift Tubes) Formats.......................................................................................... 25

General MDT Hardware Description................................................................................. 25

L2 MDT Data Format......................................................................................................... 25

L3 MDT Data Format......................................................................................................... 27

MCENs (Muon Cetroids)....................................................................................................... 29

L2 MCEN Data Format...................................................................................................... 29

L3 MCEN Data Format...................................................................................................... 30

Notes on alignment and calibration constants........................................................................ 32

1. L3 Alignment Constants.................................................................................................. 32

 

Differences from V 1.0:

1.     All new L2 formats (1 16-bit word of complete address + 1 16-bit word of data for each hit).

2.     Major revision of  MDT L3 format.

3.     MCEN formats added.

 

Differences from V 2.0:

1.     Superfluous word counts removed..

2.     MCEN formats updated per JMB/EM.

3.     “DSP” removed from document title.

 

Differences from V 2.1:

1.     VBD word count and padding trailer added to L3 header.

2.     Psi offsets added to alignment constants.

3.     Second crossing number word added to keep track of all 3 version of the crossing number.

4.     Some bits defined in error/status register (calib, 1/n).

5.     Pad word counts per wire included in PDT L3 format.

6.     Explictly state which word counts include themselves.

Difference from V 2.2:

1.     Extra crossing numbers removed from L2 and L3 headers (back to V2.1).

2.     Fixed small errors:

·       Spurious “Data Word Count” removed from MCEN L2 format.

·       MTD tube address tables fixed.

·       CMSC module numbers corrected.

·       Several typos fixed.

3.  MCEN hit maps changed to 16-bits in L2 format.

Difference from V 2.3:

1.     The version number is 3.0, preceeded by V 2.3.

2.     The header length of 8 words has been corrected to 6 words in both the L2 and L3 Header Block Words description.

3.     A brief description of the 3 subdetectors namely, PDTs, Scintillators and MDTs is given after the L2 Format (General) heading.

4.     In the PDT L3 Data Format, the pad hit count has been reduced to 2 bits in the Hit Data Word Count. 

5.     In the L2 Scintillator Data Format, Time has been increased to 15 bits and spare bit removed.

6.     In the L3 Scintillator Data Format, the first word of Hit Channel Count has been split into 2 words of Hit Channel Count and SFE Hit #, the latter increased to 4 bits.

7.     Some additional comments have been added at few places to make things more clear and a few other numbers corrected.

8.     Appropriate references are mentioned for TZeros etc.

Differences between V3.1 and V3.0:

1.     Module numbers of FMSC crates are updated.

2.     A description of the L3 muon crate header is added.

3.     PDT orientations are described.

4.     The exceptional counters in CMSC (bottom-C, side-B, etc.) are itemized with their corresponding SFEs.

Differences between V3.2 and V3.1:

1.     MCEN L3 format corrected (to look more like L2).

2.     PMT numbers updated for CMSC-A and FMSC to agree with cabling notes.

3.     Local phi index added to time word in L2 scint format.

4.     A clear description of the Module ID is given.

Differences between V3.3 and V3.2:

1.     L3 SFE hit word changed so that the number of SFE’s  hit is in the lowest four bits.

2.     L3 SFE address word changed to include a hit count for each SFE

3.     Time and local phi word changed for L3 scint to give finer time resolution

4.     Crate header word count moved to first word, and crate word count moved to second word

5.     Wire length constant added to hit count word for L3 PDT data

6.     Orientation information corrected for PDT’s 115,116,135,136

Difference between V3.4 and V3.3;

1.     maximum number of MDC in a crate corrected from 14 to 12

2.     fixed ambiguous description of SFE count in scint L3 header


Introduction

This note describes the data formats produced in the front-end Digital Signal Processors (DSPs) of the muon system.  The DSPs send data to both L2 and L3, with specific formats for each.

For a general description of the data processing in the DSP (ADSP-21csp01) for data readout, buffering and formatting, refer to the D0 Note 3655.

For details on the hardware or electronics of the detectors, refer to the D0 Note 3299.

For details on the PDT data processing in the DSP, refer to the D0 Note 3659.

For a spec and brief description on the buffering scheme of the DSP, refer to the D0 Note 3674.

 

 

L2 Format (General)

The level 2 input DSPs build up 32-bit words, each of which must fully specify the address and relevant data for a hit.  The readout DSPs feed these to Level-2 as two 16-bit words, the first of which gives the complete address of the object hit (PDT cell, scint counter, or MDT 8-cell tube), and the second word of which contains and other relevant information (drift distance, time of hit...).  Since the addresses in the first word are complete, they contain some information which is redundant with the module ID in the header.  The module ID is kept in the header for diagnostic purposes and to make it uniform with the Level 3 headers.

 

L2 Muon Module Header Format

Common to L2  data from all muon subsystems.

 

16-bit Word Count (FE)

Module ID

Crossing #

Turn #

Event Status Register I

Event Status Register II

Front End Word Count:

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

FE word count

FE word count: Inclusive number of 16-bit words in the data block.

The header length (6 words) is included in the count, including the word count word itself.

 

 

Module ID:

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

Layer

Barrel

Octant

 

The module ID is a hexadecimal representation , where the above three fields take the following range of values.

1. Layer (index of r) = 0-2 (2 bits)

 

            A-layer = 0

            A&B-layer (combined) = 0

            B-layer = 1

            C-layer = 2

 

2. Barrel (index of eta) = 0-9 (4 bits)

            PDT = 0-4 (north to south)

            CMSC = 5

            MDT north, MCCM north = 6

            FMSC north = 7

            MDT south, MCCM south = 8

            FMSC south = 9

 

3. Octant (index of phi) = 0-9 (4 bits)

 

            PDT = 0-7

            MDT = 0,2,4,6

            CMSC = 0,1,2,3,5,6 (0 includes oct 7, 3 includes oct 4)

            FMSC-A&B = 0,2,4,6

            FMSC-C east = 8

            FMSC-C west = 9

            MCCM = 8

 

 

Crossing # :

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

Spare

Event crossing # (L1)

An error bit is set in the Event Status Register I,  if the Local crossing # from the counter on the Control Board (PDT)/VME crate (MDT, Scintillators), differs from the L1 event crossing number from the TFW.

 

 

Turn #:

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

Turn #

Local turn # from the Control Board/VME crate, as the case may be.

 

Event Status Register I:

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

alignment const. set ID

error / status bits

 

Bit 0 = calibration data

Bit 1 = 1/n data (MCENs)

Bit 2 = L2 buffers full (0 normal, 1 when all L2 output buffers full)

Bit 3 = crossing number mismatch at L1 (0 normal, 1 mismatch)

Bit 4 = L3 buffers full (0 normal, 1 when all L3 buffers are full) ); only filled in L3 version of the header

Bit 5 = crossing number mismatch at L2 (0 normal, 1 mismatch); only filled in L3 version of the header

Bits 6-9 are defined by each subsystem.

Bits 10-15 = Alignment const. set ID: 6 bits → up to 63 sets (~10 alignment sets in run 1).

 

 

Event Status Register II:

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1