Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 22, 2023
1 parent ad5b10d commit a4dc161
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 @@ -173,9 +173,10 @@ void TRestAxionTrueWolterOptics::Initialize() {
fR5 = GetR5();
fAlpha = GetAlpha();
fThickness = GetThickness();

fXSep.clear();
for (const auto& a : fAlpha) fXSep.push_back(2 * (fR1 - fR3 - fMirrorLength * TMath::Sin(a)) / TMath::Tan(a));
for (const auto& a : fAlpha)
fXSep.push_back(2 * (fR1 - fR3 - fMirrorLength * TMath::Sin(a)) / TMath::Tan(a));

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

Expand Down

0 comments on commit a4dc161

Please sign in to comment.