Skip to content
Snippets Groups Projects
Commit 44e23d97 authored by Administrator's avatar Administrator
Browse files

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.
parent 084d8227
No related branches found
No related tags found
1 merge request!1988Fix KF reco in Weekly tests
Pipeline #32244 failed
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment