Import Geant4 10.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2019-12-06 15:12:28 +01:00
parent b2a62ae692
commit 5baee230e9
2997 changed files with 141580 additions and 98673 deletions
+18 -21
View File
@@ -23,9 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
//
// class G4Region
// G4Region
//
// Class description:
//
@@ -33,8 +31,7 @@
// setup, sharing properties associated to materials or production
// cuts which may affect or bias specific physics processes.
// History:
// 18.09.02 G.Cosmo Initial version
// 18.09.02, G.Cosmo - Initial version
// --------------------------------------------------------------------
#ifndef G4REGION_HH
#define G4REGION_HH
@@ -67,8 +64,8 @@ class G4RegionData
void initialize()
{
fFastSimulationManager = 0;
fRegionalSteppingAction = 0;
fFastSimulationManager = nullptr;
fRegionalSteppingAction = nullptr;
}
G4FastSimulationManager* fFastSimulationManager;
@@ -107,6 +104,10 @@ class G4Region
G4Region(const G4String& name);
virtual ~G4Region();
G4Region(const G4Region&) = delete;
G4Region& operator=(const G4Region&) = delete;
// Copy constructor and assignment operator not allowed.
inline G4bool operator==(const G4Region& rg) const;
// Equality defined by address only.
@@ -232,8 +233,8 @@ class G4Region
static void Clean();
// Clear memory allocated by sub-instance manager.
inline void UsedInMassGeometry(G4bool val=true);
inline void UsedInParallelGeometry(G4bool val=true);
inline void UsedInMassGeometry(G4bool val = true);
inline void UsedInParallelGeometry(G4bool val = true);
inline G4bool IsInMassGeometry() const;
inline G4bool IsInParallelGeometry() const;
// Utility methods to identify if region is part of the main mass
@@ -241,10 +242,6 @@ class G4Region
private:
G4Region(const G4Region&);
G4Region& operator=(const G4Region&);
// Private copy constructor and assignment operator.
inline void AddMaterial (G4Material* aMaterial);
// Searchs the specified material in the material table and
// if not present adds it.
@@ -257,17 +254,17 @@ class G4Region
G4MaterialList fMaterials;
G4MaterialCoupleMap fMaterialCoupleMap;
G4bool fRegionMod;
G4ProductionCuts* fCut;
G4bool fRegionMod = true;
G4ProductionCuts* fCut = nullptr;
G4VUserRegionInformation* fUserInfo;
G4UserLimits* fUserLimits;
G4FieldManager* fFieldManager;
G4VUserRegionInformation* fUserInfo = nullptr;
G4UserLimits* fUserLimits = nullptr;
G4FieldManager* fFieldManager = nullptr;
G4VPhysicalVolume* fWorldPhys;
G4VPhysicalVolume* fWorldPhys = nullptr;
G4bool fInMassGeometry;
G4bool fInParallelGeometry;
G4bool fInMassGeometry = false;
G4bool fInParallelGeometry = false;
G4int instanceID;
// This field is used as instance ID.