Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add function to shoot electrons with settable energy from upstream #1501

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from
Open
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
24 changes: 24 additions & 0 deletions SimCore/python/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,30 @@ def single_8gev_e_upstream_tagger():
)


def single_8gev_beam_pipe(ene = 8.0):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def single_8gev_beam_pipe(ene = 8.0):
def single_e_beam_pipe(ene = 8.0):

"""Configure a particle gun to fire an electron of settable energy
upstream of the tagger tracker.

The starting position here is well upstream of the analyzing magnet
the position/angle of the gun is such that 8 gev electrons arrive
at the target z=0 at xy=(0,0). This generator is used to study
off-energy beam electrons.

Note that if an energy != 8gev, the trajectory will be different.
And many electrons with energies sufficiently lower than 8GeV will just curve
into the side of the magnet and not reach the target.

bloodyyugo marked this conversation as resolved.
Show resolved Hide resolved
Returns
-------
Instance of a particle gun configured to fire a single 8 GeV electron
upstream of the entire detector apparatus.
"""
return _single_e_upstream_tagger(
[ -299.2386690686212, 0.0, -6000.0 ],
[ 434.59663056485 , 0.0, 7988.698356992288],
ene
)

def single_backwards_positron(energy: float):
"""A particle gun configured to shoot positrons backwards (i.e. upstream)
from the target at the input energy.
Expand Down
Loading