Import Geant4 11.0.0.beta source tree
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
#------------------------------------------------------------------------------
|
||||
# CMakeLists.txt
|
||||
# Module : G4physlist_ctor_factory
|
||||
# Package: Geant4.src.G4physicslists.G4physlist_ctors.G4physlist_ctor_factory
|
||||
#
|
||||
# CMakeLists.txt for building a single granular library.
|
||||
#
|
||||
# Generated on : 24/9/2010
|
||||
#
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
if(GEANT4_BUILD_GRANULAR_LIBS)
|
||||
include(Geant4MacroLibraryTargets)
|
||||
GEANT4_GRANULAR_LIBRARY_TARGET(COMPONENT sources.cmake)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -47,8 +47,6 @@ CPPFLAGS += -I$(G4BASE)/global/management/include \
|
||||
-I$(G4BASE)/processes/hadronic/management/include \
|
||||
-I$(G4BASE)/processes/hadronic/processes/include \
|
||||
-I$(G4BASE)/processes/hadronic/util/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/management/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/util/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/binary_cascade/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/cascade/cascade/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/qmd/include \
|
||||
|
||||
@@ -13,12 +13,38 @@ introduced in the code and keeptrack of all tags.
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
10-March-2021, Krzysztof Genser (phys-ctor-hinelastic-V10-06-20)
|
||||
20-May-2021 Vladimir Ivanchenko (phys-ctor-hinelastic-V10-07-05)
|
||||
- Migrate all constructors: printouts are controlled by verbosity level
|
||||
of G4HadronicParameters class; base class verboseLevel member is
|
||||
not used; G4HadronicParameters singletone in initialized in all class
|
||||
constructors; if the verbosity level is defined in a class constructor
|
||||
it is propagated to G4HadronicParameters (user may change this level
|
||||
using UI command before physics is initialized); check versus
|
||||
nullptr is used in several places
|
||||
|
||||
16-April-2021 Ben Morgan (phys-ctor-hinelastic-V10-07-04)
|
||||
- Migrate build to modular CMake API
|
||||
|
||||
13-April-2021, Alberto Ribon (phys-ctor-hinelastic-V10-07-03)
|
||||
- GNUmakefile, sources.cmake : removed dependency on hadronic/model/util
|
||||
and hadronic/model/management (that have been now deleted, with their
|
||||
classes moved to hadronic/util and hadronic/management).
|
||||
|
||||
18-March-2021, Alberto Ribon (phys-ctor-hinelastic-V10-07-02)
|
||||
- G4HadronInelasticQBBC, G4HadronPhysicsFTF_BIC, G4HadronPhysicsFTFP_BERT,
|
||||
G4HadronPhysicsFTFP_BERT_HP, G4HadronPhysicsFTFQGSP_BERT,
|
||||
G4HadronPhysicsINCLXX, G4HadronPhysicsQGS_BIC, G4HadronPhysicsQGSP_BERT,
|
||||
G4HadronPhysicsQGSP_BERT_HP, G4HadronPhysicsQGSP_BIC,
|
||||
G4HadronPhysicsQGSP_BIC_HP, G4HadronPhysicsShielding : removed unused
|
||||
header files, and replaced when needed G4HadronCaptureProcess with
|
||||
G4NeutronCaptureProcess.
|
||||
|
||||
10-March-2021, Krzysztof Genser (phys-ctor-hinelastic-V10-07-01)
|
||||
- G4HadronPhysicsShielding: corrected parameters of the M variant
|
||||
|
||||
05-December-2020, Vladimir Ivanchenko (phys-ctor-hinelastic-V10-06-19)
|
||||
05-December-2020, Vladimir Ivanchenko (phys-ctor-hinelastic-V10-07-00)
|
||||
- G4HadronPhysicsFTFP_BERT, G4HadronPhysicsQGSP_BERT, G4HadronInelasticQBBC,
|
||||
G4HadronPhysicsQGSP_BIC : fixed type of builder in all hadron
|
||||
G4HadronPhysicsQGSP_BIC : fixed type of builder in all hadron
|
||||
inelatic constructors (problem #2296)
|
||||
|
||||
26-November-2020, Alberto Ribon (phys-ctor-hinelastic-V10-06-18)
|
||||
@@ -33,14 +59,14 @@ introduced in the code and keeptrack of all tags.
|
||||
|
||||
30-October-2020, Vladimir Ivanchenko (phys-ctor-hinelastic-V10-06-16)
|
||||
- G4HadronPhysicsINCLXX - use inheritance from the base
|
||||
class G4HadronPhysicsFTFP_BERT; removed duplicate code;
|
||||
class G4HadronPhysicsFTFP_BERT; removed duplicate code;
|
||||
clean-up; list of models and applicability intervals are the same;
|
||||
implemented b-, c- particle physics and cross section factor
|
||||
|
||||
19-October-2020, Vladimir Ivanchenko (phys-ctor-hinelastic-V10-06-15)
|
||||
- G4HadronPhysicsFTF_BIC, G4HadronPhysicsQGS_BIC,
|
||||
G4HadronPhysicsFTFQGSP_BERT - use inheritance from the base
|
||||
class G4HadronPhysicsFTFP_BERT; removed duplicate code;
|
||||
class G4HadronPhysicsFTFP_BERT; removed duplicate code;
|
||||
clean-up; list of models and applicability intervals are the same;
|
||||
implemented b-, c- particle physics and cross section factor
|
||||
Improved comments and info printouts in other physics classes
|
||||
@@ -50,7 +76,7 @@ introduced in the code and keeptrack of all tags.
|
||||
02-October-2020, Vladimir Ivanchenko (phys-ctor-hinelastic-V10-06-14)
|
||||
- G4HadronPhysicsNuBeam, G4HadronPhysicsShielding,
|
||||
G4HadronPhysicsShieldingLEND - use inheritance from the base
|
||||
class G4HadronPhysicsFTFP_BERT; removed duplicate code;
|
||||
class G4HadronPhysicsFTFP_BERT; removed duplicate code;
|
||||
clean-up; list of models and applicability intervals are the same;
|
||||
implemented b-, c- particle physics and cross section factor
|
||||
Improved comments and info printouts in other physics classes
|
||||
@@ -58,34 +84,34 @@ introduced in the code and keeptrack of all tags.
|
||||
01-October-2020, Vladimir Ivanchenko (phys-ctor-hinelastic-V10-06-13)
|
||||
- G4HadronPhysicsQGSP_BERT, G4HadronPhysicsQGSP_FTFP_BERT,
|
||||
G4HadronPhysicsQGSP_BERT_HP - implement DumpBanner() method
|
||||
- G4VHadronPhysics - removed unused method
|
||||
- G4VHadronPhysics - removed unused method
|
||||
|
||||
22-September-2020, Vladimir Ivanchenko (phys-ctor-hinelastic-V10-06-12)
|
||||
- G4HadronInelasticFTFP_BERT, G4HadronInelasticFTFP_BERT_HP,
|
||||
G4HadronInelasticFTFP_BERT_ATL, G4HadronInelasticFTFP_BERT_TRV - added
|
||||
optinal cross section factor for systematics studies; added b-, c-
|
||||
- G4HadronInelasticFTFP_BERT, G4HadronInelasticFTFP_BERT_HP,
|
||||
G4HadronInelasticFTFP_BERT_ATL, G4HadronInelasticFTFP_BERT_TRV - added
|
||||
optinal cross section factor for systematics studies; added b-, c-
|
||||
physics; added more c++11 keywords; removed unused headers
|
||||
|
||||
17-September-2020, Alberto Ribon (phys-ctor-hinelastic-V10-06-11)
|
||||
- G4HadronInelasticQGSP_BERT and G4HadronInelasticQGSP_BIC : replaced
|
||||
G4HadronicBuilder::BuildAntiLightIonsQGSP_FTFP with
|
||||
G4HadronicBuilder::BuildAntiLightIonsFTFP
|
||||
G4HadronicBuilder::BuildAntiLightIonsQGSP_FTFP with
|
||||
G4HadronicBuilder::BuildAntiLightIonsFTFP
|
||||
(because currently QGSP cannot be applied to any ion or anti-ion).
|
||||
|
||||
02-September-2020, Vladimir Ivanchenko (phys-ctor-hinelastic-V10-06-10)
|
||||
- G4HadronInelasticQGSP_BERT, G4HadronInelasticQGSP_BIC - allow
|
||||
- G4HadronInelasticQGSP_BERT, G4HadronInelasticQGSP_BIC - allow
|
||||
modification of parameters at PreInit stage
|
||||
- G4HadronInelasticQGSP_FTFP_BERT - enable b- and c- particle physics
|
||||
|
||||
25-August-2020, Vladimir Ivanchenko (phys-ctor-hinelastic-V10-06-09)
|
||||
- G4HadronInelasticQGSP_BERT, G4HadronInelasticQGSP_BERT_HP,
|
||||
- G4HadronInelasticQGSP_BERT, G4HadronInelasticQGSP_BERT_HP,
|
||||
G4HadronInelasticQGSP_FTFP_BERT - added optinal cross section factor for
|
||||
systematics studies; added b-, c- physics; added more c++11 keywords
|
||||
- G4VHadronPhysics - removed obsolete methods
|
||||
|
||||
21-August-2020, Vladimir Ivanchenko (phys-ctor-hinelastic-V10-06-08)
|
||||
- G4HadronInelasticQBBC - fixed neutrom and anti-baryon configurations
|
||||
- G4HadronInelasticQGSP_BIC, G4HadronInelasticQGSP_BIC_HP,
|
||||
- G4HadronInelasticQGSP_BIC, G4HadronInelasticQGSP_BIC_HP,
|
||||
G4HadronInelasticQGSP_BIC_AllHP - added optinal cross section factor for
|
||||
systematics studies; added b-, c- physics;
|
||||
|
||||
@@ -99,7 +125,7 @@ introduced in the code and keeptrack of all tags.
|
||||
09-July-2020, Vladimir Ivanchenko (phys-ctor-hinelastic-V10-06-05)
|
||||
- G4HadronInelasticQBBC - use utilites G4HadParticle and G4HadronicBuilder
|
||||
- G4VHadronPhysics - removed obsolete methods and thread_local methods
|
||||
|
||||
|
||||
30-May-2020 Ben Morgan (phys-ctor-hinelastic-V10-06-04)
|
||||
- Remove obsolete GRANULAR_DEPENDENCIES entries
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
G4bool chips = false, G4bool hp = false,
|
||||
G4bool glauber = false);
|
||||
|
||||
~G4HadronInelasticQBBC() override;
|
||||
virtual ~G4HadronInelasticQBBC();
|
||||
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each physics process will be instantiated and
|
||||
@@ -63,9 +63,6 @@ public:
|
||||
// copy constructor and hide assignment operator
|
||||
G4HadronInelasticQBBC(G4HadronInelasticQBBC &) = delete;
|
||||
G4HadronInelasticQBBC & operator=(const G4HadronInelasticQBBC &right) = delete;
|
||||
|
||||
private:
|
||||
G4int verbose;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ class G4HadronPhysicsFTFP_BERT : public G4VPhysicsConstructor
|
||||
public:
|
||||
G4HadronPhysicsFTFP_BERT(G4int verbose =1);
|
||||
G4HadronPhysicsFTFP_BERT(const G4String& name, G4bool quasiElastic=false);
|
||||
~G4HadronPhysicsFTFP_BERT() override;
|
||||
virtual ~G4HadronPhysicsFTFP_BERT();
|
||||
|
||||
void ConstructParticle() override;
|
||||
void ConstructProcess() override;
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ class G4HadronPhysicsFTFP_BERT_ATL : public G4HadronPhysicsFTFP_BERT
|
||||
public:
|
||||
G4HadronPhysicsFTFP_BERT_ATL(G4int verbose =1);
|
||||
G4HadronPhysicsFTFP_BERT_ATL(const G4String& name, G4bool quasiElastic=false);
|
||||
~G4HadronPhysicsFTFP_BERT_ATL() override;
|
||||
virtual ~G4HadronPhysicsFTFP_BERT_ATL();
|
||||
|
||||
void ConstructProcess() override;
|
||||
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ class G4HadronPhysicsFTFP_BERT_HP : public G4HadronPhysicsFTFP_BERT
|
||||
public:
|
||||
G4HadronPhysicsFTFP_BERT_HP(G4int verbose =1);
|
||||
G4HadronPhysicsFTFP_BERT_HP(const G4String& name, G4bool quasiElastic=false);
|
||||
~G4HadronPhysicsFTFP_BERT_HP() override;
|
||||
virtual ~G4HadronPhysicsFTFP_BERT_HP();
|
||||
|
||||
protected:
|
||||
//Modify the minimum needed
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ class G4HadronPhysicsFTFP_BERT_TRV : public G4HadronPhysicsFTFP_BERT
|
||||
public:
|
||||
G4HadronPhysicsFTFP_BERT_TRV(G4int verbose =1);
|
||||
G4HadronPhysicsFTFP_BERT_TRV(const G4String& name, G4bool quasiElastic=false);
|
||||
~G4HadronPhysicsFTFP_BERT_TRV() override;
|
||||
virtual ~G4HadronPhysicsFTFP_BERT_TRV();
|
||||
|
||||
// copy constructor and hide assignment operator
|
||||
G4HadronPhysicsFTFP_BERT_TRV(G4HadronPhysicsFTFP_BERT_TRV &) = delete;
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ class G4HadronPhysicsFTF_BIC : public G4HadronPhysicsFTFP_BERT
|
||||
public:
|
||||
G4HadronPhysicsFTF_BIC(G4int verbose =1);
|
||||
G4HadronPhysicsFTF_BIC(const G4String& name, G4bool quasiElastic=false);
|
||||
~G4HadronPhysicsFTF_BIC() override;
|
||||
virtual ~G4HadronPhysicsFTF_BIC();
|
||||
|
||||
// copy constructor and hide assignment operator
|
||||
G4HadronPhysicsFTF_BIC(G4HadronPhysicsFTF_BIC &) = delete;
|
||||
|
||||
@@ -64,7 +64,7 @@ class G4HadronPhysicsINCLXX : public G4HadronPhysicsFTFP_BERT
|
||||
public:
|
||||
G4HadronPhysicsINCLXX(G4int verbose =1);
|
||||
G4HadronPhysicsINCLXX(const G4String& name, const G4bool quasiElastic=true, const G4bool neutronHP=false, const G4bool ftfp=false);
|
||||
~G4HadronPhysicsINCLXX() override;
|
||||
virtual ~G4HadronPhysicsINCLXX();
|
||||
|
||||
void ConstructProcess() override;
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ class G4HadronPhysicsNuBeam : public G4HadronPhysicsFTFP_BERT
|
||||
public:
|
||||
G4HadronPhysicsNuBeam(G4int verbose =1);
|
||||
G4HadronPhysicsNuBeam(const G4String& name, G4bool quasiElastic=false);
|
||||
~G4HadronPhysicsNuBeam() override {}
|
||||
virtual ~G4HadronPhysicsNuBeam() {}
|
||||
|
||||
void ConstructProcess() override;
|
||||
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ class G4HadronPhysicsQGSP_BERT : public G4VPhysicsConstructor
|
||||
public:
|
||||
G4HadronPhysicsQGSP_BERT(G4int verbose =1);
|
||||
G4HadronPhysicsQGSP_BERT(const G4String& name, G4bool quasiElastic=true);
|
||||
~G4HadronPhysicsQGSP_BERT() override;
|
||||
virtual ~G4HadronPhysicsQGSP_BERT();
|
||||
|
||||
void ConstructParticle() override;
|
||||
void ConstructProcess() override;
|
||||
|
||||
+1
-1
@@ -50,7 +50,7 @@ class G4HadronPhysicsQGSP_BERT_HP : public G4HadronPhysicsQGSP_BERT
|
||||
public:
|
||||
G4HadronPhysicsQGSP_BERT_HP(G4int verbose =1);
|
||||
G4HadronPhysicsQGSP_BERT_HP(const G4String& name, G4bool quasiElastic=true);
|
||||
~G4HadronPhysicsQGSP_BERT_HP() override {}
|
||||
virtual ~G4HadronPhysicsQGSP_BERT_HP() {}
|
||||
|
||||
// copy constructor and hide assignment operator
|
||||
G4HadronPhysicsQGSP_BERT_HP(G4HadronPhysicsQGSP_BERT_HP &) = delete;
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ class G4HadronPhysicsQGSP_BIC : public G4VPhysicsConstructor
|
||||
public:
|
||||
G4HadronPhysicsQGSP_BIC(G4int verbose =1);
|
||||
G4HadronPhysicsQGSP_BIC(const G4String& name,G4bool quasiElastic=true);
|
||||
~G4HadronPhysicsQGSP_BIC() override;
|
||||
virtual ~G4HadronPhysicsQGSP_BIC();
|
||||
|
||||
void ConstructParticle() override;
|
||||
void ConstructProcess() override;
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ class G4HadronPhysicsQGSP_BIC_AllHP : public G4HadronPhysicsQGSP_BIC_HP {
|
||||
public:
|
||||
G4HadronPhysicsQGSP_BIC_AllHP( G4int verbose = 1 );
|
||||
G4HadronPhysicsQGSP_BIC_AllHP( const G4String& name, G4bool quasiElastic = true );
|
||||
~G4HadronPhysicsQGSP_BIC_AllHP() override {}
|
||||
virtual ~G4HadronPhysicsQGSP_BIC_AllHP() {}
|
||||
|
||||
// copy constructor and hide assignment operator
|
||||
G4HadronPhysicsQGSP_BIC_AllHP(G4HadronPhysicsQGSP_BIC_AllHP &) = delete;
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ class G4HadronPhysicsQGSP_BIC_HP : public G4HadronPhysicsQGSP_BIC {
|
||||
public:
|
||||
G4HadronPhysicsQGSP_BIC_HP( G4int verbose = 1 );
|
||||
G4HadronPhysicsQGSP_BIC_HP( const G4String& name, G4bool quasiElastic = true );
|
||||
~G4HadronPhysicsQGSP_BIC_HP() override {};
|
||||
virtual ~G4HadronPhysicsQGSP_BIC_HP() {};
|
||||
|
||||
// copy constructor and hide assignment operator
|
||||
G4HadronPhysicsQGSP_BIC_HP(G4HadronPhysicsQGSP_BIC_HP &) = delete;
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ class G4HadronPhysicsQGSP_FTFP_BERT : public G4HadronPhysicsQGSP_BERT
|
||||
public:
|
||||
G4HadronPhysicsQGSP_FTFP_BERT(G4int verbose =1);
|
||||
G4HadronPhysicsQGSP_FTFP_BERT(const G4String& name, G4bool quasiElastic=true);
|
||||
~G4HadronPhysicsQGSP_FTFP_BERT() override;
|
||||
virtual ~G4HadronPhysicsQGSP_FTFP_BERT();
|
||||
|
||||
// copy constructor and hide assignment operator
|
||||
G4HadronPhysicsQGSP_FTFP_BERT(G4HadronPhysicsQGSP_FTFP_BERT &) = delete;
|
||||
|
||||
+3
-3
@@ -54,9 +54,9 @@ class G4HadronPhysicsQGS_BIC : public G4HadronPhysicsQGSP_BERT
|
||||
(const G4HadronPhysicsQGS_BIC &right) = delete;
|
||||
|
||||
protected:
|
||||
virtual void Neutron();
|
||||
virtual void Proton();
|
||||
virtual void Pion();
|
||||
void Neutron() override;
|
||||
void Proton() override;
|
||||
void Pion() override;
|
||||
|
||||
private:
|
||||
G4double minBERT_pion;
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ class G4HadronPhysicsShielding : public G4HadronPhysicsFTFP_BERT
|
||||
G4double minFTFPEnergy,
|
||||
G4double maxBertiniEnergy);
|
||||
|
||||
~G4HadronPhysicsShielding() override;
|
||||
virtual ~G4HadronPhysicsShielding();
|
||||
|
||||
void ConstructProcess() override;
|
||||
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@ class G4HadronPhysicsShieldingLEND : public G4HadronPhysicsShielding
|
||||
G4double minFTFPEnergy,
|
||||
G4double maxBertiniEnergy);
|
||||
|
||||
~G4HadronPhysicsShieldingLEND() override;
|
||||
virtual ~G4HadronPhysicsShieldingLEND();
|
||||
|
||||
// copy constructor and hide assignment operator
|
||||
G4HadronPhysicsShieldingLEND(G4HadronPhysicsShieldingLEND &) = delete;
|
||||
|
||||
@@ -53,7 +53,7 @@ public:
|
||||
G4VHadronPhysics(const G4String& name ="hInelastic",
|
||||
G4int verbose = 0);
|
||||
|
||||
~G4VHadronPhysics() override;
|
||||
virtual ~G4VHadronPhysics();
|
||||
|
||||
void ConstructParticle() override;
|
||||
|
||||
|
||||
@@ -1,144 +1,72 @@
|
||||
#------------------------------------------------------------------------------
|
||||
# sources.cmake
|
||||
# Module : G4phys_lists
|
||||
# Package: Geant4.src.G4physicslists.G4physlist_ctors.G4physlist_ctor_hinelastic
|
||||
#
|
||||
# Sources description for a library.
|
||||
# Lists the sources and headers of the code explicitely.
|
||||
# Lists include paths needed.
|
||||
# Lists the internal granular and global dependencies of the library.
|
||||
# Source specific properties should be added at the end.
|
||||
#
|
||||
# Generated on : 10/01/2013
|
||||
#
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
# - G4phys_ctor_hinelastic module build definition
|
||||
|
||||
#
|
||||
# Define the Geant4 Module.
|
||||
#
|
||||
GEANT4_DEFINE_MODULE(NAME G4phys_ctor_hinelastic
|
||||
HEADERS
|
||||
G4HadronInelasticQBBC.hh
|
||||
G4HadronPhysicsFTF_BIC.hh
|
||||
G4HadronPhysicsFTFP_BERT.hh
|
||||
G4HadronPhysicsFTFP_BERT_HP.hh
|
||||
G4HadronPhysicsFTFP_BERT_TRV.hh
|
||||
G4HadronPhysicsFTFP_BERT_ATL.hh
|
||||
G4HadronPhysicsFTFQGSP_BERT.hh
|
||||
G4HadronPhysicsNuBeam.hh
|
||||
G4HadronPhysicsQGS_BIC.hh
|
||||
G4HadronPhysicsQGSP_BERT.hh
|
||||
G4HadronPhysicsQGSP_BERT_HP.hh
|
||||
G4HadronPhysicsQGSP_BIC.hh
|
||||
G4HadronPhysicsQGSP_BIC_HP.hh
|
||||
G4HadronPhysicsQGSP_FTFP_BERT.hh
|
||||
G4HadronPhysicsINCLXX.hh
|
||||
G4HadronPhysicsShielding.hh
|
||||
G4HadronPhysicsShieldingLEND.hh
|
||||
G4VHadronPhysics.hh
|
||||
G4HadronPhysicsQGSP_BIC_AllHP.hh
|
||||
SOURCES
|
||||
G4HadronInelasticQBBC.cc
|
||||
G4HadronPhysicsFTF_BIC.cc
|
||||
G4HadronPhysicsFTFP_BERT.cc
|
||||
G4HadronPhysicsFTFP_BERT_HP.cc
|
||||
G4HadronPhysicsFTFP_BERT_TRV.cc
|
||||
G4HadronPhysicsFTFP_BERT_ATL.cc
|
||||
G4HadronPhysicsFTFQGSP_BERT.cc
|
||||
G4HadronPhysicsNuBeam.cc
|
||||
G4HadronPhysicsQGS_BIC.cc
|
||||
G4HadronPhysicsQGSP_BERT.cc
|
||||
G4HadronPhysicsQGSP_BERT_HP.cc
|
||||
G4HadronPhysicsQGSP_BIC.cc
|
||||
G4HadronPhysicsQGSP_BIC_HP.cc
|
||||
G4HadronPhysicsQGSP_FTFP_BERT.cc
|
||||
G4HadronPhysicsINCLXX.cc
|
||||
G4HadronPhysicsShielding.cc
|
||||
G4HadronPhysicsShieldingLEND.cc
|
||||
G4VHadronPhysics.cc
|
||||
G4HadronPhysicsQGSP_BIC_AllHP.cc
|
||||
GRANULAR_DEPENDENCIES
|
||||
G4baryons
|
||||
G4bosons
|
||||
G4cuts
|
||||
G4decay
|
||||
G4digits
|
||||
G4emhighenergy
|
||||
G4emlowenergy
|
||||
G4emstandard
|
||||
G4emutils
|
||||
G4event
|
||||
G4geometrymng
|
||||
G4globman
|
||||
G4had_fission
|
||||
G4had_im_r_matrix
|
||||
G4had_lend
|
||||
G4had_mod_man
|
||||
G4had_mod_util
|
||||
G4had_lept_nuclear
|
||||
G4had_preequ_exciton
|
||||
G4had_string_diff
|
||||
G4had_string_frag
|
||||
G4had_string_man
|
||||
G4had_theo_max
|
||||
G4hadronic_bert_cascade
|
||||
G4hadronic_binary
|
||||
G4hadronic_coherent_elastic
|
||||
G4hadronic_deex_evaporation
|
||||
G4hadronic_deex_fermi_breakup
|
||||
G4hadronic_deex_fission
|
||||
G4hadronic_deex_gem_evaporation
|
||||
G4hadronic_deex_handler
|
||||
G4hadronic_deex_management
|
||||
G4hadronic_deex_multifragmentation
|
||||
G4hadronic_deex_photon_evaporation
|
||||
G4hadronic_deex_util
|
||||
G4hadronic_inclxx_interface
|
||||
G4hadronic_inclxx_physics
|
||||
G4hadronic_inclxx_utils
|
||||
G4hadronic_mgt
|
||||
G4hadronic_proc
|
||||
G4hadronic_qgstring
|
||||
G4hadronic_radioactivedecay
|
||||
G4hadronic_stop
|
||||
G4hadronic_util
|
||||
G4hadronic_xsect
|
||||
G4hits
|
||||
G4intercoms
|
||||
G4ions
|
||||
G4leptons
|
||||
G4magneticfield
|
||||
G4materials
|
||||
G4mesons
|
||||
G4muons
|
||||
G4navigation
|
||||
G4optical
|
||||
G4partman
|
||||
G4phys_builders
|
||||
G4phys_ctor_factory
|
||||
G4procman
|
||||
G4run
|
||||
G4shortlived
|
||||
G4track
|
||||
G4tracking
|
||||
G4transportation
|
||||
G4volumes
|
||||
G4xrays
|
||||
GLOBAL_DEPENDENCIES
|
||||
G4digits_hits
|
||||
G4event
|
||||
G4geometry
|
||||
G4global
|
||||
G4intercoms
|
||||
G4materials
|
||||
G4particles
|
||||
G4processes
|
||||
G4run
|
||||
G4track
|
||||
G4tracking
|
||||
LINK_LIBRARIES
|
||||
)
|
||||
|
||||
# List any source specific properties here
|
||||
geant4_add_module(G4phys_ctor_hinelastic
|
||||
PUBLIC_HEADERS
|
||||
G4HadronInelasticQBBC.hh
|
||||
G4HadronPhysicsFTF_BIC.hh
|
||||
G4HadronPhysicsFTFP_BERT.hh
|
||||
G4HadronPhysicsFTFP_BERT_HP.hh
|
||||
G4HadronPhysicsFTFP_BERT_TRV.hh
|
||||
G4HadronPhysicsFTFP_BERT_ATL.hh
|
||||
G4HadronPhysicsFTFQGSP_BERT.hh
|
||||
G4HadronPhysicsNuBeam.hh
|
||||
G4HadronPhysicsQGS_BIC.hh
|
||||
G4HadronPhysicsQGSP_BERT.hh
|
||||
G4HadronPhysicsQGSP_BERT_HP.hh
|
||||
G4HadronPhysicsQGSP_BIC.hh
|
||||
G4HadronPhysicsQGSP_BIC_HP.hh
|
||||
G4HadronPhysicsQGSP_FTFP_BERT.hh
|
||||
G4HadronPhysicsINCLXX.hh
|
||||
G4HadronPhysicsShielding.hh
|
||||
G4HadronPhysicsShieldingLEND.hh
|
||||
G4VHadronPhysics.hh
|
||||
G4HadronPhysicsQGSP_BIC_AllHP.hh
|
||||
SOURCES
|
||||
G4HadronInelasticQBBC.cc
|
||||
G4HadronPhysicsFTF_BIC.cc
|
||||
G4HadronPhysicsFTFP_BERT.cc
|
||||
G4HadronPhysicsFTFP_BERT_HP.cc
|
||||
G4HadronPhysicsFTFP_BERT_TRV.cc
|
||||
G4HadronPhysicsFTFP_BERT_ATL.cc
|
||||
G4HadronPhysicsFTFQGSP_BERT.cc
|
||||
G4HadronPhysicsNuBeam.cc
|
||||
G4HadronPhysicsQGS_BIC.cc
|
||||
G4HadronPhysicsQGSP_BERT.cc
|
||||
G4HadronPhysicsQGSP_BERT_HP.cc
|
||||
G4HadronPhysicsQGSP_BIC.cc
|
||||
G4HadronPhysicsQGSP_BIC_HP.cc
|
||||
G4HadronPhysicsQGSP_FTFP_BERT.cc
|
||||
G4HadronPhysicsINCLXX.cc
|
||||
G4HadronPhysicsShielding.cc
|
||||
G4HadronPhysicsShieldingLEND.cc
|
||||
G4VHadronPhysics.cc
|
||||
G4HadronPhysicsQGSP_BIC_AllHP.cc)
|
||||
|
||||
geant4_module_link_libraries(G4phys_ctor_hinelastic
|
||||
PUBLIC
|
||||
G4globman
|
||||
G4hadronic_mgt
|
||||
G4hadronic_xsect
|
||||
G4run
|
||||
PRIVATE
|
||||
G4baryons
|
||||
G4had_fission
|
||||
G4had_par_hp
|
||||
G4had_preequ_exciton
|
||||
G4had_string_diff
|
||||
G4had_string_frag
|
||||
G4had_theo_max
|
||||
G4hadronic_bert_cascade
|
||||
G4hadronic_binary
|
||||
G4hadronic_deex_photon_evaporation
|
||||
G4hadronic_proc
|
||||
G4hadronic_util
|
||||
G4ions
|
||||
G4mesons
|
||||
G4partman
|
||||
G4phys_builders
|
||||
G4phys_ctor_factory
|
||||
G4physlist_util
|
||||
G4procman
|
||||
G4shortlived)
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#include "G4SystemOfUnits.hh"
|
||||
|
||||
#include "G4HadronInelasticProcess.hh"
|
||||
#include "G4HadronCaptureProcess.hh"
|
||||
#include "G4NeutronCaptureProcess.hh"
|
||||
#include "G4HadronicInteraction.hh"
|
||||
|
||||
#include "G4ParticleDefinition.hh"
|
||||
@@ -78,10 +78,11 @@
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronInelasticQBBC);
|
||||
|
||||
G4HadronInelasticQBBC::G4HadronInelasticQBBC(G4int ver)
|
||||
: G4VHadronPhysics("hInelasticQBBC"),verbose(ver)
|
||||
: G4VHadronPhysics("hInelasticQBBC")
|
||||
{
|
||||
SetPhysicsType(bHadronInelastic);
|
||||
G4HadronicParameters::Instance()->SetEnableBCParticles(true);
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(ver);
|
||||
}
|
||||
|
||||
G4HadronInelasticQBBC::G4HadronInelasticQBBC(const G4String&, G4int ver,
|
||||
@@ -105,7 +106,7 @@ void G4HadronInelasticQBBC::ConstructProcess()
|
||||
const G4double emaxBertPions = 12.*CLHEP::GeV;
|
||||
const G4double emax = param->GetMaxEnergy();
|
||||
|
||||
if(G4Threading::IsMasterThread() && verbose > 0) {
|
||||
if(G4Threading::IsMasterThread() && param->GetVerboseLevel() > 0) {
|
||||
G4cout << "### HadronInelasticQBBC Construct Process:\n"
|
||||
<< " Emin(FTFP)= " << eminFtf/CLHEP::GeV
|
||||
<< " GeV; Emax(FTFP)= " << emax/CLHEP::GeV << " GeV\n"
|
||||
@@ -165,7 +166,7 @@ void G4HadronInelasticQBBC::ConstructProcess()
|
||||
ph->RegisterProcess(hp, particle);
|
||||
if( useFactorXS ) hp->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
|
||||
|
||||
hp = new G4HadronCaptureProcess("nCapture");
|
||||
hp = new G4NeutronCaptureProcess("nCapture");
|
||||
hp->RegisterMe(new G4NeutronRadCapture());
|
||||
ph->RegisterProcess(hp, particle);
|
||||
|
||||
|
||||
+12
-10
@@ -71,7 +71,6 @@
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
#include "G4IonConstructor.hh"
|
||||
|
||||
#include "G4HadronCaptureProcess.hh"
|
||||
#include "G4NeutronRadCapture.hh"
|
||||
#include "G4NeutronInelasticXS.hh"
|
||||
#include "G4NeutronCaptureXS.hh"
|
||||
@@ -87,9 +86,11 @@
|
||||
//
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsFTFP_BERT);
|
||||
|
||||
G4HadronPhysicsFTFP_BERT::G4HadronPhysicsFTFP_BERT(G4int) :
|
||||
G4HadronPhysicsFTFP_BERT::G4HadronPhysicsFTFP_BERT(G4int verb) :
|
||||
G4HadronPhysicsFTFP_BERT("hInelastic FTFP_BERT",false)
|
||||
{}
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsFTFP_BERT::G4HadronPhysicsFTFP_BERT(const G4String& name, G4bool qe)
|
||||
: G4VPhysicsConstructor(name), QuasiElastic(qe)
|
||||
@@ -170,12 +171,12 @@ void G4HadronPhysicsFTFP_BERT::Neutron()
|
||||
|
||||
const G4ParticleDefinition* neutron = G4Neutron::Neutron();
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(neutron);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
inel->AddDataSet(new G4NeutronInelasticXS());
|
||||
if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
|
||||
}
|
||||
G4HadronicProcess* capture = G4PhysListUtil::FindCaptureProcess(neutron);
|
||||
if (capture) {
|
||||
if (nullptr != capture) {
|
||||
capture->RegisterMe(new G4NeutronRadCapture());
|
||||
}
|
||||
}
|
||||
@@ -200,7 +201,7 @@ void G4HadronPhysicsFTFP_BERT::Proton()
|
||||
|
||||
const G4ParticleDefinition* proton = G4Proton::Proton();
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(proton);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
|
||||
}
|
||||
}
|
||||
@@ -226,12 +227,12 @@ void G4HadronPhysicsFTFP_BERT::Pion()
|
||||
if( useFactorXS ) {
|
||||
const G4ParticleDefinition* pion = G4PionPlus::PionPlus();
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(pion);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
inel->MultiplyCrossSectionBy( param->XSFactorPionInelastic() );
|
||||
}
|
||||
pion = G4PionMinus::PionMinus();
|
||||
inel = G4PhysListUtil::FindInelasticProcess(pion);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
inel->MultiplyCrossSectionBy( param->XSFactorPionInelastic() );
|
||||
}
|
||||
}
|
||||
@@ -261,7 +262,7 @@ void G4HadronPhysicsFTFP_BERT::Kaon()
|
||||
auto part = table->FindParticle( pdg );
|
||||
if ( part == nullptr ) { continue; }
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(part);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
inel->MultiplyCrossSectionBy( param->XSFactorHadronInelastic() );
|
||||
}
|
||||
}
|
||||
@@ -300,7 +301,8 @@ void G4HadronPhysicsFTFP_BERT::ConstructProcess()
|
||||
minFTFP_neutron = param->GetMinEnergyTransitionFTF_Cascade();
|
||||
maxBERT_neutron = param->GetMaxEnergyTransitionFTF_Cascade();
|
||||
|
||||
if(G4Threading::IsMasterThread()) {
|
||||
if(G4Threading::IsMasterThread() &&
|
||||
G4HadronicParameters::Instance()->GetVerboseLevel() > 0) {
|
||||
DumpBanner();
|
||||
}
|
||||
CreateModels();
|
||||
|
||||
+6
-3
@@ -45,9 +45,11 @@
|
||||
//
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsFTFP_BERT_ATL);
|
||||
|
||||
G4HadronPhysicsFTFP_BERT_ATL::G4HadronPhysicsFTFP_BERT_ATL(G4int) :
|
||||
G4HadronPhysicsFTFP_BERT_ATL::G4HadronPhysicsFTFP_BERT_ATL(G4int verb) :
|
||||
G4HadronPhysicsFTFP_BERT_ATL("hInelastic FTFP_BERT_ATL",false)
|
||||
{}
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsFTFP_BERT_ATL::G4HadronPhysicsFTFP_BERT_ATL(const G4String& name, G4bool quasiElastic)
|
||||
: G4HadronPhysicsFTFP_BERT(name,quasiElastic)
|
||||
@@ -71,7 +73,8 @@ G4HadronPhysicsFTFP_BERT_ATL::~G4HadronPhysicsFTFP_BERT_ATL()
|
||||
|
||||
void G4HadronPhysicsFTFP_BERT_ATL::ConstructProcess()
|
||||
{
|
||||
if(G4Threading::IsMasterThread()) {
|
||||
if(G4Threading::IsMasterThread() &&
|
||||
G4HadronicParameters::Instance()->GetVerboseLevel() > 0) {
|
||||
DumpBanner();
|
||||
}
|
||||
CreateModels();
|
||||
|
||||
+8
-7
@@ -38,7 +38,6 @@
|
||||
#include "G4SystemOfUnits.hh"
|
||||
|
||||
#include "G4ProcessManager.hh"
|
||||
#include "G4HadronCaptureProcess.hh"
|
||||
#include "G4NeutronRadCapture.hh"
|
||||
#include "G4NeutronCaptureXS.hh"
|
||||
#include "G4ParticleHPCaptureData.hh"
|
||||
@@ -59,14 +58,16 @@
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsFTFP_BERT_HP);
|
||||
|
||||
|
||||
G4HadronPhysicsFTFP_BERT_HP::G4HadronPhysicsFTFP_BERT_HP(G4int)
|
||||
G4HadronPhysicsFTFP_BERT_HP::G4HadronPhysicsFTFP_BERT_HP(G4int verb)
|
||||
: G4HadronPhysicsFTFP_BERT_HP("hInelastic FTFP_BERT_HP",false)
|
||||
{}
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsFTFP_BERT_HP::G4HadronPhysicsFTFP_BERT_HP(const G4String& name, G4bool quasiElastic)
|
||||
: G4HadronPhysicsFTFP_BERT(name,quasiElastic)
|
||||
{
|
||||
minBERT_neutron = 19.9*MeV;
|
||||
minBERT_neutron = 19.9*CLHEP::MeV;
|
||||
}
|
||||
|
||||
G4HadronPhysicsFTFP_BERT_HP::~G4HadronPhysicsFTFP_BERT_HP()
|
||||
@@ -95,18 +96,18 @@ void G4HadronPhysicsFTFP_BERT_HP::Neutron()
|
||||
|
||||
const G4ParticleDefinition* neutron = G4Neutron::Neutron();
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(neutron);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
|
||||
}
|
||||
|
||||
G4HadronicProcess* capture = G4PhysListUtil::FindCaptureProcess(neutron);
|
||||
if (capture) {
|
||||
if (nullptr != capture) {
|
||||
G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
|
||||
theNeutronRadCapture->SetMinEnergy( minBERT_neutron );
|
||||
capture->RegisterMe( theNeutronRadCapture );
|
||||
}
|
||||
G4HadronicProcess* fission = G4PhysListUtil::FindFissionProcess(neutron);
|
||||
if (fission) {
|
||||
if (nullptr != fission) {
|
||||
G4LFission* theNeutronLEPFission = new G4LFission();
|
||||
theNeutronLEPFission->SetMinEnergy( minBERT_neutron );
|
||||
theNeutronLEPFission->SetMaxEnergy( G4HadronicParameters::Instance()->GetMaxEnergy() );
|
||||
|
||||
+4
-2
@@ -47,9 +47,11 @@
|
||||
//
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsFTFP_BERT_TRV);
|
||||
|
||||
G4HadronPhysicsFTFP_BERT_TRV::G4HadronPhysicsFTFP_BERT_TRV(G4int) :
|
||||
G4HadronPhysicsFTFP_BERT_TRV::G4HadronPhysicsFTFP_BERT_TRV(G4int verb) :
|
||||
G4HadronPhysicsFTFP_BERT_TRV("hInelastic FTFP_BERT_TRV",false)
|
||||
{}
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsFTFP_BERT_TRV::G4HadronPhysicsFTFP_BERT_TRV(const G4String& name, G4bool quasiElastic)
|
||||
: G4HadronPhysicsFTFP_BERT(name,quasiElastic)
|
||||
|
||||
+6
-4
@@ -48,7 +48,7 @@
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4HadronInelasticProcess.hh"
|
||||
#include "G4HadronCaptureProcess.hh"
|
||||
#include "G4NeutronCaptureProcess.hh"
|
||||
#include "G4NeutronRadCapture.hh"
|
||||
#include "G4NeutronInelasticXS.hh"
|
||||
#include "G4NeutronCaptureXS.hh"
|
||||
@@ -78,9 +78,11 @@
|
||||
//
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsFTFQGSP_BERT);
|
||||
|
||||
G4HadronPhysicsFTFQGSP_BERT::G4HadronPhysicsFTFQGSP_BERT(G4int)
|
||||
G4HadronPhysicsFTFQGSP_BERT::G4HadronPhysicsFTFQGSP_BERT(G4int verb)
|
||||
: G4HadronPhysicsFTFQGSP_BERT("hInelastic FTFQGSP_BERT", false)
|
||||
{}
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsFTFQGSP_BERT::G4HadronPhysicsFTFQGSP_BERT(const G4String& name, G4bool qe)
|
||||
: G4HadronPhysicsFTFP_BERT(name, qe)
|
||||
@@ -136,7 +138,7 @@ void G4HadronPhysicsFTFQGSP_BERT::ConstructProcess()
|
||||
ph->RegisterProcess(proc, particle);
|
||||
if( useFactorXS ) proc->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
|
||||
|
||||
proc = new G4HadronCaptureProcess("nCapture");
|
||||
proc = new G4NeutronCaptureProcess("nCapture");
|
||||
proc->RegisterMe(new G4NeutronRadCapture());
|
||||
ph->RegisterProcess(proc, particle);
|
||||
|
||||
|
||||
@@ -56,7 +56,6 @@
|
||||
#include "G4BinaryNeutronBuilder.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
#include "G4ProcessVector.hh"
|
||||
#include "G4HadronCaptureProcess.hh"
|
||||
#include "G4NeutronRadCapture.hh"
|
||||
#include "G4NeutronInelasticXS.hh"
|
||||
#include "G4NeutronCaptureXS.hh"
|
||||
@@ -67,14 +66,17 @@
|
||||
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsFTF_BIC);
|
||||
|
||||
G4HadronPhysicsFTF_BIC::G4HadronPhysicsFTF_BIC(G4int)
|
||||
: G4HadronPhysicsFTF_BIC("hInelastic FTF_BIC",false) {}
|
||||
G4HadronPhysicsFTF_BIC::G4HadronPhysicsFTF_BIC(G4int verb)
|
||||
: G4HadronPhysicsFTF_BIC("hInelastic FTF_BIC",false)
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsFTF_BIC::G4HadronPhysicsFTF_BIC(const G4String& name, G4bool qe)
|
||||
: G4HadronPhysicsFTFP_BERT(name, qe)
|
||||
{
|
||||
maxBIC_pion = 1.5*GeV;
|
||||
minBERT_pion = 1.0*GeV;
|
||||
maxBIC_pion = 1.5*CLHEP::GeV;
|
||||
minBERT_pion = 1.0*CLHEP::GeV;
|
||||
}
|
||||
|
||||
G4HadronPhysicsFTF_BIC::~G4HadronPhysicsFTF_BIC()
|
||||
@@ -104,12 +106,12 @@ void G4HadronPhysicsFTF_BIC::Neutron()
|
||||
// add cross section factor
|
||||
const G4ParticleDefinition* neutron = G4Neutron::Neutron();
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(neutron);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
inel->AddDataSet(new G4NeutronInelasticXS());
|
||||
if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
|
||||
}
|
||||
G4HadronicProcess* capture = G4PhysListUtil::FindCaptureProcess(neutron);
|
||||
if (capture) {
|
||||
if (nullptr != capture) {
|
||||
capture->RegisterMe(new G4NeutronRadCapture());
|
||||
}
|
||||
}
|
||||
@@ -133,7 +135,7 @@ void G4HadronPhysicsFTF_BIC::Proton()
|
||||
// add cross section factor
|
||||
const G4ParticleDefinition* proton = G4Proton::Proton();
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(proton);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
|
||||
}
|
||||
}
|
||||
@@ -163,12 +165,12 @@ void G4HadronPhysicsFTF_BIC::Pion()
|
||||
if( useFactorXS ) {
|
||||
const G4ParticleDefinition* pion = G4PionPlus::PionPlus();
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(pion);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
inel->MultiplyCrossSectionBy( param->XSFactorPionInelastic() );
|
||||
}
|
||||
pion = G4PionMinus::PionMinus();
|
||||
inel = G4PhysListUtil::FindInelasticProcess(pion);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
inel->MultiplyCrossSectionBy( param->XSFactorPionInelastic() );
|
||||
}
|
||||
}
|
||||
@@ -196,7 +198,7 @@ void G4HadronPhysicsFTF_BIC::Kaon()
|
||||
auto part = table->FindParticle( pdg );
|
||||
if ( part == nullptr ) { continue; }
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(part);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
inel->MultiplyCrossSectionBy( param->XSFactorHadronInelastic() );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,7 +75,6 @@
|
||||
#include "G4INCLXXNeutronBuilder.hh"
|
||||
#include "G4NeutronPHPBuilder.hh"
|
||||
|
||||
#include "G4HadronCaptureProcess.hh"
|
||||
#include "G4NeutronRadCapture.hh"
|
||||
#include "G4NeutronCaptureXS.hh"
|
||||
#include "G4NeutronInelasticXS.hh"
|
||||
@@ -92,9 +91,10 @@
|
||||
//
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsINCLXX);
|
||||
|
||||
G4HadronPhysicsINCLXX::G4HadronPhysicsINCLXX(G4int)
|
||||
G4HadronPhysicsINCLXX::G4HadronPhysicsINCLXX(G4int verb)
|
||||
: G4HadronPhysicsINCLXX("hInelastic INCLXX")
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsINCLXX::G4HadronPhysicsINCLXX(const G4String& name, const G4bool quasiElastic, const G4bool neutronHP, const G4bool ftfp)
|
||||
@@ -149,17 +149,17 @@ void G4HadronPhysicsINCLXX::Neutron()
|
||||
|
||||
const G4ParticleDefinition* neutron = G4Neutron::Neutron();
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(neutron);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
|
||||
}
|
||||
G4HadronicProcess* capture = G4PhysListUtil::FindCaptureProcess(neutron);
|
||||
if (capture) {
|
||||
if (nullptr != capture) {
|
||||
G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture();
|
||||
theNeutronRadCapture->SetMinEnergy( minBERT_neutron );
|
||||
capture->RegisterMe( theNeutronRadCapture );
|
||||
}
|
||||
G4HadronicProcess* fission = G4PhysListUtil::FindFissionProcess(neutron);
|
||||
if (fission) {
|
||||
if (nullptr != fission) {
|
||||
G4LFission* theNeutronLEPFission = new G4LFission();
|
||||
theNeutronLEPFission->SetMinEnergy( minBERT_neutron );
|
||||
theNeutronLEPFission->SetMaxEnergy( G4HadronicParameters::Instance()->GetMaxEnergy() );
|
||||
@@ -193,7 +193,7 @@ void G4HadronPhysicsINCLXX::Proton()
|
||||
|
||||
const G4ParticleDefinition* proton = G4Proton::Proton();
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(proton);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
|
||||
}
|
||||
}
|
||||
@@ -226,12 +226,12 @@ void G4HadronPhysicsINCLXX::Pion()
|
||||
if( useFactorXS ) {
|
||||
const G4ParticleDefinition* pion = G4PionPlus::PionPlus();
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(pion);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
inel->MultiplyCrossSectionBy( param->XSFactorPionInelastic() );
|
||||
}
|
||||
pion = G4PionMinus::PionMinus();
|
||||
inel = G4PhysListUtil::FindInelasticProcess(pion);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
inel->MultiplyCrossSectionBy( param->XSFactorPionInelastic() );
|
||||
}
|
||||
}
|
||||
@@ -268,7 +268,7 @@ void G4HadronPhysicsINCLXX::Kaon()
|
||||
auto part = table->FindParticle( pdg );
|
||||
if ( part == nullptr ) { continue; }
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(part);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
inel->MultiplyCrossSectionBy( param->XSFactorHadronInelastic() );
|
||||
}
|
||||
}
|
||||
@@ -310,7 +310,8 @@ G4HadronPhysicsINCLXX::~G4HadronPhysicsINCLXX()
|
||||
|
||||
void G4HadronPhysicsINCLXX::ConstructProcess()
|
||||
{
|
||||
if(G4Threading::IsMasterThread()) {
|
||||
if(G4Threading::IsMasterThread() &&
|
||||
G4HadronicParameters::Instance()->GetVerboseLevel() > 0) {
|
||||
DumpBanner();
|
||||
}
|
||||
CreateModels();
|
||||
|
||||
@@ -55,9 +55,11 @@
|
||||
//
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsNuBeam);
|
||||
|
||||
G4HadronPhysicsNuBeam::G4HadronPhysicsNuBeam(G4int) :
|
||||
G4HadronPhysicsNuBeam::G4HadronPhysicsNuBeam(G4int verb) :
|
||||
G4HadronPhysicsNuBeam("hInelasticNuBeam",false)
|
||||
{}
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsNuBeam::G4HadronPhysicsNuBeam(const G4String& name, G4bool quasiElastic)
|
||||
: G4HadronPhysicsFTFP_BERT(name,quasiElastic)
|
||||
@@ -110,14 +112,15 @@ void G4HadronPhysicsNuBeam::Proton()
|
||||
|
||||
const G4ParticleDefinition* proton = G4Proton::Proton();
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(proton);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
|
||||
}
|
||||
}
|
||||
|
||||
void G4HadronPhysicsNuBeam::ConstructProcess()
|
||||
{
|
||||
if(G4Threading::IsMasterThread()) {
|
||||
if(G4Threading::IsMasterThread() &&
|
||||
G4HadronicParameters::Instance()->GetVerboseLevel() > 0) {
|
||||
DumpBanner();
|
||||
}
|
||||
CreateModels();
|
||||
|
||||
@@ -73,7 +73,6 @@
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
#include "G4IonConstructor.hh"
|
||||
|
||||
#include "G4HadronCaptureProcess.hh"
|
||||
#include "G4NeutronRadCapture.hh"
|
||||
#include "G4NeutronInelasticXS.hh"
|
||||
#include "G4NeutronCaptureXS.hh"
|
||||
@@ -88,8 +87,11 @@
|
||||
//
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsQGSP_BERT);
|
||||
|
||||
G4HadronPhysicsQGSP_BERT::G4HadronPhysicsQGSP_BERT(G4int)
|
||||
: G4HadronPhysicsQGSP_BERT("hInelastic QGSP_BERT",true) {}
|
||||
G4HadronPhysicsQGSP_BERT::G4HadronPhysicsQGSP_BERT(G4int verb)
|
||||
: G4HadronPhysicsQGSP_BERT("hInelastic QGSP_BERT",true)
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsQGSP_BERT::G4HadronPhysicsQGSP_BERT(const G4String& name, G4bool)
|
||||
: G4VPhysicsConstructor(name)
|
||||
@@ -147,12 +149,12 @@ void G4HadronPhysicsQGSP_BERT::Neutron()
|
||||
|
||||
const G4ParticleDefinition* neutron = G4Neutron::Neutron();
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(neutron);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
inel->AddDataSet(new G4NeutronInelasticXS());
|
||||
if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
|
||||
}
|
||||
G4HadronicProcess* capture = G4PhysListUtil::FindCaptureProcess(neutron);
|
||||
if (capture) {
|
||||
if (nullptr != capture) {
|
||||
capture->RegisterMe(new G4NeutronRadCapture());
|
||||
}
|
||||
}
|
||||
@@ -182,7 +184,7 @@ void G4HadronPhysicsQGSP_BERT::Proton()
|
||||
|
||||
const G4ParticleDefinition* proton = G4Proton::Proton();
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(proton);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
|
||||
}
|
||||
}
|
||||
@@ -214,7 +216,7 @@ void G4HadronPhysicsQGSP_BERT::Pion()
|
||||
if( useFactorXS ) {
|
||||
const G4ParticleDefinition* pion = G4PionPlus::PionPlus();
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(pion);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
inel->MultiplyCrossSectionBy( param->XSFactorPionInelastic() );
|
||||
}
|
||||
pion = G4PionMinus::PionMinus();
|
||||
@@ -227,7 +229,7 @@ void G4HadronPhysicsQGSP_BERT::Pion()
|
||||
auto part = table->FindParticle( pdg );
|
||||
if ( part == nullptr ) { continue; }
|
||||
inel = G4PhysListUtil::FindInelasticProcess(part);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
inel->MultiplyCrossSectionBy( param->XSFactorHadronInelastic() );
|
||||
}
|
||||
}
|
||||
@@ -284,7 +286,7 @@ void G4HadronPhysicsQGSP_BERT::ConstructProcess()
|
||||
param->GetMinEnergyTransitionFTF_Cascade();
|
||||
maxBERT_pik = param->GetMaxEnergyTransitionFTF_Cascade();
|
||||
|
||||
if(G4Threading::IsMasterThread()) {
|
||||
if(G4Threading::IsMasterThread() && param->GetVerboseLevel() > 0) {
|
||||
DumpBanner();
|
||||
}
|
||||
CreateModels();
|
||||
|
||||
+7
-6
@@ -56,7 +56,6 @@
|
||||
#include "G4BertiniNeutronBuilder.hh"
|
||||
#include "G4NeutronPHPBuilder.hh"
|
||||
|
||||
#include "G4HadronCaptureProcess.hh"
|
||||
#include "G4NeutronRadCapture.hh"
|
||||
#include "G4NeutronCaptureXS.hh"
|
||||
#include "G4ParticleHPCaptureData.hh"
|
||||
@@ -75,9 +74,11 @@
|
||||
//
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsQGSP_BERT_HP);
|
||||
|
||||
G4HadronPhysicsQGSP_BERT_HP::G4HadronPhysicsQGSP_BERT_HP(G4int)
|
||||
G4HadronPhysicsQGSP_BERT_HP::G4HadronPhysicsQGSP_BERT_HP(G4int verb)
|
||||
: G4HadronPhysicsQGSP_BERT_HP("hInelastic QGSP_BERT_HP")
|
||||
{}
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsQGSP_BERT_HP::G4HadronPhysicsQGSP_BERT_HP(const G4String& name, G4bool /*quasiElastic */ )
|
||||
: G4HadronPhysicsQGSP_BERT(name)
|
||||
@@ -113,17 +114,17 @@ void G4HadronPhysicsQGSP_BERT_HP::Neutron()
|
||||
|
||||
const G4ParticleDefinition* neutron = G4Neutron::Neutron();
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess( neutron );
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
|
||||
}
|
||||
G4HadronicProcess* capture = G4PhysListUtil::FindCaptureProcess( neutron );
|
||||
if ( capture ) {
|
||||
if ( nullptr != capture ) {
|
||||
G4NeutronRadCapture* theNeutronRadCapture = new G4NeutronRadCapture;
|
||||
theNeutronRadCapture->SetMinEnergy( minBERT_neutron );
|
||||
capture->RegisterMe( theNeutronRadCapture );
|
||||
}
|
||||
G4HadronicProcess* fission = G4PhysListUtil::FindFissionProcess( neutron );
|
||||
if ( fission ) {
|
||||
if ( nullptr != fission ) {
|
||||
G4LFission* theNeutronLEPFission = new G4LFission;
|
||||
theNeutronLEPFission->SetMinEnergy( minBERT_neutron );
|
||||
theNeutronLEPFission->SetMaxEnergy( G4HadronicParameters::Instance()->GetMaxEnergy() );
|
||||
|
||||
@@ -70,7 +70,6 @@
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
#include "G4IonConstructor.hh"
|
||||
|
||||
#include "G4HadronCaptureProcess.hh"
|
||||
#include "G4NeutronRadCapture.hh"
|
||||
#include "G4NeutronInelasticXS.hh"
|
||||
#include "G4NeutronCaptureXS.hh"
|
||||
@@ -85,9 +84,11 @@
|
||||
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsQGSP_BIC);
|
||||
|
||||
G4HadronPhysicsQGSP_BIC::G4HadronPhysicsQGSP_BIC(G4int)
|
||||
G4HadronPhysicsQGSP_BIC::G4HadronPhysicsQGSP_BIC(G4int verb)
|
||||
: G4HadronPhysicsQGSP_BIC("hInelastic QGSP_BIC",true)
|
||||
{}
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsQGSP_BIC::G4HadronPhysicsQGSP_BIC(const G4String& name, G4bool)
|
||||
: G4VPhysicsConstructor(name)
|
||||
@@ -277,7 +278,7 @@ void G4HadronPhysicsQGSP_BIC::ConstructProcess()
|
||||
maxBIC_proton = maxBIC_neutron = maxBERT_pik =
|
||||
param->GetMaxEnergyTransitionFTF_Cascade();
|
||||
|
||||
if(G4Threading::IsMasterThread()) {
|
||||
if(G4Threading::IsMasterThread() && param->GetVerboseLevel() > 0) {
|
||||
DumpBanner();
|
||||
}
|
||||
CreateModels();
|
||||
|
||||
+5
-4
@@ -49,10 +49,11 @@
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY( G4HadronPhysicsQGSP_BIC_AllHP );
|
||||
|
||||
|
||||
G4HadronPhysicsQGSP_BIC_AllHP::G4HadronPhysicsQGSP_BIC_AllHP( G4int )
|
||||
G4HadronPhysicsQGSP_BIC_AllHP::G4HadronPhysicsQGSP_BIC_AllHP(G4int verb)
|
||||
: G4HadronPhysicsQGSP_BIC_AllHP( "hInelastic QGSP_BIC_AllHP" )
|
||||
{}
|
||||
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsQGSP_BIC_AllHP::G4HadronPhysicsQGSP_BIC_AllHP( const G4String& name, G4bool quasiElastic )
|
||||
: G4HadronPhysicsQGSP_BIC_HP( name, quasiElastic )
|
||||
@@ -90,7 +91,7 @@ void G4HadronPhysicsQGSP_BIC_AllHP::Proton() {
|
||||
|
||||
const G4ParticleDefinition* proton = G4Proton::Proton();
|
||||
G4HadronicProcess* inel = G4PhysListUtil::FindInelasticProcess(proton);
|
||||
if(inel) {
|
||||
if(nullptr != inel) {
|
||||
if( useFactorXS ) inel->MultiplyCrossSectionBy( param->XSFactorNucleonInelastic() );
|
||||
}
|
||||
}
|
||||
|
||||
+4
-3
@@ -54,7 +54,6 @@
|
||||
#include "G4QGSPNeutronBuilder.hh"
|
||||
#include "G4BinaryNeutronBuilder.hh"
|
||||
#include "G4NeutronPHPBuilder.hh"
|
||||
#include "G4HadronCaptureProcess.hh"
|
||||
#include "G4NeutronRadCapture.hh"
|
||||
#include "G4NeutronCaptureXS.hh"
|
||||
#include "G4ParticleHPCaptureData.hh"
|
||||
@@ -70,9 +69,11 @@
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY( G4HadronPhysicsQGSP_BIC_HP );
|
||||
|
||||
|
||||
G4HadronPhysicsQGSP_BIC_HP::G4HadronPhysicsQGSP_BIC_HP( G4int )
|
||||
G4HadronPhysicsQGSP_BIC_HP::G4HadronPhysicsQGSP_BIC_HP(G4int verb)
|
||||
: G4HadronPhysicsQGSP_BIC_HP( "hInelastic QGSP_BIC_HP" )
|
||||
{}
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsQGSP_BIC_HP::G4HadronPhysicsQGSP_BIC_HP( const G4String& name, G4bool quasiElastic )
|
||||
: G4HadronPhysicsQGSP_BIC( name, quasiElastic )
|
||||
|
||||
+5
-3
@@ -43,13 +43,15 @@
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsQGSP_FTFP_BERT);
|
||||
|
||||
|
||||
G4HadronPhysicsQGSP_FTFP_BERT::G4HadronPhysicsQGSP_FTFP_BERT(G4int)
|
||||
G4HadronPhysicsQGSP_FTFP_BERT::G4HadronPhysicsQGSP_FTFP_BERT(G4int verb)
|
||||
: G4HadronPhysicsQGSP_FTFP_BERT("hInelastic QGSP_FTFP_BERT",true)
|
||||
{}
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsQGSP_FTFP_BERT::G4HadronPhysicsQGSP_FTFP_BERT(const G4String& name,
|
||||
G4bool quasiElastic)
|
||||
: G4HadronPhysicsQGSP_BERT(name,quasiElastic)
|
||||
: G4HadronPhysicsQGSP_BERT(name,quasiElastic)
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetEnableBCParticles(true);
|
||||
}
|
||||
|
||||
@@ -65,7 +65,6 @@
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4HadronCaptureProcess.hh"
|
||||
#include "G4NeutronRadCapture.hh"
|
||||
#include "G4NeutronInelasticXS.hh"
|
||||
#include "G4NeutronCaptureXS.hh"
|
||||
@@ -78,8 +77,11 @@
|
||||
//
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsQGS_BIC);
|
||||
|
||||
G4HadronPhysicsQGS_BIC::G4HadronPhysicsQGS_BIC(G4int)
|
||||
: G4HadronPhysicsQGS_BIC("hInelastic QGS_BIC",true) {}
|
||||
G4HadronPhysicsQGS_BIC::G4HadronPhysicsQGS_BIC(G4int verb)
|
||||
: G4HadronPhysicsQGS_BIC("hInelastic QGS_BIC",true)
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsQGS_BIC::G4HadronPhysicsQGS_BIC(const G4String& name, G4bool qe)
|
||||
: G4HadronPhysicsQGSP_BERT(name, qe)
|
||||
|
||||
@@ -90,7 +90,6 @@
|
||||
|
||||
#include "G4ComponentGGHadronNucleusXsc.hh"
|
||||
#include "G4CrossSectionInelastic.hh"
|
||||
#include "G4HadronCaptureProcess.hh"
|
||||
#include "G4NeutronRadCapture.hh"
|
||||
#include "G4NeutronCaptureXS.hh"
|
||||
#include "G4ParticleHPCaptureData.hh"
|
||||
@@ -107,9 +106,11 @@
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsShielding);
|
||||
|
||||
|
||||
G4HadronPhysicsShielding::G4HadronPhysicsShielding( G4int )
|
||||
G4HadronPhysicsShielding::G4HadronPhysicsShielding(G4int verb)
|
||||
: G4HadronPhysicsShielding()
|
||||
{}
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsShielding::G4HadronPhysicsShielding(const G4String& name)
|
||||
: G4HadronPhysicsShielding(name, false)
|
||||
@@ -121,14 +122,17 @@ G4HadronPhysicsShielding::G4HadronPhysicsShielding(const G4String& name, G4bool
|
||||
minBERT_neutron = 19.9*CLHEP::MeV;
|
||||
}
|
||||
|
||||
G4HadronPhysicsShielding::G4HadronPhysicsShielding(const G4String& name, G4int)
|
||||
G4HadronPhysicsShielding::G4HadronPhysicsShielding(const G4String& name, G4int verb)
|
||||
: G4HadronPhysicsShielding(name, false)
|
||||
{}
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsShielding::G4HadronPhysicsShielding(const G4String& name, G4int,
|
||||
G4HadronPhysicsShielding::G4HadronPhysicsShielding(const G4String& name, G4int verb,
|
||||
G4double minFTFPEnergy, G4double maxBertiniEnergy)
|
||||
: G4HadronPhysicsShielding(name, false)
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
minFTFP_pion = minFTFPEnergy;
|
||||
maxBERT_pion = maxBertiniEnergy;
|
||||
minFTFP_kaon = minFTFPEnergy;
|
||||
@@ -194,7 +198,8 @@ void G4HadronPhysicsShielding::Neutron()
|
||||
|
||||
void G4HadronPhysicsShielding::ConstructProcess()
|
||||
{
|
||||
if ( G4Threading::IsMasterThread() ) {
|
||||
if ( G4Threading::IsMasterThread() &&
|
||||
G4HadronicParameters::Instance()->GetVerboseLevel() > 0) {
|
||||
DumpBanner();
|
||||
}
|
||||
CreateModels();
|
||||
|
||||
+9
-4
@@ -37,15 +37,18 @@
|
||||
//
|
||||
|
||||
#include "G4HadronPhysicsShieldingLEND.hh"
|
||||
#include "G4HadronicParameters.hh"
|
||||
|
||||
// factory
|
||||
#include "G4PhysicsConstructorFactory.hh"
|
||||
//
|
||||
G4_DECLARE_PHYSCONSTR_FACTORY(G4HadronPhysicsShieldingLEND);
|
||||
|
||||
G4HadronPhysicsShieldingLEND::G4HadronPhysicsShieldingLEND( G4int )
|
||||
G4HadronPhysicsShieldingLEND::G4HadronPhysicsShieldingLEND(G4int verb)
|
||||
: G4HadronPhysicsShieldingLEND()
|
||||
{}
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsShieldingLEND::G4HadronPhysicsShieldingLEND(const G4String& name)
|
||||
: G4HadronPhysicsShieldingLEND(name, false)
|
||||
@@ -59,9 +62,11 @@ G4HadronPhysicsShieldingLEND::G4HadronPhysicsShieldingLEND(
|
||||
}
|
||||
|
||||
G4HadronPhysicsShieldingLEND::G4HadronPhysicsShieldingLEND(
|
||||
const G4String& name, G4int)
|
||||
const G4String& name, G4int verb)
|
||||
: G4HadronPhysicsShieldingLEND(name, false)
|
||||
{}
|
||||
{
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
}
|
||||
|
||||
G4HadronPhysicsShieldingLEND::G4HadronPhysicsShieldingLEND(
|
||||
const G4String& name, G4int verb,
|
||||
|
||||
@@ -49,11 +49,13 @@
|
||||
#include "G4ProcessVector.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
#include "G4VHadronModelBuilder.hh"
|
||||
#include "G4HadronicParameters.hh"
|
||||
|
||||
G4VHadronPhysics::G4VHadronPhysics(const G4String& aName, G4int verb)
|
||||
: G4VPhysicsConstructor(aName)
|
||||
{
|
||||
SetVerboseLevel(verb);
|
||||
G4HadronicParameters::Instance()->SetVerboseLevel(verb);
|
||||
if (verboseLevel>1) {
|
||||
G4cout << "### G4VHadronPhysics: <" << aName << "> is created "
|
||||
<< G4endl;
|
||||
@@ -101,7 +103,7 @@ G4VHadronPhysics::NewModel(G4HadronicInteraction* model,
|
||||
G4double emin,
|
||||
G4double emax)
|
||||
{
|
||||
if(!model) return model;
|
||||
if(nullptr == model) return model;
|
||||
model->SetMinEnergy(emin);
|
||||
model->SetMaxEnergy(emax);
|
||||
if (verboseLevel>1) {
|
||||
|
||||
Reference in New Issue
Block a user