Adding Greisen Profile#15
Open
CDYMoore wants to merge 11 commits into
Open
Conversation
'Scaled_ellipsoide'. The shape depends only on energy of primary photon and height of first interaction.
Shower z axis distribution now determined by Greisen function.
Update to include Greisen Function
Owner
|
Hi @CDYMoore and thank you very much for your contribution. First question, have you merged the last master version of pschitt in your version? If not, please do. About the code:
Example to avoid loops: |
vuillaut
requested changes
Sep 3, 2018
vuillaut
left a comment
Owner
There was a problem hiding this comment.
Requested changes (see comments in discussion)
Owner
|
I now better understand the need for the scaling factor. However, I would suggest to remove it and have a number of particles = min(shower.number_of_particles, physical_number_of_particles) and explain this in the docstring of the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Griesen profile added to sky_objects.py allowing for random distribution of particles along Z axis with a distribution dependent on the initial energy and interaction height of the shower.
X and Y profiles set by random Gaussian distributions scaled such that on average 90% of particles reside within 1 Moliere Radius of the shower axis (at sea level).
If shower = pschitt.sky_objects.shower:
-> Simulation using Greisen Function activated with "shower.Greisen_Profile()"
-> New shower input parameters needed in run script:
--> "shower.energy_primary = number[eV]" : sets energy of the primary gamma-ray photon.
--> "shower.height_of_first_interaction = height[m]" : sets the height at which the initial photon interacts with the atmosphere.
--> "shower.scale = number[-]" : sets the resolution of the distribution function produced from the Greisen Function. A lower number corresponds to a higher number of simulated particles. (Recommended range: 1-100).
Inputs no longer needed in run script:
-> "shower.number_of_particles" : determined by primary energy.
-> "shower_top/length/width : determined by preprogrammed functions (see top of comment).