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

#include <EDepSimMeanCountFactory.hh>

Inheritance diagram for EDepSim::MeanCountFactory:
EDepSim::VCountFactory EDepSim::VPrimaryFactory

Public Member Functions

 MeanCountFactory (EDepSim::UserPrimaryGeneratorMessenger *parent)
 
virtual ~MeanCountFactory ()
 
EDepSim::VCountGeneratorGetGenerator ()
 Return the mean count generator. More...
 
void SetNumber (double mean)
 Set the count to be generated. More...
 
double GetNumber () const
 Get the count to be generated. More...
 
void SetNewValue (G4UIcommand *, G4String)
 Handle messages from the UI processor. More...
 
- Public Member Functions inherited from EDepSim::VCountFactory
 VCountFactory (G4String name, EDepSim::UserPrimaryGeneratorMessenger *fParent, bool makeDirectory=true)
 
virtual ~VCountFactory ()
 
void SetIntensity (double v)
 Set the intensity. More...
 
double GetIntensity () const
 
void SetNewValue (G4UIcommand *, G4String)
 Handle messages from the UI processor. More...
 
- Public Member Functions inherited from EDepSim::VPrimaryFactory
 VPrimaryFactory (G4String subdir, G4String name, EDepSim::UserPrimaryGeneratorMessenger *parent, bool makeDirectory)
 
virtual ~VPrimaryFactory ()
 
G4String GetPath () const
 
G4String GetName () const
 
G4String GetSubDir () const
 

Private Attributes

double fNumber
 The count of particles to generate. More...
 
G4UIcmdWithADouble * fNumberCMD
 

Additional Inherited Members

- Protected Member Functions inherited from EDepSim::VPrimaryFactory
G4String CommandName (G4String cmd)
 Build a command name with the directory prefix. More...
 

Detailed Description

Definition at line 7 of file EDepSimMeanCountFactory.hh.

Constructor & Destructor Documentation

EDepSim::MeanCountFactory::MeanCountFactory ( EDepSim::UserPrimaryGeneratorMessenger parent)

Definition at line 5 of file EDepSimMeanCountFactory.cc.

7  : EDepSim::VCountFactory("mean",parent), fNumber(1.0) {
8 
9  fNumberCMD = new G4UIcmdWithADouble(CommandName("number"),this);
10  fNumberCMD->SetGuidance("Set the mean number of events to generate.");
11  fNumberCMD->SetParameterName("mean",false);
12 
13 }
double fNumber
The count of particles to generate.
G4String CommandName(G4String cmd)
Build a command name with the directory prefix.
EDepSim::MeanCountFactory::~MeanCountFactory ( )
virtual

Definition at line 15 of file EDepSimMeanCountFactory.cc.

15  {
16  delete fNumberCMD;
17 }

Member Function Documentation

EDepSim::VCountGenerator * EDepSim::MeanCountFactory::GetGenerator ( )
virtual

Return the mean count generator.

Implements EDepSim::VCountFactory.

Definition at line 29 of file EDepSimMeanCountFactory.cc.

double EDepSim::MeanCountFactory::GetNumber ( ) const
inline

Get the count to be generated.

Definition at line 19 of file EDepSimMeanCountFactory.hh.

19 {return fNumber;}
double fNumber
The count of particles to generate.
void EDepSim::MeanCountFactory::SetNewValue ( G4UIcommand *  command,
G4String  newValue 
)
virtual

Handle messages from the UI processor.

Reimplemented from EDepSim::VPrimaryFactory.

Definition at line 19 of file EDepSimMeanCountFactory.cc.

20  {
21  if (command == fNumberCMD) {
22  SetNumber(fNumberCMD->GetNewDoubleValue(newValue));
23  }
24  else {
26  }
27 }
int command
void SetNewValue(G4UIcommand *, G4String)
Handle messages from the UI processor.
void SetNumber(double mean)
Set the count to be generated.
void EDepSim::MeanCountFactory::SetNumber ( double  mean)
inline

Set the count to be generated.

Definition at line 16 of file EDepSimMeanCountFactory.hh.

16 {fNumber = mean;}
double fNumber
The count of particles to generate.
double mean(sqlite3 *db, std::string const &table_name, std::string const &column_name)
Definition: statistics.cc:16

Member Data Documentation

double EDepSim::MeanCountFactory::fNumber
private

The count of particles to generate.

Definition at line 26 of file EDepSimMeanCountFactory.hh.

G4UIcmdWithADouble* EDepSim::MeanCountFactory::fNumberCMD
private

Definition at line 28 of file EDepSimMeanCountFactory.hh.


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