Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

FastShower::SetDistribution Class Reference

Class for sampling a general distribution. More...

#include <SetDistribution.h>

Collaboration diagram for FastShower::SetDistribution:

Collaboration graph
[legend]
List of all members.

Public Methods

 SetDistribution (IFnOfParticleParameters *, IFnOfParticleParameters *, IProcessedDist *, IDistProcessorFactory *)
double sample (double, double, const ParticleParameters &)

Private Attributes

SP< IProcessedDistm_dist
 Processed Dist to use (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.


Detailed Description

Class for sampling a general distribution.

UML: IDistributionClass.unm

This class samples a distribution, characterised by two parameters (eg mean, sigma; lower and upper limits) which are set 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)

Definition at line 25 of file SetDistribution.h.


Constructor & Destructor Documentation

FastShower::SetDistribution::SetDistribution IFnOfParticleParameters  ,
IFnOfParticleParameters  ,
IProcessedDist  ,
IDistProcessorFactory *   
 


Member Function Documentation

double FastShower::SetDistribution::sample double   ,
double   ,
const ParticleParameters  
 


Member Data Documentation

SP<IProcessedDist> FastShower::SetDistribution::m_dist [private]
 

Processed Dist to use (flat or normal).

Definition at line 35 of file SetDistribution.h.

SP<IDistProcessorFactory> FastShower::SetDistribution::m_pdFactory [private]
 

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 39 of file SetDistribution.h.


The documentation for this class was generated from the following file:
Generated on Tue Mar 18 11:58:24 2003 for FastShowerUtils by doxygen1.3-rc1