Import Geant4 11.1.2 source tree

This commit is contained in:
Gabriele Cosmo
2023-06-19 17:17:14 +02:00
parent 84a556a9dc
commit aef78ca386
309 changed files with 35572 additions and 34678 deletions
+4
View File
@@ -6,6 +6,10 @@ It must **not** be used as a substitute for writing good git commit messages!
-------------------------------------------------------------------------------
## 2023-03-16 Gabriele Cosmo (field-V11-00-07)
- Fixed compilation warnings on clang-15 for mismatched bounds declarations
in input parameters for steppers.
## 2022-12-09 Laurie Nevay (field-V11-00-06)
- Reduced printout for setting any valid value for epsilon_min / _max in
G4FieldManager.
@@ -51,8 +51,8 @@ G4Field* G4DELPHIMagField::Clone() const
///////////////////////////////////////////////////////////////////////
void G4DELPHIMagField::GetFieldValue( const G4double yTrack[7],
G4double B[3] ) const
void G4DELPHIMagField::GetFieldValue( const G4double yTrack[], // [7]
G4double B[] ) const // [3]
{
G4int i, n = 8 ;
G4double a = 0.001 ; // mm -> m
@@ -48,8 +48,8 @@ G4HarmonicPolMagField::~G4HarmonicPolMagField()
// -------------------------------------------------------------------
void G4HarmonicPolMagField::GetFieldValue(const G4double yTrack[7],
G4double B[3] ) const
void G4HarmonicPolMagField::GetFieldValue(const G4double yTrack[], // [7]
G4double B[] ) const // [3]
{
G4double a = 1.00 ; // mm -> m
G4double x = a*yTrack[0], y = a*yTrack[1], z = a*yTrack[2] ;
@@ -46,10 +46,10 @@ G4HelixExplicitEuler::~G4HelixExplicitEuler()
{
}
void G4HelixExplicitEuler::Stepper( const G4double yInput[7],
void G4HelixExplicitEuler::Stepper( const G4double yInput[], // [7]
const G4double*,
G4double Step,
G4double yOut[7],
G4double yOut[], // [7]
G4double yErr[] )
{
// Estimation of the Stepping Angle
@@ -95,10 +95,10 @@ G4HelixMixedStepper::~G4HelixMixedStepper()
}
// ---------------------------------------------------------------------------
void G4HelixMixedStepper::Stepper( const G4double yInput[7],
const G4double dydx[7],
void G4HelixMixedStepper::Stepper( const G4double yInput[], // [7]
const G4double dydx[], // [7]
G4double Step,
G4double yOut[7],
G4double yOut[], // [7]
G4double yErr[])
{
// Estimation of the Stepping Angle
@@ -51,8 +51,8 @@ G4LineCurrentMagField::~G4LineCurrentMagField()
// -----------------------------------------------------------------
void G4LineCurrentMagField::GetFieldValue( const G4double yTrack[7],
G4double B[3] ) const
void G4LineCurrentMagField::GetFieldValue(const G4double yTrack[], // [7]
G4double B[] ) const // [3]
{
// G4double fFieldConstant = 100 ;
G4double a = 1.00 ; // mm
@@ -69,8 +69,8 @@ G4QuadrupoleMagField::~G4QuadrupoleMagField()
// -------------------------------------------------------------------
void G4QuadrupoleMagField::GetFieldValue( const G4double y[7],
G4double B[3] ) const
void G4QuadrupoleMagField::GetFieldValue( const G4double y[], // [7]
G4double B[] ) const // [3]
{
// with displaced origin and rotation
@@ -41,10 +41,10 @@ G4RKG3_Stepper::~G4RKG3_Stepper()
{
}
void G4RKG3_Stepper::Stepper( const G4double yInput[8],
const G4double dydx[6],
void G4RKG3_Stepper::Stepper( const G4double yInput[], // [8]
const G4double dydx[], // [6]
G4double Step,
G4double yOut[8],
G4double yOut[], // [8]
G4double yErr[] )
{
G4double B[3];
@@ -63,8 +63,8 @@ G4SextupoleMagField::~G4SextupoleMagField()
{
}
void G4SextupoleMagField::GetFieldValue( const G4double y[4],
G4double B[3] ) const
void G4SextupoleMagField::GetFieldValue( const G4double y[], // [4]
G4double B[] ) const // [3]
// with displaced origin and rotation
{
G4ThreeVector r_global = G4ThreeVector(