From 44e23d97fd132a7c85b6bdf75b802c772c59635b Mon Sep 17 00:00:00 2001
From: Florian Uhlig <f.uhlig@gsi.de>
Date: Fri, 20 Dec 2024 13:26:30 +0100
Subject: [PATCH] Fix KF reco in Weekly tests

The transport stage still placed the target at 0. cm. The global coordinate
system was changed long time ago to have the origin in the middle of the
magnet. Change the target as well as well as the origin of the reactions to
z=-44. cm.
---
 macro/KF/kf_transport.C | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/macro/KF/kf_transport.C b/macro/KF/kf_transport.C
index f99971dd99..5afc21f184 100644
--- a/macro/KF/kf_transport.C
+++ b/macro/KF/kf_transport.C
@@ -78,7 +78,7 @@ void kf_transport(Int_t nEvents = 2, const char* setupName = "sis100_electron",
   Double_t targetDiameter  = 2.5;    // diameter in cm
   Double_t targetPosX      = 0.;     // target x position in global c.s. [cm]
   Double_t targetPosY      = 0.;     // target y position in global c.s. [cm]
-  Double_t targetPosZ      = 0.;     // target z position in global c.s. [cm]
+  Double_t targetPosZ      = -44.;   // target z position in global c.s. [cm]
   Double_t targetRotY      = 0.;     // target rotation angle around the y axis [deg]
   // ------------------------------------------------------------------------
 
@@ -114,7 +114,7 @@ void kf_transport(Int_t nEvents = 2, const char* setupName = "sis100_electron",
 
   // -----   Create simulation run   ----------------------------------------
   FairRunSim* run = new FairRunSim();
-  run->SetName("TGeant3");         // Transport engine
+  run->SetName("TGeant4");         // Transport engine
   run->SetOutputFile(outFile);     // Output file
   run->SetGenerateRunInfo(kTRUE);  // Create FairRunInfo file
   // ------------------------------------------------------------------------
@@ -190,7 +190,7 @@ void kf_transport(Int_t nEvents = 2, const char* setupName = "sis100_electron",
   primGen->SetEventPlane(0., 2. * TMath::Pi());
   // --- Get target parameters
   // --- Get target parameters
-  TVector3 targetPos(0., 0., 0.);
+  TVector3 targetPos(0., 0., -44.);
   Double_t tDz = 0.;
   if (target) {
     targetPos = target->GetPosition();
-- 
GitLab