Skip to content
Snippets Groups Projects
Commit 0661121c authored by Dominik Smith's avatar Dominik Smith
Browse files

Fixed start position of beam to account for rotation of coordinate system.

parent 50b688a5
No related branches found
No related tags found
1 merge request!45Fixed start position of beam to account for rotation of coordinate system.
...@@ -114,7 +114,7 @@ void mcbm_transport_beam(UInt_t nEvents = 1, ...@@ -114,7 +114,7 @@ void mcbm_transport_beam(UInt_t nEvents = 1,
targetElement, targetDz, targetR, targetX, targetY, targetZ, targetRotY); targetElement, targetDz, targetR, targetX, targetY, targetZ, targetRotY);
run.SetVertexSmearZ(kFALSE); run.SetVertexSmearZ(kFALSE);
run.SetBeamPosition(0., 0., beamWidthX, beamWidthY, beamStartZ); run.SetBeamPosition(beamStartZ*sin(beamAngle), 0., beamWidthX, beamWidthY, beamStartZ*cos(beamAngle));
run.SetBeamAngle(beamAngle, 0., 0., 0.); run.SetBeamAngle(beamAngle, 0., 0., 0.);
run.ForceVertexInTarget(kFALSE); run.ForceVertexInTarget(kFALSE);
......
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