Import Geant4 10.5.0 source tree

This commit is contained in:
Gabriele Cosmo
2018-12-07 15:15:39 +01:00
parent 6aa23be517
commit db49709b53
11370 changed files with 187480 additions and 160142 deletions
@@ -27,17 +27,15 @@
/// \brief Definition of the F01FieldSetup class
//
//
// $Id: F01FieldSetup.hh 90341 2015-05-26 08:38:36Z gcosmo $
//
//
// A class for control of the Magnetic Field of the detector.
// The field is assumed to be uniform.
//
// Should this be a:
// i) messenger
// ii) user class that creates the field ?
// iii) simply a derived class of Uniform field ? <== I have chosen this now.
// iv) a field manager that creates/updates field (Prefered?)
// i) a messenger class
// ii) user class that creates the field ( Current choice )
// iii) a field manager that creates/updates field
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -52,13 +50,19 @@ class G4FieldManager;
class G4ChordFinder;
class G4Mag_UsualEqRhs;
class G4MagIntegratorStepper;
class G4VIntegrationDriver;
class F01FieldMessenger;
class F01FieldSetup
{
public:
F01FieldSetup(G4ThreeVector); // The value of the field
F01FieldSetup(G4ThreeVector, // The value of the field
G4int stepperNum = -1000, // -ive = fsal, +ive = old.
// default (-1000) uses next flag
G4bool useFSALstepper= false );
F01FieldSetup(); // A zero field
F01FieldSetup( F01FieldSetup & ) = delete;
virtual ~F01FieldSetup();
@@ -70,29 +74,42 @@ public:
void SetMinStep(G4double s) { fMinStep = s; }
void InitialiseAll(); // Set parameters and call method below
// Original method -
void CreateStepperAndChordFinder();
// New method - create FSAL stepper and driver
void CreateFSALStepperAndChordFinder();
void SetFieldValue(G4ThreeVector fieldVector);
void SetFieldValue(G4double fieldValue);
void SetFieldZValue(G4double fieldValue);
G4ThreeVector GetConstantFieldValue();
void SetUseFSALstepper(G4bool val= true) { fUseFSALstepper = val; }
G4bool GetUseFSALstepper() { return fUseFSALstepper; }
protected:
// Implementation methods
G4VIntegrationDriver* CreateFSALStepperAndDriver();
// Find the global Field Manager
G4FieldManager* GetGlobalFieldManager();
protected:
// Find the global Field Manager
G4FieldManager* fFieldManager = nullptr;
G4ChordFinder* fChordFinder = nullptr;
G4Mag_UsualEqRhs* fEquation = nullptr;
G4MagneticField* fMagneticField = nullptr;
G4FieldManager* GetGlobalFieldManager();
G4MagIntegratorStepper* fStepper = nullptr;
G4bool fUseFSALstepper = false;
G4VIntegrationDriver* fDriver = nullptr; // If non-null, its new type (FSAL)
G4int fStepperType = -1;
G4FieldManager* fFieldManager;
G4ChordFinder* fChordFinder;
G4Mag_UsualEqRhs* fEquation;
G4MagneticField* fMagneticField;
G4MagIntegratorStepper* fStepper;
G4int fStepperType;
G4double fMinStep;
F01FieldMessenger* fFieldMessenger;
G4double fMinStep = -1.0;
F01FieldMessenger* fFieldMessenger = nullptr;
};