EDepSimMeanCountFactory.hh
Go to the documentation of this file.
1 #ifndef EDepSim_MeanCountFactory_hh_seen
2 #define EDepSim_MeanCountFactory_hh_seen
3 
5 
6 namespace EDepSim {class MeanCountFactory;}
8 public:
10  virtual ~MeanCountFactory();
11 
12  /// Return the mean count generator.
14 
15  /// Set the count to be generated.
16  void SetNumber(double mean) {fNumber = mean;}
17 
18  /// Get the count to be generated.
19  double GetNumber() const {return fNumber;}
20 
21  /// Handle messages from the UI processor.
22  void SetNewValue(G4UIcommand*, G4String);
23 
24 private:
25  /// The count of particles to generate.
26  double fNumber;
27 
28  G4UIcmdWithADouble* fNumberCMD;
29 };
30 
31 #endif
EDepSim::VCountGenerator * GetGenerator()
Return the mean count generator.
double fNumber
The count of particles to generate.
Construct a module from components.
Definition: TG4HitSegment.h:10
double GetNumber() const
Get the count to be generated.
MeanCountFactory(EDepSim::UserPrimaryGeneratorMessenger *parent)
void SetNumber(double mean)
Set the count to be generated.
void SetNewValue(G4UIcommand *, G4String)
Handle messages from the UI processor.
double mean(sqlite3 *db, std::string const &table_name, std::string const &column_name)
Definition: statistics.cc:16
def parent(G, child, parent_type)
Definition: graph.py:67