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:
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:
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 applicationReDecay (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_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
orGenReDecayInit
- _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
EnableHive
is disabled
- static edm_algorithms(redecay=False)[source]
Sets up a special algorithm responsible for linking
MCParticles
andMCVertices
toMCHits
viaLinkedParticle
. 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