Repository navigation
Implement external generator for Monopoles - #2557
jackal1-66 wants to merge 1 commit into
Conversation
|
REQUEST FOR PRODUCTION RELEASES: This will add The following labels are available |
|
Thanks for this nice and very complete generator. I tested it with O2sim v20261123 on an EL9 machine: the CI-style runs ( However, there are a few things that I would recommend fixing before merging:
Two smaller points:
Note that this is the only O2DPG ini that compiles its macro with ACLiC, which costs about 30 s per job. I confirmed that cling fails without the |
8a21443 to
5b91a2f
Compare
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.