EDepSimFixedTimeFactory.hh
Go to the documentation of this file.
1 #ifndef EDepSim_FixedTimeFactory_hh_seen
2 #define EDepSim_FixedTimeFactory_hh_seen
3 
5 
6 namespace EDepSim {class FixedTimeFactory;}
8 public:
10  virtual ~FixedTimeFactory();
11 
12  /// Return the fixed time generator.
14 
15  /// Set the time to be generated.
16  void SetTime(double time) {fTime = time;}
17 
18  /// Get the time to be generated.
19  double GetTime() const {return fTime;}
20 
21  /// Handle messages from the UI processor.
22  void SetNewValue(G4UIcommand*, G4String);
23 
24 private:
25  /// The time of particles to generate.
26  double fTime;
27 
28  G4UIcmdWithADoubleAndUnit* fTimeCMD;
29 };
30 
31 #endif
FixedTimeFactory(EDepSim::UserPrimaryGeneratorMessenger *parent)
EDepSim::VTimeGenerator * GetGenerator()
Return the fixed time generator.
void SetTime(double time)
Set the time to be generated.
G4UIcmdWithADoubleAndUnit * fTimeCMD
double GetTime() const
Get the time to be generated.
Construct a module from components.
Definition: TG4HitSegment.h:10
double fTime
The time of particles to generate.
void SetNewValue(G4UIcommand *, G4String)
Handle messages from the UI processor.
def parent(G, child, parent_type)
Definition: graph.py:67