Skip to content

Commit b9aed09

Browse files
authored
Change alpha to beta in hyperbolic fuctions
1 parent 7b62bbd commit b9aed09

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source/framework/tools/src/TRestPhysics.cxx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,8 @@ TVector3 GetParabolicVectorIntersection(const TVector3& pos, const TVector3& dir
121121
///
122122
/// In case no intersection is found this method returns the unmodified input position.
123123
///
124-
TVector3 GetHyperbolicVectorIntersection(const TVector3& pos, const TVector3& dir, const Double_t alpha,
124+
TVector3 GetHyperbolicVectorIntersection(const TVector3& pos, const TVector3& dir, const Double_t beta,
125125
const Double_t R3, const Double_t focal) {
126-
Double_t beta = 3 * alpha;
127126
Double_t e = 2 * R3 * TMath::Tan(beta);
128127
/// Just replaced here *TMath::Cot by /TMath::Tan to fix compilation issues
129128
Double_t g = 2 * R3 * TMath::Tan(beta) / (focal + R3 / TMath::Tan(2 * alpha));
@@ -220,10 +219,9 @@ TVector3 GetParabolicNormal(const TVector3& pos, const Double_t alpha, const Dou
220219
/// `beta` is the angle between the hyperboloid and the z-axis at the plane where the
221220
/// hyperboloid has the radius `R3`.
222221
///
223-
TVector3 GetHyperbolicNormal(const TVector3& pos, const Double_t alpha, const Double_t R3,
222+
TVector3 GetHyperbolicNormal(const TVector3& pos, const Double_t beta, const Double_t R3,
224223
const Double_t focal) {
225224
TVector3 normalVec = pos;
226-
Double_t beta = 3 * alpha;
227225
/// Just replaced here *TMath::Cot by /TMath::Tan to fix compilation issues
228226
Double_t m = 1 / (R3 * TMath::Tan(beta) * (1 - 2 * pos.Z() / (focal + R3 / TMath::Tan(2 * alpha))) /
229227
TMath::Sqrt(R3 * R3 - R3 * 2 * TMath::Tan(beta) * pos.Z() *

0 commit comments

Comments
 (0)