Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4QSSDriverCreator Class Reference

#include <G4QSSDriverCreator.hh>

Static Public Member Functions

static G4VIntegrationDriverCreateDriver (G4MagIntegratorStepper *pStepper, G4double)
 
static G4QSSDriver< G4QSStepper< G4QSS2 > > * CreateDriver (G4QSStepper< G4QSS2 > *qss2stepper)
 
static G4QSSDriver< G4QSStepper< G4QSS3 > > * CreateDriver (G4QSStepper< G4QSS3 > *qss3stepper)
 
static G4QSStepper< G4QSS2 > * CreateQss2Stepper (G4Mag_EqRhs *Equation)
 
static G4QSStepper< G4QSS3 > * CreateQss3Stepper (G4Mag_EqRhs *Equation)
 
static G4VIntegrationDriverCreateQss2Driver (G4Mag_EqRhs *Equation)
 
static G4VIntegrationDriverCreateQss3Driver (G4Mag_EqRhs *Equation)
 

Detailed Description

Definition at line 42 of file G4QSSDriverCreator.hh.

Member Function Documentation

◆ CreateDriver() [1/3]

G4VIntegrationDriver * G4QSSDriverCreator::CreateDriver ( G4MagIntegratorStepper * pStepper,
G4double  )
static

Definition at line 46 of file G4QSSDriverCreator.cc.

47{
48 G4VIntegrationDriver* driver = nullptr;
49// pStepper->build_driver(stepMinimum, true); // Original - QSS
50 auto qss2stepper = dynamic_cast<G4QSStepper<G4QSS2>*>(pStepper);
51 if( qss2stepper != nullptr ) {
52 // driver = new G4QSSDriver<G4QSStepper<G4QSS2>>(qss2stepper);
53 driver = CreateDriver( qss2stepper );
54 }
55 auto qss3stepper = dynamic_cast<G4QSStepper<G4QSS3>*>(pStepper);
56 if( qss3stepper != nullptr ) {
57 // driver = new G4QSSDriver<G4QSStepper<G4QSS3>>(qss3stepper);
58 driver= CreateDriver( qss3stepper );
59 }
60 return driver;
61}
static G4VIntegrationDriver * CreateDriver(G4MagIntegratorStepper *pStepper, G4double)

Referenced by CreateDriver(), CreateQss2Driver(), CreateQss3Driver(), and G4ChordFinder::G4ChordFinder().

◆ CreateDriver() [2/3]

G4QSSDriver< G4QSStepper< G4QSS2 > > * G4QSSDriverCreator::CreateDriver ( G4QSStepper< G4QSS2 > * qss2stepper)
static

Definition at line 64 of file G4QSSDriverCreator.cc.

65{
66 G4cout << "---- G4QSSDriver<G4QSS2>* G4QSSDriverCreator::CreateDriver(G4QSStepper<G4QSS2>* ) called.\n";
67 return new G4QSSDriver<G4QSStepper<G4QSS2>>(qss2stepper);
68}
G4GLOB_DLL std::ostream G4cout

◆ CreateDriver() [3/3]

G4QSSDriver< G4QSStepper< G4QSS3 > > * G4QSSDriverCreator::CreateDriver ( G4QSStepper< G4QSS3 > * qss3stepper)
static

Definition at line 73 of file G4QSSDriverCreator.cc.

74{
75 G4cout << "---- G4QSSDriver<G4QSS3>* G4QSSDriverCreator::CreateDriver(G4QSStepper<G4QSS3>* ) called.\n";
76 return new G4QSSDriver<G4QSStepper<G4QSS3>>(qss3stepper);
77}

◆ CreateQss2Driver()

G4VIntegrationDriver * G4QSSDriverCreator::CreateQss2Driver ( G4Mag_EqRhs * Equation)
static

Definition at line 91 of file G4QSSDriverCreator.cc.

92{
93 assert( dynamic_cast<G4Mag_UsualEqRhs*>(Equation) != nullptr );
94 // assert( Equation->GetNumberOfVariables() == numOfVars );
95
96 auto qss2stepper = G4QSStepper<G4QSS2>::build_QSS2( Equation, numOfVars, true);
97 return CreateDriver( qss2stepper );
98}
static G4QSStepper< G4QSS2 > * build_QSS2(G4EquationOfMotion *EqRhs, G4int numberOfVariables=6, G4bool primary=true)

◆ CreateQss2Stepper()

static G4QSStepper< G4QSS2 > * G4QSSDriverCreator::CreateQss2Stepper ( G4Mag_EqRhs * Equation)
static

◆ CreateQss3Driver()

G4VIntegrationDriver * G4QSSDriverCreator::CreateQss3Driver ( G4Mag_EqRhs * Equation)
static

Definition at line 100 of file G4QSSDriverCreator.cc.

102{
103 assert( dynamic_cast<G4Mag_UsualEqRhs*>(Equation) != nullptr );
104 // assert( Equation->GetNumberOfVariables() == numOfVars );
105
106 auto qss3stepper = G4QSStepper<G4QSS3>::build_QSS3( Equation, numOfVars, true);
107 return CreateDriver( qss3stepper );
108}
static G4QSStepper< G4QSS3 > * build_QSS3(G4EquationOfMotion *EqRhs, G4int numberOfVariables=6, G4bool primary=true)

◆ CreateQss3Stepper()

G4QSStepper< G4QSS3 > * G4QSSDriverCreator::CreateQss3Stepper ( G4Mag_EqRhs * Equation)
static

Definition at line 85 of file G4QSSDriverCreator.cc.

86{
87 G4cout << "---- G4QSStepper<G4QSS3>* CreateQss3Stepper(G4Mag_EqRhs* ) CALLED\n";
88 return G4QSStepper<G4QSS3>::build_QSS3( Equation, numOfVars, true);
89}

Referenced by G4ChordFinder::G4ChordFinder().


The documentation for this class was generated from the following files: