1993 Beam Pulse Record Map

        +====================================================+
        |  B E A M     P U L S E     D A T A    R E C O R D  |
        +====================================================+

   +-----+-------------+-----------------+-----------------+-----------------+
   | 1 1 | 1 1 1 1 1 1 | 1 1 1 1 1 1 1 1 |                 |                 |
   | F E | D C B A 9 8 | 7 6 5 4 3 2 1 0 | F E D C B A 9 8 | 7 6 5 4 3 2 1 0 |
   +-----+-------------+-----------------+-----------------+-----------------+

   +-----+-------------+-----------------+-----------------+-----------------+
   | Inv | High Voltage|  Beamstrahlung  | S L D   B e a m | S L C   B e a m |
   +-----+-------------+-----------------+-----------------+-----------------+
 0 | B S | S N C S N C | . . . . . . . . | . . . D W C H E | . K B P C C P P |
   | I S | C C C E E D | . . . . . . . . | . . . c . . . . | . V e h L L L L |
   | B V | E E C D D C |   S O U T H     | . . . B O O O O | . M a a S S S S |
   | . . | C C . C C . | . . . . . . . . | . . . s v v v v | . . m s R L R L |
   | . . | . . . . . . | . . . . . . . . | . . . y r r r r | . . . e . . . . |
   +-----+-------------+-----------------+-----------------+-----------------+

   +-------------------------------------+-----------------------------------+
   |      W I S R D        E N E R G Y   |       T  O  R  I  O  D  S         |
   +-------------------+-----------------+-----------------+-----------------+
 1 |     Positron (8)  |    Electron (8) |   Positron  (8) |    Electron (8) |
   +-------------------+-----------------+-----------------+-----------------+

   +-------------------+-----------------------------------------------------+
   | Energy    Spread  |      R A N D O M                    A D C s         |
   +---------+---------+--------------------------+--------------------------+
 2 | Positron| Electron|    Pol Max Channel       |    Luminosity Channel    |
   |  (4)    |   (4)   |        (12)              |         (12)             |
   +---------+---------+--------------------------+--------------------------+

   +-------------------------------------------------------------------------+
   |        S L O T             S T A T E           V E C T O R              |
   +-------------------+-----------------+-----------------+-----------------+
 3 |   H a d r o n     |   B h a b h a   |   E n e r g y   |  R a n d o m    |
   +-------------------+-----------------+-----------------+-----------------+
 4 |     M u o n       |     W a b       |     R s v d     |    T r a c k    |
   +-------------------+-----------------+-----------------+-----------------+

*/

#define BPR$K_POL_ZERO  0x0       /* Zero  polarization                */
#define BPR$K_POL_RIGHT 0x1       /* Right polarization                */
#define BPR$K_POL_LEFT  0x2       /* Left  polarization                */
#define BPR$K_POL_ERROR 0x3       /* Error ......                      */


/* -------------------- SLC BEAM INFORMATION BYTE --------------------- */
#define BPR$V_SLC         0x00
#define BPR$V_SLC_POL     0x00     /* Polarization bits                 */

/* .................... for Source  Pockels Cell ...................... */
#define BPR$V_SLC_PLS     0x00     /* Source  Pockels Cell field        */
#define BPR$V_SLC_PLSR    0x00     /* Source  Pockels Cell set to Right */
#define BPR$V_SLC_PLSL    0x01     /* Source  Pockels Cell set to Left  */

/* .................... for Compton Pockels Cell ...................... */
#define BPR$V_SLC_CLS     0x02     /* Compton Pockels Cell field        */
#define BPR$V_SLC_CLSR    0x02     /* Compton Pockels Cell set to Right */
#define BPR$V_SLC_CLSL    0x03     /* Compton Pockels Cell set to Left  */

/* .................... for SLC PDU,KVM bits     ...................... */
#define BPR$V_SLC_PBK     0x04     /* SLC Phase/BeamOnNext/KVM          */
#define BPR$V_SLC_PHASE   0x04     /* Beam phase (which 60 Hz cycle)    */
#define BPR$V_SLC_BEAM    0x05     /* SLC PDU intent to deliver beam    */
#define BPR$V_SLC_KVM     0x06     /* Klystron Veto Module (bits or'd)  */
#define BPR$V_SLC_0x07    0x07     /* Reserved for future use           */
/* -------------------------------------------------------------------- */


/* -------------------- SLD BEAM INFORMATION BYTE --------------------- */
#define BPR$V_SLD         0x08
#define BPR$V_SLD_EOVR    0x08     /* KAL Energy Overflow               */
#define BPR$V_SLD_HOVR    0x09     /* KAL Hit    Overflow               */
#define BPR$V_SLD_COVR    0x0A     /* DC  Cell   Overflow               */
#define BPR$V_SLD_WOVR    0x0B     /* DC  Wire   Overflow               */
#define BPR$V_SLD_DCBSY   0x0C     /* DC  tracking trigger unavailable  */
#define BPR$V_SLD___0D    0x0D     /* Reserved to future use            */
#define BPR$V_SLD___0E    0x0E     /* Reserved to future use            */
#define BPR$V_SLD___0F    0x0F     /* Reserved to future use            */
/* -------------------------------------------------------------------- */

/* --------------------    BEAMSTRAHLUNG  ADC    ---------------------- */
#define BPR$V_BSM_SOUTH   0x10     /* Beamstrahlung signal from South   */
/* -------------------------------------------------------------------- */

/* -------------------- HIGH VOLTAGE/INVALIDATION --------------------- */
#define BPR$V_HIV         0x18     /* High Voltage Invalidiation bits   */
#define BPR$V_HIV_HV      0x18     /* High Voltage Off                  */

/* ...................... for drift chamber       ..................... */
#define BPR$V_HIV_DC      0x18     /* High Voltage Drift Chamber        */
#define BPR$V_HIV_CDC     0x18     /* High Voltage Drift Chamber Barrel */
#define BPR$V_HIV_NEDC    0x19     /* High Voltage Drift Chamber NEndCap*/
#define BPR$V_HIV_SEDC    0x1A     /* High Voltage Drift Chamber SEndCap*/

/* ...................... for crid                ..................... */
#define BPR$V_HIV_CRID    0x1B     /* High Voltage Crid                 */
#define BPR$V_HIV_CCC     0x1B     /* High Voltage Crid Barrel          */
#define BPR$V_HIV_NCEC    0x1C     /* High Voltage Crid North Endcap    */
#define BPR$V_HIV_SCEC    0x1D     /* High Voltage Crid South Endcap    */

/* ...................... invalid information bits..................... */
#define BPR$V_INV_INV     0x1E     /* Invalid information               */
#define BPR$V_INV_SSV     0x1E     /* Invalid information Slot State Vec*/
#define BPR$V_INV_BIB     0x1F     /* Invalid information Beam Info Blk */
/* -------------------------------------------------------------------- */

/* Sizes of non 1 length fields */
#define BPR$S_SLC         0x08
#define BPR$S_SLC_VALID   0x07
#define BPR$S_SLC_POL     0x04
#define BPR$S_SLC_PLS     0x02
#define BPR$S_SLC_CLS     0x02
#define BPR$S_SLC_PBK     0x03

#define BPR$S_SLD         0x08
#define BPR$S_SLD_VALID   0x04

#define BPR$S_BSM         0x08

#define BPR$S_HIV         0x08
#define BPR$S_HIV_HV      0x06
#define BPR$S_HIV_DC      0x03
#define BPR$S_HIV_CRID    0x03
#define BPR$S_HIV_INV     0x02

/* -------------------- SLC BEAM INFORMATION BYTE --------------------- */
#define BPR$M_SLC        (0xff << BPR$V_SLC)
#define BPR$M_SLC_VALID  (0x7f << BPR$V_SLC)
#define BPR$M_SLC_POL    (0x0f << BPR$V_SLC_POL)

/* .................... for Source  Pockels Cell ...................... */
#define BPR$M_SLC_PLS    (0x03 << BPR$V_SLC_PLS)
#define BPR$M_SLC_PLSR   (0x01 << BPR$V_SLC_PLSR)
#define BPR$M_SLC_PLSL   (0x01 << BPR$V_SLC_PLSL)

/* .................... for Compton Pockels Cell ...................... */
#define BPR$M_SLC_CLS    (0x03 << BPR$V_SLC_CLS)
#define BPR$M_SLC_CLSR   (0x01 << BPR$V_SLC_CLSR)
#define BPR$M_SLC_CLSL   (0x01 << BPR$V_SLC_CLSL)

/* .................... for SLC PDU,KVM bits     ...................... */
#define BPR$M_SLC_PBK    (0x07 << BPR$V_SLC_PBK)
#define BPR$M_SLC_PHASE  (0x01 << BPR$V_SLC_PHASE)
#define BPR$M_SLC_BEAM   (0x01 << BPR$V_SLC_BEAM)
#define BPR$M_SLC_KVM    (0x01 << BPR$V_SLC_KVM)
#define BPR$M_SLC_0x07   (0x01 << BPR$V_SLC_0x07)
/* -------------------------------------------------------------------- */


/* -------------------- SLD BEAM INFORMATION BYTE --------------------- */
#define BPR$M_SLD        (0xff << BPR$V_SLD)
#define BPR$M_SLD_VALID  (0x0f << BPR$V_SLD)
#define BPR$M_SLD_EOVR   (0x01 << BPR$V_SLD_EOVR)
#define BPR$M_SLD_HOVR   (0x01 << BPR$V_SLD_HOVR)
#define BPR$M_SLD_COVR   (0x01 << BPR$V_SLD_COVR)
#define BPR$M_SLD_WOVR   (0x01 << BPR$V_SLD_WOVR)
#define BPR$M_SLD_DCBSY  (0x01 << BPR$V_SLD_DCBSY)
#define BPR$M_SLD_0x0D   (0x01 << BPR$V_SLD_0x0D)
#define BPR$M_SLD_0x0E   (0x01 << BPR$V_SLD_0x0E)
#define BPR$M_SLD_0x0F   (0x01 << BPR$V_SLD_x00F)
/* -------------------------------------------------------------------- */


/* --------------------    BEAMSTRAHLUNG  ADC    ---------------------- */
#define BPR$M_BSM_SOUTH  (0xff << BPR$V_BSM_SOUTH)
/* -------------------------------------------------------------------- */


/* -------------------- HIGH VOLTAGE/INVALIDATION --------------------- */
#define BPR$M_HIV        (0xff << BPR$V_HIV)

/* ...................... for drift chamber       ..................... */
#define BPR$M_HIV_DC     (0x07 << BPR$V_DC)
#define BPR$M_HIV_CDC    (0x01 << BPR$V_HIV_CDC)
#define BPR$M_HIV_NEDC   (0x01 << BPR$V_HIV_NEDC)
#define BPR$M_HIV_SEDC   (0x01 << BPR$V_HIV_SEDC)

/* ...................... for crid                ..................... */
#define BPR$M_HIV_CRID   (0x07 << BPR$V_CRID)
#define BPR$M_HIV_CCC    (0x01 << BPR$V_HIV_CCC)
#define BPR$M_HIV_NCDC   (0x01 << BPR$V_HIV_NCDC)
#define BPR$M_HIV_SCDC   (0x01 << BPR$V_HIV_SCDC)

/* ...................... invalid information bits..................... */
#define BPR$M_INV        (0x03 << BPR$V_INV)
#define BPR$M_INV_SSV    (0x01 << BPR$V_INV_SSV)
#define BPR$M_INV_BIB    (0x01 << BPR$V_INV_BIB)
/* -------------------------------------------------------------------- */

/*   ENERGY / TOROID      */
#define BPR$V_TOROID_EM  0x00
#define BPR$V_TOROID_EP  0x08
#define BPR$V_ENERGY_EM  0x10
#define BPR$V_ENERGY_EP  0x18

#define BPR$S_TOROID_EM  0x08
#define BPR$S_TOROID_EP  0x08
#define BPR$S_ENERGY_EM  0x08
#define BPR$S_ENERGY_EP  0x08

#define BPR$M_TOROID_EM  (0xff << BPR$V_TOROID_EM)
#define BPR$M_TOROID_EP  (0xff << BPR$V_TOROID_EP)
#define BPR$M_ENERGY_EM  (0xff << BPR$V_ENERGY_EM)
#define BPR$M_ENERGY_EP  (0xff << BPR$V_ENERGY_EP)

/* ENERGY SPREAD  / POLARIZATION ADCS */
#define BPR$V_LUM_MON    0x00
#define BPR$V_POL_MAX    0x0C
#define BPR$V_ESP        0x18
#define BPR$V_ESP_EM     0x18
#define BPR$V_ESP_EP     0x1C

#define BPR$S_LUM_MON    0x0C
#define BPR$S_POL_MAX    0x0C
#define BPR$S_ESP        0x08
#define BPR$S_ESP_EM     0x04
#define BPR$S_ESP_EP     0x04

#define BPR$M_LUM_MON   (0xFFF << BPR$V_LUM_MON)
#define BPR$M_POL_MAX   (0xFFF << BPR$V_POL_MAX)
#define BPR$M_ESP       (0xFF  << BPR$V_ESP)
#define BPR$M_ESP_EM    (0x0F  << BPR$V_ESP_EM)
#define BPR$M_ESP_EP    (0x0F  << BPR$V_ESP_EP)

/*
 | Bit definitions for ssb bytes.  Only EVAL is a 2-bit field.
 | Others are a single bit.
 */
#define   BPR$V_SSB_EVAL    0
#define   BPR$V_SSB_DSRM    2
#define   BPR$V_SSB_DSBLD   3
#define   BPR$V_SSB_BUSY    4
#define   BPR$V_SSB_VETO    5
#define   BPR$V_SSB_INHB    6

#define   BPR$M_SSB_EVAL    (3 << BPR$V_SSB_EVAL)
#define   BPR$M_SSB_DSRM    (1 << BPR$V_SSB_DSRM)
#define   BPR$M_SSB_DSBLD   (1 << BPR$V_SSB_DSBLD)
#define   BPR$M_SSB_BUSY    (1 << BPR$V_SSB_BUSY)
#define   BPR$M_SSB_VETO    (1 << BPR$V_SSB_VETO)
#define   BPR$M_SSB_INHB    (1 << BPR$V_SSB_INHB)

#define   BPR$K_SSB_INVLD   0xff

The above text was taken from the online include file


Joseph Perl
7 July 1994