Skip to content

Commit

Permalink
FT0: Delete unused variables
Browse files Browse the repository at this point in the history
- fixes a floating point exception in FT0 geometry construction
- these variables/assignments were anyway never used later so
  simply deleting them solves the issue

https://its.cern.ch/jira/browse/O2-4426
  • Loading branch information
sawenzel committed May 22, 2024
1 parent 529d890 commit e5cca64
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions Detectors/FIT/FT0/simulation/src/Detector.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -882,18 +882,10 @@ TGeoVolume* Detector::constructFrameCGeometry()
Double_t yPMT[NCellsC];
Double_t zPMT[NCellsC];

Double_t aPMT[NCellsC];
Double_t bPMT[NCellsC];
Double_t gPMT[NCellsC];

Double_t xQrad[NCellsC];
Double_t yQrad[NCellsC];
Double_t zQrad[NCellsC];

Double_t aQrad[NCellsC];
Double_t bQrad[NCellsC];
Double_t gQrad[NCellsC];

Double_t rotC[NCellsC];
Double_t comC[NCellsC];

Expand All @@ -903,31 +895,10 @@ TGeoVolume* Detector::constructFrameCGeometry()
yPMT[i] = scalePMT * yc2[i];
zPMT[i] = scalePMT * zc2[i];

aPMT[i] = TMath::ATan(yPMT[i] / xPMT[i]) - TMath::Pi() / 2 + 2 * TMath::Pi();
if (xPMT[i] < 0) {
bPMT[i] = TMath::ACos(zPMT[i] / crad);
} else {
bPMT[i] = -1 * TMath::ACos(zPMT[i] / crad);
}

aPMT[i] *= 180 / TMath::Pi();
bPMT[i] *= 180 / TMath::Pi();
gPMT[i] = -1 * aPMT[i];

// Quartz radiator transformations
xQrad[i] = scaleQrad * xc2[i];
yQrad[i] = scaleQrad * yc2[i];
zQrad[i] = scaleQrad * zc2[i];

aQrad[i] = TMath::ATan(yQrad[i] / xQrad[i]) - TMath::Pi() / 2 + 2 * TMath::Pi();
if (xQrad[i] < 0) {
bQrad[i] = TMath::ACos(zQrad[i] / crad);
} else {
bQrad[i] = -1 * TMath::ACos(zQrad[i] / crad);
}
aQrad[i] *= 180 / TMath::Pi();
bQrad[i] *= 180 / TMath::Pi();
gQrad[i] = -1 * aQrad[i];
}

TString nameRot;
Expand Down

0 comments on commit e5cca64

Please sign in to comment.