Skip to content

Commit

Permalink
Change alpha to beta in hyperbolic fuctions
Browse files Browse the repository at this point in the history
  • Loading branch information
jovoy authored Feb 22, 2024
1 parent 701c676 commit d688e78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/TRestAxionTrueWolterOptics.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,11 @@ Int_t TRestAxionTrueWolterOptics::SecondMirrorReflection(const TVector3& pos, co

TVector3 vertex(0, 0, fBackVertex[mirror]);
Double_t focal = fR3[mirror] / TMath::Tan(4 * fAlpha[mirror]);
Double_t beta = 3 * fAlpha[mirror];

//// Reflection on second mirror
fSecondInteractionPosition = REST_Physics::GetHyperbolicVectorIntersection(
pos, dir, fAlpha[mirror], fR3[mirror], focal); // should add this: TVector3(0, 0, -1), vertex,
pos, dir, beta, fR3[mirror], focal); // should add this: TVector3(0, 0, -1), vertex,

if (fSecondInteractionPosition.Z() > GetExitPositionZ() ||
fSecondInteractionPosition.Z() < (0.5 * fXSep[mirror])) {
Expand All @@ -347,7 +348,7 @@ Int_t TRestAxionTrueWolterOptics::SecondMirrorReflection(const TVector3& pos, co
}

TVector3 hyperNormal =
REST_Physics::GetHyperbolicNormal(fSecondInteractionPosition, fAlpha[mirror], fR3[mirror], focal);
REST_Physics::GetHyperbolicNormal(fSecondInteractionPosition, beta, fR3[mirror], focal);

fExitDirection = GetVectorReflection(fMiddleDirection, hyperNormal);

Expand Down

0 comments on commit d688e78

Please sign in to comment.