From 2c829a95e53b33ab8c8e18e7d500b3eb370d3de0 Mon Sep 17 00:00:00 2001 From: jovoy <50204158+jovoy@users.noreply.github.com> Date: Mon, 11 Sep 2023 10:01:29 +0200 Subject: [PATCH 1/2] Change the rotation direction to rotate objects clockwise --- src/TRestAxionEventProcess.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TRestAxionEventProcess.cxx b/src/TRestAxionEventProcess.cxx index f84abde1..b19d8e56 100644 --- a/src/TRestAxionEventProcess.cxx +++ b/src/TRestAxionEventProcess.cxx @@ -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() @@ -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() From f227a5f68e9b36bef5dfe7b35733060a8c969b53 Mon Sep 17 00:00:00 2001 From: Javier Galan Date: Fri, 15 Dec 2023 13:15:19 +0100 Subject: [PATCH 2/2] Updating full ray-tracing validation values --- pipeline/ray-tracing/full-chain/ValidateChain.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/ray-tracing/full-chain/ValidateChain.C b/pipeline/ray-tracing/full-chain/ValidateChain.C index 83386a34..b67bb41d 100644 --- a/pipeline/ray-tracing/full-chain/ValidateChain.C +++ b/pipeline/ray-tracing/full-chain/ValidateChain.C @@ -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; }