20 #include "Param/Distrib/Distributions.h"
23 ParameterDistribution::WhichParameter which)
const
29 const auto nbrOfSamples = d->numberOfSamples();
30 const double sigmaFactor = d->hasSigmaFactor() ? d->sigmaFactor() : 0.0;
31 const auto limits = d->limits().scaledLimits(
scaleFactor());
33 return std::make_unique<ParameterDistribution>(which, *distribution1D, nbrOfSamples,
Defines class BeamDistributionItem.
Defines class DistributionItemCatalog.
Defines class DoubleDescriptor.
SelectionDescriptor< DistributionItem * > distributionSelection() const
DistributionItem * distribution() const
void setDistribution(DistributionItem *d)
virtual std::unique_ptr< IDistribution1D > createDistribution1D() const
void resetToValue(double value)
virtual double scaleFactor() const
std::unique_ptr< ParameterDistribution > getParameterDistributionForName(ParameterDistribution::WhichParameter which) const
SelectionProperty< DistributionItem * > m_distribution
virtual double meanValue() const
virtual std::unique_ptr< IDistribution1D > createDistribution(double scale=1.0) const =0
Describes a selection (various possibilities and the current one).
void set(T t, bool callInitializer=false)
Directly set the new item.
T get() const
Direct access to the stored pointer.