EDepSimFixedCountFactory.hh
Go to the documentation of this file.
1 #ifndef EDepSim_FixedCountFactory_hh_seen
2 #define EDepSim_FixedCountFactory_hh_seen
3 
5 
6 namespace EDepSim {class FixedCountFactory;}
8 public:
10  virtual ~FixedCountFactory();
11 
12  /// Return the fixed count generator.
14 
15  /// Set the count to be generated.
16  void SetNumber(int count) {fNumber = count;}
17 
18  /// Get the count to be generated.
19  int 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  int fNumber;
27 
28  G4UIcmdWithAnInteger* fNumberCMD;
29 };
30 
31 #endif
int GetNumber() const
Get the count to be generated.
void SetNewValue(G4UIcommand *, G4String)
Handle messages from the UI processor.
Construct a module from components.
Definition: TG4HitSegment.h:10
FixedCountFactory(EDepSim::UserPrimaryGeneratorMessenger *parent)
EDepSim::VCountGenerator * GetGenerator()
Return the fixed count generator.
int fNumber
The count of particles to generate.
void SetNumber(int count)
Set the count to be generated.
def parent(G, child, parent_type)
Definition: graph.py:67