#define SUBSYSTEM ACD
/* ====================================================================== *\
| |
| TKR TOWER GEOMETRY |
| ================== |
| |
| These give the offsets to the first and last active strips in each |
| tower. It has not been assumed that towers are symmetric in X and Y. |
| |
| The units of the transverse dimensions are strip units (228um). |
| |
| Modified 03.08.07 jjr |
| --------------------- |
| Moved TKR_XY_WIDTH_MM to GEO_DB_macros.h, it is really a derived |
| constant defined by the active width of the strips + the 3 interladder|
| gaps. |
| |
\* ---------------------------------------------------------------------- */
/* TKR Strip Width and Tower Width */
#define TKR_STRIP_PITCH_MM 0.228 /* Strip pitch (mm) */
#define TKR_LADDER_GAP_MM (2*.974 +.2)

/* TKR X Fundamental constants */
#define TKR_MID_X0_MM -561.75 /* Center of Tower = 0 */
#define TKR_MID_X1_MM -187.25 /* Center of Tower = 1 */
#define TKR_MID_X2_MM 187.25 /* Center of Tower = 2 */
#define TKR_MID_X3_MM 561.75 /* Center of Tower = 3 */

#define TKR_MID_X4_MM -561.75 /* Center of Tower = 4 */
#define TKR_MID_X5_MM -187.25 /* Center of Tower = 5 */
#define TKR_MID_X6_MM 187.25 /* Center of Tower = 6 */
#define TKR_MID_X7_MM 561.75 /* Center of Tower = 7 */

#define TKR_MID_X8_MM -561.75 /* Center of Tower = 8 */
#define TKR_MID_X9_MM -187.25 /* Center of Tower = 9 */
#define TKR_MID_XA_MM 187.25 /* Center of Tower = A */
#define TKR_MID_XB_MM 561.75 /* Center of Tower = B */

#define TKR_MID_XC_MM -561.75 /* Center of Tower = C */
#define TKR_MID_XD_MM -187.25 /* Center of Tower = D */
#define TKR_MID_XE_MM 187.25 /* Center of Tower = E */
#define TKR_MID_XF_MM 561.75 /* Center of Tower = F */

/* TKR Y Fundamental constants */
#define TKR_MID_Y0_MM -561.75 /* Center of Tower = 0 */
#define TKR_MID_Y4_MM -187.25 /* Center of Tower = 4 */
#define TKR_MID_Y8_MM 187.25 /* Center of Tower = 8 */
#define TKR_MID_YC_MM 561.75 /* Center of Tower = C */

#define TKR_MID_Y1_MM -561.75 /* Center of Tower = 1 */
#define TKR_MID_Y5_MM -187.25 /* Center of Tower = 5 */
#define TKR_MID_Y9_MM 187.25 /* Center of Tower = 9 */
#define TKR_MID_YD_MM 561.75 /* Center of Tower = D */

#define TKR_MID_Y2_MM -561.75 /* Center of Tower = 2 */
#define TKR_MID_Y6_MM -187.25 /* Center of Tower = 6 */
#define TKR_MID_YA_MM 187.25 /* Center of Tower = A */
#define TKR_MID_YE_MM 561.75 /* Center of Tower = E */

#define TKR_MID_Y3_MM -561.75 /* Center of Tower = 3 */
#define TKR_MID_Y7_MM -187.25 /* Center of Tower = 7 */
#define TKR_MID_YB_MM 187.25 /* Center of Tower = B */
#define TKR_MID_YF_MM 561.75 /* Center of Tower = F */

/* TKR Z Fundamental constants */
#define TKR_Z_NOMINAL_MM 32.402 /* Nominal layer spacing mm */
#define TKR_Z_DELTA_MM 2.400 /* Separation of XY layers */

#define TKR_Z_LAYER_Y00_MM 42.315
#define TKR_Z_LAYER_X00_MM 44.765

#define TKR_Z_LAYER_X01_MM 74.335
#define TKR_Z_LAYER_Y01_MM 76.865

#define TKR_Z_LAYER_Y02_MM 106.435
#define TKR_Z_LAYER_X02_MM 108.965

#define TKR_Z_LAYER_X03_MM 139.538
#define TKR_Z_LAYER_Y03_MM 142.065

#define TKR_Z_LAYER_Y04_MM 172.638
#define TKR_Z_LAYER_X04_MM 175.165

#define TKR_Z_LAYER_X05_MM 205.738
#define TKR_Z_LAYER_Y05_MM 208.265

#define TKR_Z_LAYER_Y06_MM 238.838
#define TKR_Z_LAYER_X06_MM 241.365

#define TKR_Z_LAYER_X07_MM 271.140
#define TKR_Z_LAYER_Y07_MM 273.665

#define TKR_Z_LAYER_Y08_MM 303.440
#define TKR_Z_LAYER_X08_MM 305.965

#define TKR_Z_LAYER_X09_MM 335.740
#define TKR_Z_LAYER_Y09_MM 338.265

#define TKR_Z_LAYER_Y10_MM 368.040
#define TKR_Z_LAYER_X10_MM 370.565

#define TKR_Z_LAYER_X11_MM 400.340
#define TKR_Z_LAYER_Y11_MM 402.865

#define TKR_Z_LAYER_Y12_MM 432.640
#define TKR_Z_LAYER_X12_MM 435.165

#define TKR_Z_LAYER_X13_MM 464.940
#define TKR_Z_LAYER_Y13_MM 467.465

#define TKR_Z_LAYER_Y14_MM 497.240
#define TKR_Z_LAYER_X14_MM 499.765

#define TKR_Z_LAYER_X15_MM 529.540
#define TKR_Z_LAYER_Y15_MM 532.065

#define TKR_Z_LAYER_Y16_MM 561.840
#define TKR_Z_LAYER_X16_MM 564.365

#define TKR_Z_LAYER_X17_MM 594.14
#define TKR_Z_LAYER_Y17_MM 596.665

 

/* ====================================================================== *\
| |
| TOP ACD TILE GEOMETRY |
| ===================== |
| The following numbers define the limits of X,Y for the top ACD tiles. |
| |
\* ---------------------------------------------------------------------- */
#define ACD_TOP_Z_MM 754.6 /* Middle of tile 2 z */

/*
| X TILE - Simplification
| -----------------------
| Tile 0 and tile 4 include the 50 mm corner piece. Each X tile overlaps
| its neighbor. We are going to arbitrarily decide that each tile ends/begins
| at the halfway point of the overlap. This assumption leads to not giving
| two chances to particles that pass in the overlap region, but at 99+%
| efficiency, this should be good enough for the filter.
|
| Y TILE - Simplification
| -----------------------
| There is a gap between the Y tiles. We are going to arbitrarily decide
| that each tile ends/begins at the halfway point in the gap. This
| simplification could be a little more dangerous, allowing particles
| that point into the gap to be capriously tested for a tile hit. The
| degree of damage depends on the noise rate. That is, if the tiles are
| quiet, the test will simply fail.
*/
/* X tile widths */
#define ACD_X_TOP_0_WIDTH_MM 355.00 /* Col 0 width */
#define ACD_X_TOP_1_WIDTH_MM 344.00 /* Col 1 width */
#define ACD_X_TOP_2_WIDTH_MM 344.00 /* Col 2 width */
#define ACD_X_TOP_3_WIDTH_MM 344.00 /* Col 3 width */
#define ACD_X_TOP_4_WIDTH_MM 355.00 /* Col 4 width */

/* Y tile widths */
#define ACD_Y_TOP_0_WIDTH_MM 329.67 /* Row 0 width */
#define ACD_Y_TOP_1_WIDTH_MM 332.00 /* Row 1 width */
#define ACD_Y_TOP_2_WIDTH_MM 332.00 /* Row 2 width */
#define ACD_Y_TOP_3_WIDTH_MM 332.00 /* Row 3 width */
#define ACD_Y_TOP_4_WIDTH_MM 329.67 /* Row 4 width */

#define ACD_X_TOP_OVERLAP_MM 20.00 /* Columns overlap */
#define ACD_Y_TOP_GAP_MM 2.00 /* Row gap,covered by the ribbons */
#define ACD_X_TOP_OFFSET_MM 0.00 /* Middle of X tile 3 */
#define ACD_Y_TOP_OFFSET_MM 0.00 /* Middle of Y tile 3 */
/* ====================================================================== */


/* ====================================================================== *\
| |
| SIDE ACD TILE GEOMETRY |
| ====================== |
| |
| The following numbers define the limits of Y coordinates for the X+ |
| and X- ACD side tiles. In addition the distance between the nearest |
| tower face to the X+ or X- ACD face is defined. This allows one to |
| extrapolate from the X position in the tower to the ACD face. |
| It is assumed that the tiles are infinitely close, ie the end of one |
| tile is the same as the begining of the next tile. |
| |
| The ACD faces are no longer symmetric. The picture (looking down from |
| the top (i.e. eyesight along the -z axis |
| |
| |
| FACE 4 X+ |
| +-----------+-------+-------+-------+-------+--+ |
| Y+ | 0 | 1 | 2 | 3 | 4 | | |
| +--+--------+-------+-------+-------+-------+ + |
| | | | | |
| | 4| | 4| |
| |__| |__| |
| | | ^ | | |
| | 3| | | 3| |
| F |__| Y | |__| F |
| A | | | | | A |
| C | 2| +------> | 2| C |
| E |__| X |__| E |
| | | | | |
| 1 | 1| | 1| 3 |
| |__| |__| |
| | | | | |
| | 0| | 0| |
| | | | | |
| | +--------+-------+-------+-------+----------+ |
| | | 0 | 1 | 2 | 3 | 4 | Y- |
| +--+--------+-------+-------+-------+----------+ |
| X- FACE 2 |
| |
| From this diagram, one sees that the tile 0 in the X- plane (FACE 1) |
| the Y+ plane (FACE 4) are longer than the tile 0 in the X+ plane |
| (FACE 3) and the Y- planes (FACE 4). Although a symmetry may exist |
| between the faces, it is ignored; all faces are entered as though |
| they have nothing to do with each other other |
| |
\* ---------------------------------------------------------------------- */
/* X and Y common definitions */
#define ACD_VERTICAL_OVERLAP_MM 0.0 /* Rows are shingled */
#define ACD_HORIZONTAL_GAP_MM 2.0 /* Cols have gaps filled by rib's */

/* Z widths */
#define ACD_SIDE_Z0_WIDTH_MM 366.00 /* Row 0 width */
#define ACD_SIDE_Z1_WIDTH_MM 199.46 /* Row 1 width */
#define ACD_SIDE_Z2_WIDTH_MM 150.00 /* Row 2 width */
#define ACD_SIDE_Z3_WIDTH_MM 135.35 /* Row 3 width */

#define ACD_SIDE_Z_OVERLAP_MM 0.00 /* All rows overlap the same, none */
#define ACD_SIDE_Z0_TOP_MM 802.60 /* Top of the top side tile */

/* X- tile widths */
#define ACD_XM_Y0_WIDTH_MM 342.97 /* X- Tile 0 width */
#define ACD_XM_Y1_WIDTH_MM 332.00 /* X- Tile 1 width */
#define ACD_XM_Y2_WIDTH_MM 332.00 /* X- Tile 2 width */
#define ACD_XM_Y3_WIDTH_MM 332.00 /* X- Tile 3 width */
#define ACD_XM_Y4_WIDTH_MM 329.67 /* X- Tile 4 width */

/* X+ tile widths */
#define ACD_XP_Y0_WIDTH_MM 329.67 /* X+ Tile 0 width */
#define ACD_XP_Y1_WIDTH_MM 332.00 /* X+ Tile 1 width */
#define ACD_XP_Y2_WIDTH_MM 332.00 /* X+ Tile 2 width */
#define ACD_XP_Y3_WIDTH_MM 332.00 /* X+ Tile 3 width */
#define ACD_XP_Y4_WIDTH_MM 342.97 /* X+ Tile 4 width */

/* Y- tile widths */
#define ACD_YM_X0_WIDTH_MM 329.67 /* Y- Tile 0 width */
#define ACD_YM_X1_WIDTH_MM 332.00 /* Y- Tile 1 width */
#define ACD_YM_X2_WIDTH_MM 332.00 /* Y- Tile 2 width */
#define ACD_YM_X3_WIDTH_MM 332.00 /* Y- Tile 3 width */
#define ACD_YM_X4_WIDTH_MM 342.97 /* Y- Tile 4 width */

/* Y+ tile widths */
#define ACD_YP_X0_WIDTH_MM 342.97 /* Y+ Tile 0 width */
#define ACD_YP_X1_WIDTH_MM 332.00 /* Y+ Tile 1 width */
#define ACD_YP_X2_WIDTH_MM 332.00 /* Y+ Tile 2 width */
#define ACD_YP_X3_WIDTH_MM 332.00 /* Y+ Tile 3 width */
#define ACD_YP_X4_WIDTH_MM 329.67 /* Y+ Tile 4 width */

/* Offsets to center of tile 2 */
#define ACD_XM_Y_OFFSET_MM 0.65 /* X- tile 2 center */
#define ACD_XP_Y_OFFSET_MM -0.65 /* X+ tile 2 center */
#define ACD_YM_X_OFFSET_MM -0.65 /* Y- tile 2 center */
#define ACD_YP_X_OFFSET_MM 0.65 /* Y+ tile 2 center */

/* Central position of the planes */
#define ACD_XM_FACE_MM -840.14 /* X- central X position */
#define ACD_XP_FACE_MM 840.14 /* X+ central X position */
#define ACD_YM_FACE_MM -840.14 /* Y- central Y position */
#define ACD_YP_FACE_MM 840.14 /* Y+ central Y position */
/* ====================================================================== */

 

/* ====================================================================== *\
| |
| PROJECTIONS FROM TKR TO SKIRT REGION |
| ==================================== |
| |
| This defines the XY dimensions and Z position of the skirt region. |
| The skirt region is that region between the ACD and CAL which is |
| unprotected by the ACD. Charged tracks can sneak up this area, |
| missing the ACD and thus potentially faking photons in the LAT. The |
| only recourse is to project tracks to this plane and see if they fall |
| into this uprotected region. If so, they are rejected. This causes |
| a loss in efficiency, but there is no other alternative. |
| |
\* ---------------------------------------------------------------------- */
#define CAL_Z_OFFSET_MM -149.446
#define CAL_X_EDGE_BEG_MM -728.5
#define CAL_X_EDGE_END_MM 728.5
#define CAL_Y_EDGE_BEG_MM -728.5
#define CAL_Y_EDGE_END_MM 728.5
/* ====================================================================== */
#endif


Owned by: Joanne Bogart
Last updated by: Chuck Patterson 03/10/2009