Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove unused variable
  • Loading branch information
baltzell committed Sep 19, 2026
commit e5e89a582100b42348205fed50f6739e9d8b2bac
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ public void calc_CentroidParams() {
double weightedZ1 = 0; // SVT/BMT strip centroid positions of endpoints
double weightedZ2 = 0; // SVT/BMT strip centroid positions of endpoints
double weightedZC = 0; // BMT strip centroid positions of strip midpoint
double weightedZ0 = 0; // BMT strip centroid positions of strip midpoint with no LC

int nbhits = this.size();
//sort for bmt detector
Expand Down Expand Up @@ -356,7 +355,6 @@ else if (this.getDetector()==DetectorType.BMT) {
weightedZC += strpEn * stCent.z();
weightedX0 += strpEn * stCent0.x();
weightedY0 += strpEn * stCent0.y();
weightedZ0 += strpEn * stCent0.z();
weightedStrp += strpEn * (double) strpNb;
weightedStrp0 += strpEn * (double) strpNb0;

Expand Down Expand Up @@ -397,7 +395,6 @@ else if (this.getDetector()==DetectorType.BMT) {
weightedZC /= totEn;
weightedX0 /= totEn;
weightedY0 /= totEn;
weightedZ0 /= totEn;
weightedZ /= totEn;
weightedPhi = Math.atan2(weightedYC, weightedXC);
weightedPhi0 = Math.atan2(weightedY0, weightedX0);
Expand Down