Repository navigation
Implement external generator for Monopoles - #2557
Open
jackal1-66 wants to merge 1 commit into
Open
jackal1-66 wants to merge 1 commit into
jackal1-66 wants to merge 1 commit into
Conversation
|
REQUEST FOR PRODUCTION RELEASES: This will add The following labels are available |
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.
This PR adds a configurable external generator for magnetic monopoles to O2DPG, so that monopole
samples can be produced from a highly configurable JSON configuration. A new BSM folder is also created to contain the future generators of the newly created PAG.
Two production modes are available at the moment, selected by
"mode":schwinger— a monopole/antimonopole pair, back-to-back in the pair rest frame, as producedby the Schwinger mechanism in the field of an ultraperipheral heavy-ion collision. The default
spectrum is Maxwell–Jüttner,
dN/dp ∝ p² exp(-√(p²+m²)/T)withT = 18.37 GeV, obtained from anunbinned maximum-likelihood fit to the reference PbPb HepMC samples. @igor Ostrovskiy if you could check this specific part it would be highly appreciated. The temperature was fitted from your data, but if you have a specific value I can just set it there.
single— independent single monopoles, charge sign fixed or random.The idea is that in the future people could add more simulation modes by using the same external generator.
Every quantity — mass, magnetic charge, multiplicity, momentum, direction, azimuth, vertex, recoil —
is a value spec: a fixed number, a weighted list, or a draw from
uniform,loguniform,gaus,exp,powerlaw,poisson,thermalor an arbitraryformula(anyTFormula), with optionaltruncation,
"integer": trueand"sampleOnce": true. Non-analytic shapes are drawn from atabulated inverse CDF built once at startup. The momentum magnitude can be given as
p,pt,ekinoretotand the direction aseta,y,thetaorcostheta. Unknown JSON keys will cause an error during execution, so that the users do not lose time generating with an unwanted configuration.The transported monopole mass and magnetic charge are transport settings (
G4.monopoleMass,G4.monopoleMagneticCharge) and are read in a different process than the generator, soit cannot set them. They have to be given on the command line or, as in the ini file here,
in a
[G4]section. The generator reads them back and refuses to start when they disagree with itsown configuration (
transport.onMismatch:fatalby default,warn,ignore). When the JSONleaves the mass or the charge open and the transport key was given explicitly, the transport value
is adopted, so a mass scan is one JSON file plus a varying
G4.monopoleMass.I validated the full development using both standalone o2-sim and O2DPG workflows, running multiple pass with various configurations.