Skip to content

Commit adc5dde

Browse files
N-Plxtongtongcao
authored andcommitted
center the atof at z=0 (#579)
1 parent 27af2a3 commit adc5dde

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

common-tools/clas-geometry/src/main/java/org/jlab/geom/detector/alert/ATOF/AlertTOFFactory.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ public AlertTOFLayer createLayer(ConstantProvider cp, int sectorId, int superlay
9595
double pad_b1 = 8.17369; // mm
9696
double pad_b2 = 10.27; // mm
9797

98-
double pad_z = 279.7; // mm
99-
if (superlayerId == 1) pad_z = 27.7; // mm
98+
double atof_length = 279.7; // mm
99+
double pad_z = atof_length; // For the bar
100+
if (superlayerId == 1) pad_z = 27.7; // mm, for the wedges 10*27.7 + 9*0.3
100101

101102
// trapezoide dimensions for a smaller paddle (internal)
102103
double small_pad_b1 = 7.85924; // mm
@@ -134,8 +135,8 @@ public AlertTOFLayer createLayer(ConstantProvider cp, int sectorId, int superlay
134135
for (int padId = 0; padId < current_ncomponents; padId++) {
135136

136137
//Component index increases with increasing z
137-
double len_b = padId * pad_z + padId * gap_pad_z; // back paddle plan
138-
double len_f = len_b + pad_z; // front paddle plan
138+
double len_b = padId * pad_z + padId * gap_pad_z - atof_length/2; // back paddle plan, centered at z = 0
139+
double len_f = len_b + pad_z - atof_length/2; // front paddle plan, centered at z = 0
139140

140141
Point3D p0 = new Point3D(-dR / 2, -widthBl / 2, len_f);
141142
Point3D p1 = new Point3D(dR / 2, -widthTl / 2, len_f);

0 commit comments

Comments
 (0)