GeneratorConfig

struct GeneratorConfig

Tunable parameters of EventGenerator.

Public Members

std::size_t target_count

Number of unweighted events to generate.

double vegas_damping

Damping factor of the VEGAS grid updates; see VegasGridOptimizer.

double max_overweight_truncation

Fraction of the weight distribution’s tail truncated when estimating the unweighting efficiency.

std::size_t freeze_max_weight_after

Number of survey events after which the maximum weight estimate is frozen.

std::size_t start_batch_size

Initial number of events per generation batch.

std::size_t max_batch_size

Largest allowed number of events per generation batch.

std::size_t survey_min_iters

Minimum number of VEGAS/channel-weight survey iterations.

std::size_t survey_max_iters

Maximum number of survey iterations.

double survey_target_precision

Target relative precision of the survey’s integral estimate.

std::size_t optimization_patience

Number of consecutive non-improving iterations tolerated before the survey stops optimizing.

double optimization_threshold

Minimum relative improvement counted as progress by optimization_patience.

std::size_t cpu_batch_size

Batch size used on a CPU device.

std::size_t gpu_batch_size

Batch size used on a GPU device.

Verbosity verbosity

Progress-reporting verbosity.

bool write_live_data

If true, periodically write live progress data to disk.

int combine_thread_count

Thread count used to combine per-channel event files; -1 for the hardware concurrency.

double cut_efficiency_threshold

Minimum acceptable fraction of events surviving fiducial cuts before a warning is raised.

std::size_t max_cut_repetitions

Maximum number of times a batch is resampled to reach cut_efficiency_threshold.

double finish_remaining_fraction

Fraction of the target count below which the generator switches to finishing up the remaining events.

double max_batch_fraction

Largest fraction of the target count schedulable in a single batch.

double batch_overshoot_sigma

Number of standard deviations of headroom added when sizing a batch, to avoid overshooting the target count.