-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fork/alexwenym #38
Fork/alexwenym #38
Conversation
…ounds clipping. Fix spacing.
…on between opposing directions.
Removing unnecessary file
…space for rapidly falling distributions
…luxDistribution class. testing is ongoing
There's a whole lot of changes in this branch. I think most of them are good, but it is worth going through them all invidually before we merge it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few minor changes that need to be made before we merge this. Mainly it's removing some comments, a few stray printouts, and deciding if we want to keep some of the files added to resources. There is an issue with how the random numbers are created for the inverse cdf sampling though.
projects/distributions/public/LeptonInjector/distributions/primary/direction/FixedDirection.h
Outdated
Show resolved
Hide resolved
projects/distributions/private/primary/energy/TabulatedFluxDistribution.cxx
Show resolved
Hide resolved
projects/distributions/private/primary/vertex/ColumnDepthPositionDistribution.cxx
Show resolved
Hide resolved
projects/distributions/public/LeptonInjector/distributions/primary/direction/FixedDirection.h
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar changes needed as previous review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mostly whitespace
prob_density /= (M_PI * radius * radius); // (m^-1 * m^-2) -> m^-3 | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace
@@ -263,7 +265,7 @@ double LeptonProcessWeighter::NormalizedPositionProbability(std::pair<LI::math:: | |||
record.interaction_vertex[0], | |||
record.interaction_vertex[1], | |||
record.interaction_vertex[2]); | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Methods for sampling tabulated distribution using the inverse CDF method. Fixes a bug with the ATLAS example.