Skip to content

Commit

Permalink
fixed the thickness of the new superlayer volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
raffaelladevita committed Nov 5, 2024
1 parent b5bbe1f commit dd96261
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ public Geant4Basic createSuperlayer(int isuper) {
double lay_dy = Math.sqrt(Math.pow(midline.magnitude(), 2.0) - Math.pow(midline.dot(lw0.dir()), 2.0)) / 2.0;
double lay_dx0 = lw0.length() / 2.0;
double lay_dx1 = lw1.length() / 2.0;
double lay_dz = dbref.cellthickness(isuper) * dbref.wpdist(isuper) * (nsglayers -2) / 2.0 - microgap;
double lay_dz = (dbref.cellthickness(isuper)*dbref.nsenselayers(isuper)+1) * dbref.wpdist(isuper) / 2.0;
double lay_skew = lw0.center().minus(lw1.center()).angle(lw1.dir()) - Math.toRadians(90.0);

Vector3d lcent = lw0.center().plus(lw1.center()).dividedBy(2.0);
Expand Down

0 comments on commit dd96261

Please sign in to comment.