Gaussino

Main configuration

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

Bases: GaussinoConfigurable

Main Configurable of Gaussino. It is dedicated to the confiuration of general properties. Please, visit other configurables for more options:

Main

Variables:
  • EvtMax (int, required) – default: -1, no. of event to produce, must be > 0

  • Phases (list, optional) – default: ["Generator","Simulation"], possible only: ["Generator", "Simulation"] or ["Generation"]

  • FirstEventNumber (int, optional) – default: 1

  • RunNumber (int, optional) – default: 1

Output

Variables:
  • Histograms (str, optional) – default: "DEFAULT"

  • DatasetName (str, optional) – default: "Gaussino"

  • DatasetNameForced (bool, optional) – default: False

  • OutputType (str, optional) – default: 'SIM'

Multi-threading

Variables:
  • EnableHive (bool, optional) – default: True, must be always set (for now)

  • ThreadPoolSize (int, optional) – default: 1

  • EventSlots (int, optional) – default: 1

  • FirstTimingEvent (int, optional) – default: 1

Other

Variables:
  • Debug (bool, optional) – default: False, increase verbosity for the whole application

  • ReDecay (bool, optional) – default: False

  • ConvertEDM (bool, optional) – default: False

  • ParticleTable (str, optional) – default: '$GAUSSINOROOT/data/ParticleTable.txt'

__apply_configuration__()[source]

Main configuration method for Gaussino. It is called as the first one, and then propagates the properties to: - GaussinoGeneration, - GaussinoSimulation, - GaussinoGeometry.

_check_options_compatibility()[source]

Checks the general compatibility of the properties.

Raises:

ValueError – if EvtMax is not provided

_configure_edm_conversion()[source]

Sets up EDM algorithms for Gaussino.

_configure_generation_phase()[source]

Configures a subset of properties of the generation phase and propagates them to GaussinoGeneration.

Raises:

ValueError – if the Generator phase is not provided

_configure_rnd_init()[source]

Creates the algorithm responsible for the seed generation. It is either GenRndInit or GenReDecayInit

_configure_services()[source]

Sets up the general Gaudi services needed in Gaussino.

_get_output_name()[source]

Build a name for the output file, based on input options. Combines DatasetName, EventType, Number of events and Date

_set_ML_options()[source]

Sets up the ML options.

_set_auditor_service()[source]

Sets up the auditor service: AuditorSvc.

_set_debug_mode()[source]

Sets up the debug mode in python logger and all the configurables.

_set_histogram_service()[source]

Sets up the service responsible for producing histograms.

Raises:

ValueError – when unknown option in the list of Historgrams

_set_particle_property_service()[source]

Sets up the particle property service.

Todo

LHCb project dependency!

_set_redecay_service()[source]

Sets up a dedicated service when using ReDecay: ReDecaySvc.

_setup_geant4MT()[source]

Sets up the Geant4 multi-threading options.

_setup_hive()[source]

Enables Hive event loop manager. this is a very similar method as in LHCbApp

Raises:

ValueError – if EnableHive is disabled

static edm_algorithms(redecay=False)[source]

Sets up a special algorithm responsible for linking MCParticles and MCVertices to MCHits via LinkedParticle. It is either:

  • ReDecayMCTruthToEDM when in ReDeacay mode,

  • MCTruthToEDM otherwise.

Parameters:

redecay (bool, optional) – Using Redecay or not. Defaults to False.

Returns:

list of needed EDM algorithms

Return type:

list