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 UniformAlongStepFactory for Geant4 integration #702

Merged
merged 11 commits into from
Mar 28, 2023

Conversation

sethrj
Copy link
Member

@sethrj sethrj commented Mar 27, 2023

I've added a helper class UniformAlongStepFactory that translates a G4ThreeVector with the field magnitude in native CLHEP/G4 units to an along-step action. I also made a few minor quality of life improvements to the MT logger.

@sethrj sethrj added enhancement New feature or request external Dependencies and framework-oriented features labels Mar 27, 2023
@sethrj sethrj requested a review from whokion March 27, 2023 19:10
Copy link
Contributor

@whokion whokion left a comment

Choose a reason for hiding this comment

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

Looks good to support no field as it is. Please see comments for further consideration.

app/demo-geant-integration/RunAction.cc Outdated Show resolved Hide resolved
app/demo-geant-integration/RunAction.cc Outdated Show resolved Hide resolved
src/accel/AlongStepFactory.cc Outdated Show resolved Hide resolved
src/accel/AlongStepFactory.cc Outdated Show resolved Hide resolved
@sethrj sethrj changed the title Add UniformAlongStepFactory and other quality of life accel improvements Add UniformAlongStepFactory for Geant4 integration Mar 28, 2023
@sethrj
Copy link
Member Author

sethrj commented Mar 28, 2023

@whokion I saw you approved this, but do you have any further comments before merging? Does the new ability to set the magnetic field look ok?

@whokion
Copy link
Contributor

whokion commented Mar 28, 2023

@sethrj Sorry for the delay! Looks good to go (with the change for the exception related to energy_loss_fluct to a warning as you propose). Thanks!

@sethrj sethrj merged commit 26ed870 into celeritas-project:develop Mar 28, 2023
@sethrj sethrj deleted the accel-improvements branch March 28, 2023 20:49
@sethrj
Copy link
Member Author

sethrj commented Mar 28, 2023

Not a problem, thanks for the feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request external Dependencies and framework-oriented features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants