Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions python/generators.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,12 @@ def single_4gev_e_upstream_tagger() :
the field and arrive at the target at approximately [0, 0, 0] (assuming
it's not smeared).

The gun position below requires the particles to be fired at 4.5 degrees.
The gun position of [ -27.926 , 0 , -700 ] # mm requires the particles to be fired at theta = 4.5 degrees.
The gun position of [ -27.926 , 0 , -880 ] # mm requires the particles to be fired at theta = 5.65 degrees.

The direction vector is calculated as follows:

dir_vector = [ sin(4.5) = .3138/4, 0, cos(4.5) = 3.9877/4 ]
dir_vector = [ sin(theta), 0, cos(theta) ]

Returns
-------
Expand Down