Skip to content

Commit

Permalink
X-sep vector correction
Browse files Browse the repository at this point in the history
  • Loading branch information
jovoy committed Aug 28, 2023
1 parent 6adc342 commit 30aff7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TRestAxionWolterOptics.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ void TRestAxionWolterOptics::Initialize() {
fThickness = GetThickness();

fXSep.clear();
for (const auto& a : fAlpha)
fXSep.push_back(2 * (fR1 - fR3 - fMirrorLength * TMath::Sin(a)) / TMath::Tan(a));
for (unsigned int n = 0; n < fAlpha.size(); n++)
fXSep.push_back(2 * (fR1[n] - fR3[n] - fMirrorLength * TMath::Sin(fAlpha[n])) / TMath::Tan(fAlpha[n]));

if (fAlpha.size() == 0) return;

Expand Down

0 comments on commit 30aff7f

Please sign in to comment.