SLIC  6.1.1
Simulation for the Linear Collider (SLIC) - Geant4 simulation application
G4MagIntegratorStepperFactory.hh
Go to the documentation of this file.
1 #ifndef SLIC_G4MAGINTEGRATORSTEPPERFACTORY_HH_
2 #define SLIC_G4MAGINTEGRATORSTEPPERFACTORY_HH_ 1
3 
4 // std
5 #include <string>
6 
7 // slic
8 #include "Module.hh"
9 #include "Singleton.hh"
10 
11 class G4MagIntegratorStepper;
12 class G4Mag_EqRhs;
13 class G4FieldManager;
14 class G4MagneticField;
15 
16 namespace slic {
17 
22 class G4MagIntegratorStepperFactory: public Singleton<G4MagIntegratorStepperFactory>, public Module {
23 
24  public:
25 
30 
35 
36  public:
37 
42  void setupG4MagIntegratorStepper(std::string name);
43 
44  private:
45 
50  G4MagIntegratorStepper* createG4MagIntegratorStepper(std::string name);
51 
52  private:
53  G4Mag_EqRhs* m_fieldEquations;
54  G4FieldManager* m_fieldMgr;
55  G4MagneticField* m_field;
56 };
57 }
58 
59 #endif
Instantiates and sets the G4MagIntegratorStepper based on name.
G4MagIntegratorStepper * createG4MagIntegratorStepper(std::string name)
Base class for slic code modules that provides common functionality, such as logging to an output str...
Definition: Module.hh:25
@ name
Definition: LogStream.hh:26