Import Geant4 10.7.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2020-06-26 10:23:25 +02:00
parent c02c370437
commit 67ba86d073
1871 changed files with 174422 additions and 131884 deletions
@@ -23,31 +23,27 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
//
//
// class G4UserLimits
// G4UserLimits
//
// Class description:
//
// Simple placeholder for user Step limitations
// In order to activate these limitations, users need to register
// their "special" processes to each particle they want.
// Sample processes below can be found under processes/transportation
// their "special" processes to each particle wanted.
// Sample processes below can be found under processes/transportation
// MaxAllowedStep : UserStepLimit
// other limitation : UserSpecialCuts
// In addition, users can add their own Step limitations by creating
// new class derived from G4UserLimits. In these case, fType member
// is supposed to be used to identify class.
//
// Author: Paul Kent August 96
//
// 01-11-97: change GetMaxAllowedStep(), Hisaya Kurashige
// 08-04-98: new data members, mma
// 02-16-00: add fType member and accessors, Hisaya Kurashige
//
// In addition, users can add their own Step limitations by creating
// a new class derived from G4UserLimits. In these case, 'fType' member
// is supposed to be used to identify the class.
// Author: Paul Kent, August 1996
// Revisions:
// - 01-11-1997, H.Kurashige: changed GetMaxAllowedStep()
// - 08-04-1998: M.Maire: new data members
// --------------------------------------------------------------------
#ifndef G4USERLIMITS_HH
#define G4USERLIMITS_HH
#define G4USERLIMITS_HH 1
#include "globals.hh"
@@ -55,56 +51,46 @@ class G4Track;
class G4UserLimits
{
public: // with description
G4UserLimits(G4double ustepMax = DBL_MAX,
G4double utrakMax = DBL_MAX,
G4double utimeMax = DBL_MAX,
G4double uekinMin = 0.,
G4double urangMin = 0. );
G4UserLimits(const G4String& type,
G4double ustepMax = DBL_MAX,
G4double utrakMax = DBL_MAX,
G4double utimeMax = DBL_MAX,
G4double uekinMin = 0.,
G4double urangMin = 0. );
public:
G4UserLimits(G4double ustepMax = DBL_MAX, G4double utrakMax = DBL_MAX,
G4double utimeMax = DBL_MAX, G4double uekinMin = 0.,
G4double urangMin = 0.);
G4UserLimits(const G4String& type, G4double ustepMax = DBL_MAX,
G4double utrakMax = DBL_MAX, G4double utimeMax = DBL_MAX,
G4double uekinMin = 0., G4double urangMin = 0.);
virtual ~G4UserLimits();
public: // with description
virtual G4double GetMaxAllowedStep(const G4Track&);
// If a Logical Volume has a G4UserLimits object, the Step length can
// be limited as shorter than MaxAllowedStep in the volume.
//
virtual G4double GetUserMaxTrackLength(const G4Track&) ;
virtual G4double GetUserMaxTime (const G4Track&);
virtual G4double GetMaxAllowedStep(const G4Track&);
// If a logical volume has a G4UserLimits object, the Step length can
// be limited as shorter than MaxAllowedStep in the volume
virtual G4double GetUserMaxTrackLength(const G4Track&);
virtual G4double GetUserMaxTime(const G4Track&);
virtual G4double GetUserMinEkine(const G4Track&);
virtual G4double GetUserMinRange(const G4Track&);
virtual void SetMaxAllowedStep(G4double ustepMax);
virtual void SetMaxAllowedStep(G4double ustepMax);
virtual void SetUserMaxTrackLength(G4double utrakMax);
virtual void SetUserMaxTime(G4double utimeMax);
virtual void SetUserMinEkine(G4double uekinMin);
virtual void SetUserMinRange(G4double urangMin);
const G4String & GetType() const;
void SetType(const G4String& type);
const G4String& GetType() const;
void SetType(const G4String& type);
// Set/Get type name for UserLimits.
// This type member is supposed to be used to check real class types for
// each concrete instantiation of G4UserLimits. In other words, users who
// use special classes derived from this base class should name their class
// with a proper identifier.
protected: // with description
// use special classes derived from this base class should name their
// class with a proper identifier
G4double fMaxStep; // max allowed Step size in this volume
G4double fMaxTrack; // max total track length
G4double fMaxTime; // max time
G4double fMinEkine; // min kinetic energy (only for charged particles)
G4double fMinRange; // min remaining range (only for charged particles)
protected:
G4double fMaxStep = 0.; // max allowed Step size in this volume
G4double fMaxTrack = 0.; // max total track length
G4double fMaxTime = 0.; // max time
G4double fMinEkine = 0.; // min kinetic energy (only for charged particles)
G4double fMinRange = 0.; // min remaining range (only for charged particles)
G4String fType; // type name
G4String fType; // type name
};
#include "G4UserLimits.icc"