Skip to content

Commit

Permalink
Merge pull request #75 from rest-for-physics/jovoy-rotation
Browse files Browse the repository at this point in the history
Change the rotation direction to rotate objects clockwise
  • Loading branch information
jgalan committed Dec 15, 2023
2 parents e421bf2 + f227a5f commit 2137538
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
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

0 comments on commit 2137538

Please sign in to comment.