Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the rotation direction to rotate objects clockwise #75

Merged
merged 4 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pipeline/ray-tracing/full-chain/ValidateChain.C
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Int_t ValidateChain(std::string fname) {
return 3;
}

if (integral2 < 0.125 || integral2 > 0.135) {
if (integral2 < 0.145 || integral2 > 0.155) {
std::cout << "Average window transmission is not within the expected range!" << std::endl;
return 5;
}
Expand Down
8 changes: 4 additions & 4 deletions src/TRestAxionEventProcess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ void TRestAxionEventProcess::BeginOfEventProcess(TRestEvent* inEv) {
RESTDebug << "BoEP: Initial Direction. X: " << fAxionEvent->GetDirection().X()
<< " Y: " << fAxionEvent->GetDirection().Y() << " Z: " << fAxionEvent->GetDirection().Z()
<< RESTendl;
fAxionEvent->RotateYX(fPosition, -fInternalYaw, -fInternalPitch);
fAxionEvent->RotateYX(fExternalRotationCenter, -fExternalYaw, -fExternalPitch);
fAxionEvent->RotateYX(fPosition, fInternalYaw, fInternalPitch);
fAxionEvent->RotateYX(fExternalRotationCenter, fExternalYaw, fExternalPitch);
fAxionEvent->Translate(TVector3(-fPosition.X(), -fPosition.Y(), -fPosition.Z()));
RESTDebug << " ---- " << RESTendl;
RESTDebug << "BoEP: Final Position. X: " << fAxionEvent->GetPosition().X()
Expand Down Expand Up @@ -100,8 +100,8 @@ void TRestAxionEventProcess::EndOfEventProcess(TRestEvent* evInput) {
RESTDebug << " ---- " << RESTendl;
fAxionEvent->Translate(TVector3(fPosition.X(), fPosition.Y(), fPosition.Z()));
if (fLocalAxis) {
fAxionEvent->RotateXY(fExternalRotationCenter, fExternalPitch, fExternalYaw);
fAxionEvent->RotateXY(fPosition, fInternalPitch, fInternalYaw);
fAxionEvent->RotateXY(fExternalRotationCenter, -fExternalPitch, -fExternalYaw);
fAxionEvent->RotateXY(fPosition, -fInternalPitch, -fInternalYaw);
}
RESTDebug << "EoEP: Final Position. X: " << fAxionEvent->GetPosition().X()
<< " Y: " << fAxionEvent->GetPosition().Y() << " Z: " << fAxionEvent->GetPosition().Z()
Expand Down