Public Member Functions | Private Attributes | List of all members
EDepSim::MeanCountGenerator Class Reference

#include <EDepSimMeanCountGenerator.hh>

Inheritance diagram for EDepSim::MeanCountGenerator:
EDepSim::VCountGenerator

Public Member Functions

 MeanCountGenerator (G4String name, double mean, double intensity)
 
virtual ~MeanCountGenerator ()
 
int GetCount ()
 Return the number of events to generate. More...
 
- Public Member Functions inherited from EDepSim::VCountGenerator
 VCountGenerator (const G4String &name, double intensity)
 
virtual ~VCountGenerator ()
 
G4String GetName () const
 Return the name of the generator. More...
 
double GetIntensity () const
 

Private Attributes

double fMean
 The number of events to generate. More...
 

Detailed Description

Definition at line 7 of file EDepSimMeanCountGenerator.hh.

Constructor & Destructor Documentation

EDepSim::MeanCountGenerator::MeanCountGenerator ( G4String  name,
double  mean,
double  intensity 
)

Definition at line 6 of file EDepSimMeanCountGenerator.cc.

9  : EDepSim::VCountGenerator(name, intensity), fMean(mean) {}
static QCString name
Definition: declinfo.cpp:673
double fMean
The number of events to generate.
double mean(sqlite3 *db, std::string const &table_name, std::string const &column_name)
Definition: statistics.cc:16
EDepSim::MeanCountGenerator::~MeanCountGenerator ( )
virtual

Definition at line 11 of file EDepSimMeanCountGenerator.cc.

11 {}

Member Function Documentation

int EDepSim::MeanCountGenerator::GetCount ( )
virtual

Return the number of events to generate.

Implements EDepSim::VCountGenerator.

Definition at line 13 of file EDepSimMeanCountGenerator.cc.

13  {
14  return G4Poisson(fMean);
15 }
double fMean
The number of events to generate.

Member Data Documentation

double EDepSim::MeanCountGenerator::fMean
private

The number of events to generate.

Definition at line 17 of file EDepSimMeanCountGenerator.hh.


The documentation for this class was generated from the following files: