EDepSimVCountFactory.hh
Go to the documentation of this file.
1 #ifndef EDepSim_VCountFactory_hh_seen
2 #define EDepSim_VCountFactory_hh_seen
3 
5 
6 namespace EDepSim {class VCountGenerator;}
7 
8 namespace EDepSim {class VCountFactory;}
10 public:
11  VCountFactory(G4String name,
13  bool makeDirectory=true);
14  virtual ~VCountFactory();
15 
16  /// Return a new generator enclosing the current factory state. The new
17  /// generator method is pure virtual so it must be implemented by derived
18  /// classes.
20 
21  /// Set the intensity
22  void SetIntensity(double v) {fIntensity = v;}
23 
24  /// Get the intensity. For a beam spill MC, this will represent the
25  /// protons per pulse.
26  double GetIntensity() const { return fIntensity;}
27 
28  /// Handle messages from the UI processor.
29  void SetNewValue(G4UIcommand*, G4String);
30 
31 private:
32  G4UIcmdWithADouble* fIntensityCMD;
33 
34  /// The intensity for this event. This is only documentation and is saved
35  /// in the MC header. For a beam spill MC, this will represent the
36  /// protons per pulse.
37  double fIntensity;
38 };
39 #endif
static QCString name
Definition: declinfo.cpp:673
virtual EDepSim::VCountGenerator * GetGenerator()=0
G4UIcmdWithADouble * fIntensityCMD
EDepSim::UserPrimaryGeneratorMessenger * fParent
The messenger that is holding this set of sub-commands.
Construct a module from components.
Definition: TG4HitSegment.h:10
void SetNewValue(G4UIcommand *, G4String)
Handle messages from the UI processor.
VCountFactory(G4String name, EDepSim::UserPrimaryGeneratorMessenger *fParent, bool makeDirectory=true)
void SetIntensity(double v)
Set the intensity.