Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
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
9 changes: 1 addition & 8 deletions 9 examples/scripts/createO2tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,9 @@ def opt(entry, require=True):
sigmaT = opt("sigmaT")
sigmaT0 = opt("sigmaT0")
radius = opt("radius")
etaMax = opt("etamax")
length = opt("length")

# calculate max eta from geometry
verbose_msg("Computing maximum eta based on detector length and radius")
th = numpy.arctan2(float(radius), float(length))*0.5
sth = numpy.sin(th)
cth = numpy.cos(th)
etaMax = -numpy.log(sth/cth)
running_options["etaMax"] = etaMax

# copy relevant files in the working directory
def do_copy(in_file, out_file):
in_file = os.path.expanduser(os.path.expandvars(in_file))
Expand Down
3 changes: 3 additions & 0 deletions 3 examples/scripts/default_configfile.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

### detector configuration

# Acceptance in eta
etamax = 2.

# magnetic field [kG]
bfield = 5.

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.