Gaussino¶
Main configuration¶
- class Gaussino.Configuration.Gaussino(*args, **kwargs)[source]¶
Bases:
GaussinoConfigurableMain Configurable of Gaussino. It is dedicated to the confiuration of general properties. Please, visit other configurables for more options:
GaussinoGeneration(configuration of the generation phase)GaussinoSimulation(configuration of the simulation phase)GaussinoGeometry(configuration of the geometry)
Main
- Variables
EvtMax (int, required) – default:
-1, no. of event to produce, must be > 0Phases (list, optional) – default:
["Generator","Simulation"], possible only:["Generator", "Simulation"]or["Generation"]FirstEventNumber (int, optional) – default:
1RunNumber (int, optional) – default:
1
Output
- Variables
Histograms (str, optional) – default:
"DEFAULT"DatasetName (str, optional) – default:
"Gaussino"DatasetNameForced (bool, optional) – default:
FalseOutputType (str, optional) – default:
'SIM'
Multi-threading
- Variables
EnableHive (bool, optional) – default:
True, must be always set (for now)ThreadPoolSize (int, optional) – default:
1EventSlots (int, optional) – default:
1TimingSkipAtStart (int, optional) – default:
1
Other
- Variables
Debug (bool, optional) – default:
False, increase verbosity for the whole applicationReDecay (bool, optional) – default:
FalseConvertEDM (bool, optional) – default:
FalseParticleTable (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
EvtMaxis not provided
- _configure_generation_phase()[source]¶
Configures a subset of properties of the generation phase and propagates them to
GaussinoGeneration.- Raises
ValueError – if the
Generatorphase is not provided
- _configure_rnd_init()[source]¶
Creates the algorithm responsible for the seed generation. It is either
GenRndInitorGenReDecayInit
- _configure_simulation_phase()[source]¶
Configures a subset of properties of the simulation phase and propagates them to
GaussinoSimulation.
- _get_output_name()[source]¶
Build a name for the output file, based on input options. Combines DatasetName, EventType, Number of events and Date
- _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!
- _setup_hive()[source]¶
Enables Hive event loop manager. this is a very similar method as in LHCbApp
- Raises
ValueError – if
EnableHiveis disabled
- static edm_algorithms(redecay=False)[source]¶
Sets up a special algorithm responsible for linking
MCParticlesandMCVerticestoMCHitsviaLinkedParticle. It is either:ReDecayMCTruthToEDMwhen in ReDeacay mode,MCTruthToEDMotherwise.
- Parameters
redecay (bool, optional) – Using Redecay or not. Defaults to False.
- Returns
list of needed EDM algorithms
- Return type
list