Skip to content

Conversation

@jovoy
Copy link
Contributor

@jovoy jovoy commented Aug 22, 2023

jovoy Ok: 32 Powered by Pull Request Badge

X_sep as the distance between the mirror stacks has to be added to both TRestAxionTrueWolterOptics and TRestAxionWolterOptics.
Update: It is now added to everything but the GetConeVectorIntersection(), where the vector intersects with the cone in the framework.

@jgalan jgalan self-requested a review August 28, 2023 13:08

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fR3 is a std::vector that's why the compilation is failing, and validation is not going through.

Your need to access the elements of fR1 and fR3.

for( size_t n = 0; n < fAlpha.size(); n++ )
     fXSep.push_back(2 * (fR1[n] - fR3[n] - fMirrorLength * TMath::Sin(fAlpha[n])) / TMath::Tan(fAlpha[n]));

where I am assuming fAlpha, fR1 and fR3 have the same number of elements.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yeah, that's true!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants