Skip to content

Instantly share code, notes, and snippets.

@xgarrido
Last active August 29, 2015 14:24
Show Gist options
  • Save xgarrido/f28cb4bf1247d85fea62 to your computer and use it in GitHub Desktop.
Save xgarrido/f28cb4bf1247d85fea62 to your computer and use it in GitHub Desktop.
An example of multi particles generator
[name="multi_particles" type="genbb::combined_particle_generator"]
#@config A model that generates several particles at the same time
#@description Logging priority
logging.priority : string = "warning"
#@description The mode ("timing", "plain_probability" or "activity")
mode : string = "time"
#@description The list of particle generators that compose the combo
generators.labels : string[3] = \
"gamma1" \
"gamma2" \
"gamma3"
#@description The name of the generator associated the "gamma1" contribution
generators.gamma1.name : string = "gamma.1MeV"
#@description The time mode associated to the "gamma1" contribution
generators.gamma1.time_mode : string = "fixed"
#@description The shift time associated to the "gamma1" contribution
generators.gamma1.fixed_time : real as time = 0 ns
#@description The name of the generator associated the "gamma2" contribution
generators.gamma2.name : string = "gamma.2MeV"
#@description The time mode associated to the "gamma2" contribution
generators.gamma2.time_mode : string = "fixed"
#@description The shift time associated to the "gamma2" contribution
generators.gamma2.fixed_time : real as time = 10 ns
#@description The name of the generator associated the "gamma3" contribution
generators.gamma3.name : string = "gamma.2615keV"
#@description The time mode associated to the "gamma3" contribution
generators.gamma3.time_mode : string = "decay"
#@description The half life time associated to the "gamma3" contribution
generators.gamma3.half_life : real as time = 10 ns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment