Generation

Configuration related to the generation phase.

class Gaussino.Generation.GenPhase(*args, **kwargs)[source]

Bases: ConfigurableUser

Configurable for the Generation phase in Gaussino. Does not implement a self.__apply_configuration__ itself. Instead, all member functions are explicitly called during the configuration of Gaussino()

Variables:
  • BeamMomentum (float, optional) – default: 3.5 * SystemOfUnits.TeV

  • BeamHCrossingAngle (float, optional) – default: -0.520 * SystemOfUnits.mrad

  • BeamVCrossingAngle (float, optional) – default: 0.0

  • BeamEmittance (float, optional) – default: 0.0037 * SystemOfUnits.mm

  • BeamBetaStar (float, optional) – default: 3.1 * SystemOfUnits.m

  • BeamLineAngles (list, optional) – default: [-0.075 * SystemOfUnits.mrad, 0.035 * SystemOfUnits.mrad]

  • InteractionPosition (list, optional) – default: [0.459 * SystemOfUnits.mm, -0.015 * SystemOfUnits.mm, 0.5 * SystemOfUnits.mm]

  • BunchRMS (float, optional) – default: 82.03 * SystemOfUnits.mm

  • Luminosity (float, optional) – default: 0.247 * (10 ** 30) / (SystemOfUnits.cm2 * SystemOfUnits.s)

  • TotalCrossSection (float, optional) – default: 91.1 * SystemOfUnits.millibarn

  • B2Momentum (float, optional) – default: 3.5 * SystemOfUnits.TeV

  • B1Particle (str, optional) – default: 'p'

  • B2Particle (str, optional) – default: 'p'

  • EvtMax (int, optional) – default: -1

  • WriteHepMC (bool, optional) – default: False

  • GenMonitor (bool, optional) – default: False

  • ParticleGun (bool, optional) – default: False

  • ParticleGunUseDefault (bool, optional) – default: False

  • Production_kwargs (dict, optional) – default: {}

  • ConvertEDM (bool, optional) – default: False

  • SampleGenerationTool (str, optional) – default: 'SignalPlain'

  • SampleGenerationToolOpts (dict, optional) – default: {}

  • PileUpTool (str, optional) – default: 'FixedLuminosityWithSvc'

  • ProductionTool (str, optional) – default: 'Pythia8Production'

  • ProductionToolOpts (dict, optional) – default: {}

  • DecayTool (str, optional) – default: ''

  • CutTool (str, optional) – default: ''

  • CutToolOpts (dict, optional) – default: {}

  • FullGenEventTool (str, optional) – default: ''

  • FullGenEventToolOpts (dict, optional) – default: {}

__apply_configuration__()

Function to be overridden to convert the high level configuration into a low level one. The default implementation calls applyConf, which is the method defined in some ConfigurableUser implementations.

configure_generation(seq)[source]

Configuration method for the generation other than a particle gun.

Parameters:

seq – list of algorithms

configure_genonly()[source]

Method that is used when only the generation phase is used.

configure_pgun(seq)[source]

Simple utility function to create and configure an instance of particle gun

Parameters:

seq – list of algorithms

configure_phase()[source]

Main configuration method for the generation phase.

setOtherProp(other, name)[source]

Set the given property in another configurable object

Parameters:
  • other – The other configurable to set the property for

  • name – The property name

setOtherProps(other, names)[source]

Set the given properties in another configurable object

Parameters:
  • other – The other configurable to set the property for

  • names – The property names