#include <UpdatingDistribution.h>
Collaboration diagram for FastShower::UpdatingDistribution:
Public Methods | |
UpdatingDistribution (IFnOfParticleParameters< double > *, IFnOfParticleParameters< double > *, IProcessedDist *, IDistProcessorFactory *) | |
double | sample (const ParticleParameters &) |
std::pair< double, double > | parameters (const ParticleParameters &) |
Tail distributions (eg) need to get peak mean, sigma (eg) to establish their own range. | |
Private Attributes | |
SP< IFnOfParticleParameters > | par1 |
Two functions to supply the DistProcessors with parameters. | |
SP< IFnOfParticleParameters > | par2 |
IProcessedDist * | m_dist |
ProcessedDists can be flat or normal. | |
SP< IDistProcessorFactory > | m_pdFactory |
reurns DistProcessor - which to return is decided by the factory which DistProcessor to provided is decided by the factory which is supplied at construction time. |
UML: IDistributionClass.unm
This class samples a distribution, characterised by two parameters (eg mean, sigma; lower and upper limits) which are calulated on sampling.
The underlying distribution (at present a flat or normal - these are what are available from CLHEP). This is converted to the desired distribution via an IProcessor (eg to go from normal to gaussian)
the parameters (mean and sigma for a guassian) are made calculated on each sample, and are available to the client. This is useful, eg, for tail distributions whose limits are a function of the peak distribution.
Definition at line 29 of file UpdatingDistribution.h.
|
|
|
|
|
Tail distributions (eg) need to get peak mean, sigma (eg) to establish their own range.
|
|
Two functions to supply the DistProcessors with parameters.
Definition at line 42 of file UpdatingDistribution.h. |
|
Definition at line 43 of file UpdatingDistribution.h. |
|
ProcessedDists can be flat or normal.
Definition at line 45 of file UpdatingDistribution.h. |
|
reurns DistProcessor - which to return is decided by the factory which DistProcessor to provided is decided by the factory which is supplied at construction time.
Definition at line 49 of file UpdatingDistribution.h. |