Import Geant4 10.4.0 source tree
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: FTFQGSP_BERT.hh 66241 2012-12-13 18:34:42Z gunter $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: FTFQGSP_BERT
|
||||
//
|
||||
// Author: Alberto Ribon, October 2017
|
||||
// created from FTFP_BERT, using QGS string fragmentation instead of the
|
||||
// Lund string fragmentation
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
#ifndef TFTFQGSP_BERT_h
|
||||
#define TFTFQGSP_BERT_h 1
|
||||
|
||||
#include <CLHEP/Units/SystemOfUnits.h>
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VModularPhysicsList.hh"
|
||||
#include "CompileTimeConstraints.hh"
|
||||
|
||||
template<class T>
|
||||
class TFTFQGSP_BERT: public T
|
||||
{
|
||||
public:
|
||||
TFTFQGSP_BERT(G4int ver = 1);
|
||||
virtual ~TFTFQGSP_BERT();
|
||||
|
||||
public:
|
||||
// SetCuts()
|
||||
virtual void SetCuts();
|
||||
|
||||
private:
|
||||
enum {ok = CompileTimeConstraints::IsA<T, G4VModularPhysicsList>::ok };
|
||||
};
|
||||
#include "FTFQGSP_BERT.icc"
|
||||
typedef TFTFQGSP_BERT<G4VModularPhysicsList> FTFQGSP_BERT;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,119 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: FTFQGSP_BERT.icc 66704 2013-01-10 18:20:17Z gunter $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: FTFQGSP_BERT
|
||||
//
|
||||
// Author: 2017 Alberto Ribon
|
||||
//
|
||||
// created from FTFP_BERT
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
#include <iomanip>
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
#include "G4ProcessVector.hh"
|
||||
#include "G4ParticleTypes.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4Material.hh"
|
||||
#include "G4MaterialTable.hh"
|
||||
|
||||
#include "G4DecayPhysics.hh"
|
||||
#include "G4EmStandardPhysics.hh"
|
||||
#include "G4EmExtraPhysics.hh"
|
||||
#include "G4IonPhysics.hh"
|
||||
#include "G4StoppingPhysics.hh"
|
||||
#include "G4HadronElasticPhysics.hh"
|
||||
#include "G4NeutronTrackingCut.hh"
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "G4HadronPhysicsFTFQGSP_BERT.hh"
|
||||
|
||||
#include "G4WarnPLStatus.hh"
|
||||
|
||||
|
||||
template<class T> TFTFQGSP_BERT<T>::TFTFQGSP_BERT(G4int ver): T()
|
||||
{
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: FTFQGSP_BERT 1.0"<<G4endl;
|
||||
G4cout <<G4endl;
|
||||
this->defaultCutValue = 0.7*CLHEP::mm;
|
||||
this->SetVerboseLevel(ver);
|
||||
|
||||
G4WarnPLStatus exp;
|
||||
exp.Experimental("FTFQGSP_BERT");
|
||||
|
||||
// EM Physics
|
||||
this->RegisterPhysics( new G4EmStandardPhysics(ver) );
|
||||
|
||||
// Synchroton Radiation & GN Physics
|
||||
this->RegisterPhysics( new G4EmExtraPhysics(ver) );
|
||||
|
||||
// Decays
|
||||
this->RegisterPhysics( new G4DecayPhysics(ver) );
|
||||
|
||||
// Hadron Elastic scattering
|
||||
this->RegisterPhysics( new G4HadronElasticPhysics(ver) );
|
||||
|
||||
// Hadron Physics
|
||||
this->RegisterPhysics( new G4HadronPhysicsFTFQGSP_BERT(ver) );
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4StoppingPhysics(ver) );
|
||||
|
||||
// Ion Physics
|
||||
this->RegisterPhysics( new G4IonPhysics(ver) );
|
||||
|
||||
// Neutron tracking cut
|
||||
this->RegisterPhysics( new G4NeutronTrackingCut(ver) );
|
||||
}
|
||||
|
||||
template<class T> TFTFQGSP_BERT<T>::~TFTFQGSP_BERT()
|
||||
{
|
||||
}
|
||||
|
||||
template<class T> void TFTFQGSP_BERT<T>::SetCuts()
|
||||
{
|
||||
if (this->verboseLevel >1){
|
||||
G4cout << "FTFQGSP_BERT::SetCuts:";
|
||||
}
|
||||
// " G4VUserPhysicsList::SetCutsWithDefault" method sets
|
||||
// the default cut value for all particle types
|
||||
|
||||
this->SetCutsWithDefault();
|
||||
|
||||
// if (this->verboseLevel > 0)
|
||||
// G4VUserPhysicsList::DumpCutValuesTable();
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PhysListFactory.hh 66892 2013-01-17 10:57:59Z gunter $
|
||||
// $Id: G4PhysListFactory.hh 107319 2017-11-08 16:29:22Z gcosmo $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -41,6 +41,8 @@
|
||||
#include "G4VModularPhysicsList.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4UImessenger;
|
||||
|
||||
class G4PhysListFactory
|
||||
{
|
||||
public:
|
||||
@@ -74,6 +76,7 @@ private:
|
||||
size_t nlists_hadr;
|
||||
size_t nlists_em;
|
||||
G4int verbose;
|
||||
G4UImessenger* theMessenger;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PhysListFactoryMessenger.hh 66704 2013-01-10 18:20:17Z gunter $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: G4PhysListFactoryMessenger
|
||||
//
|
||||
// Author: 2002 J.P. Wellisch
|
||||
//
|
||||
// Modified:
|
||||
// 09.11.2005 V.Ivanchenko edit to provide a standard
|
||||
// 19.06.2006 V.Ivanchenko add mu-nuclear process
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#ifndef G4PhysListFactoryMessenger_h
|
||||
#define G4PhysListFactoryMessenger_h 1
|
||||
|
||||
#include "G4UImessenger.hh"
|
||||
#include "G4UIdirectory.hh"
|
||||
#include "G4UIcmdWithoutParameter.hh"
|
||||
#include "G4UIcommand.hh"
|
||||
|
||||
class G4VModularPhysicsList;
|
||||
|
||||
class G4PhysListFactoryMessenger: public G4UImessenger
|
||||
{
|
||||
public:
|
||||
G4PhysListFactoryMessenger(G4VModularPhysicsList* pl);
|
||||
virtual ~G4PhysListFactoryMessenger();
|
||||
|
||||
void SetNewValue(G4UIcommand* aComm, G4String aS);
|
||||
|
||||
private:
|
||||
G4VModularPhysicsList* thePhysList;
|
||||
G4UIcommand* theRadDecay;
|
||||
G4UIcommand* theOptical;
|
||||
G4UIdirectory* theDir;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id:
|
||||
// $Id:
|
||||
//
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
@@ -37,14 +37,14 @@
|
||||
// Author R. Hatcher 2014-10-15
|
||||
//
|
||||
// Modifications: based on G4PhysicsConstructorRegistry
|
||||
//
|
||||
//
|
||||
//
|
||||
// Class Description
|
||||
// This is a singleton keeping pointers to all physics lists
|
||||
// Class Description - End
|
||||
|
||||
#ifndef G4PhysListRegistry_h
|
||||
#define G4PhysListRegistry_h 1
|
||||
#ifndef G4PhysListRegistry_hh
|
||||
#define G4PhysListRegistry_hh 1
|
||||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
@@ -59,10 +59,10 @@ class G4PhysListRegistry
|
||||
public:
|
||||
|
||||
static G4PhysListRegistry* Instance();
|
||||
// access
|
||||
|
||||
// access
|
||||
|
||||
~G4PhysListRegistry();
|
||||
|
||||
|
||||
void AddFactory(G4String name, G4VBasePhysListStamper*);
|
||||
void AddPhysicsExtension(G4String name, G4String procname);
|
||||
// mapping from extension name to actual physics contructor process name
|
||||
@@ -70,7 +70,6 @@ public:
|
||||
G4VModularPhysicsList* GetModularPhysicsList(const G4String& name);
|
||||
G4VModularPhysicsList* GetModularPhysicsListFromEnv();
|
||||
|
||||
|
||||
G4bool IsReferencePhysList(G4String nam) const;
|
||||
|
||||
const std::vector<G4String>& AvailablePhysLists() const;
|
||||
@@ -80,10 +79,16 @@ public:
|
||||
void PrintAvailablePhysLists() const;
|
||||
|
||||
G4bool DeconstructPhysListName(const G4String& name, G4String& plBase,
|
||||
std::vector<G4String>& physExt,
|
||||
std::vector<G4String>& physExt,
|
||||
std::vector<G4int>& replace,
|
||||
G4int verbose=0) const;
|
||||
|
||||
G4bool FindLongestMatch(const G4String& workName,
|
||||
const G4String& searchName,
|
||||
const std::vector<G4String>& validNames,
|
||||
G4String& bestMatch,
|
||||
G4int verbose=0) const;
|
||||
|
||||
inline void SetVerbose(G4int val) { verbose = val; }
|
||||
inline G4int GetVerbose() const { return verbose; }
|
||||
|
||||
@@ -112,7 +117,7 @@ private:
|
||||
G4String systemDefault; /// use this if user hasn't set userDefault
|
||||
/// or attempts to set the userDefault=""
|
||||
|
||||
// Make these mutable and update them on each request because the map might
|
||||
// Make these mutable and update them on each request because the map might
|
||||
// have been updated by the addition of new entries
|
||||
// The only reason to have them at all is that that original interface
|
||||
// returned a const reference and so we can't pass back a local object
|
||||
|
||||
@@ -93,7 +93,7 @@ G4_DECLARE_PHYSLIST_FACTORY(Shielding);
|
||||
|
||||
// some extra hoops because the physlist factory expects to be able
|
||||
// to construct a list using just a verbosity argument
|
||||
// but
|
||||
// but
|
||||
// "ShieldingLEND" is Shielding(verbose,"LEND");
|
||||
// "ShieldingM" is Shielding(verbose,"HP","M");
|
||||
|
||||
@@ -124,4 +124,18 @@ G4_DECLARE_PHYSLIST_FACTORY(G4GenericPhysicsList);
|
||||
#include "QGSP_BIC_AllHP.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(QGSP_BIC_AllHP);
|
||||
|
||||
//
|
||||
#include "FTFQGSP_BERT.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(FTFQGSP_BERT);
|
||||
|
||||
//// should these also be included?
|
||||
|
||||
/*
|
||||
#include "FTF_BIC.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(FTF_BIC);
|
||||
|
||||
#include "QGS_BIC.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(QGS_BIC);
|
||||
*/
|
||||
|
||||
|
||||
//
|
||||
|
||||
@@ -889,6 +889,7 @@ template<class T> TLBE<T>::~TLBE()
|
||||
#include "G4LossTableManager.hh"
|
||||
#include "G4UAtomicDeexcitation.hh"
|
||||
#include "G4NuclearLevelData.hh"
|
||||
#include "G4NuclideTable.hh"
|
||||
|
||||
template<class T> void TLBE<T>::ConstructGeneral() {
|
||||
|
||||
@@ -917,14 +918,15 @@ template<class T> TLBE<T>::~TLBE()
|
||||
G4ParticleTable::GetParticleTable()->GetIonTable();
|
||||
G4RadioactiveDecay *theRadioactiveDecay = new G4RadioactiveDecay();
|
||||
|
||||
{
|
||||
//Fix for activation of RadioactiveDecay, based on G4RadioactiveDecayPhysics
|
||||
G4EmParameters* param = G4EmParameters::Instance();
|
||||
param->SetAugerCascade(true);
|
||||
param->AddPhysics("world","G4RadioactiveDecay");
|
||||
|
||||
G4NuclearLevelData::GetInstance()->GetParameters()->SetUseFilesNEW(true);
|
||||
G4NuclearLevelData::GetInstance()->GetParameters()->SetStoreAllLevels(true);
|
||||
G4DeexPrecoParameters* deex = G4NuclearLevelData::GetInstance()->GetParameters();
|
||||
deex->SetStoreAllLevels(true);
|
||||
deex->SetMaxLifeTime(G4NuclideTable::GetInstance()->GetThresholdOfHalfLife()
|
||||
/std::log(2.));
|
||||
|
||||
G4LossTableManager* man = G4LossTableManager::Instance();
|
||||
G4VAtomDeexcitation* ad = man->AtomDeexcitation();
|
||||
@@ -933,7 +935,6 @@ template<class T> TLBE<T>::~TLBE()
|
||||
man->SetAtomDeexcitation(ad);
|
||||
ad->InitialiseAtomicDeexcitation();
|
||||
}
|
||||
}
|
||||
|
||||
for (G4int i=0; i<theIonTable->Entries(); i++)
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: Shielding.icc 101813 2016-11-30 18:05:43Z gunter $
|
||||
// $Id: Shielding.icc 107319 2017-11-08 16:29:22Z gcosmo $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -70,16 +70,27 @@
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "G4HadronPhysicsShielding.hh"
|
||||
#include "G4HadronPhysicsShieldingLEND.hh"
|
||||
|
||||
//template<class T> TShielding<T>::TShielding(G4int ver): T()
|
||||
template<class T> TShielding<T>::TShielding( G4int verbose, G4String LEN_model,
|
||||
G4String HadrPhysVariant ): T()
|
||||
{
|
||||
size_t find = LEN_model.find("LEND__");
|
||||
G4String evaluation;
|
||||
if ( find != G4String::npos )
|
||||
{
|
||||
evaluation=LEN_model;
|
||||
evaluation.erase(0,find+6);
|
||||
LEN_model="LEND";
|
||||
}
|
||||
|
||||
// default cut value (1.0mm)
|
||||
// defaultCutValue = 1.0*CLHEP::mm;
|
||||
G4DataQuestionaire it(photon, neutron, radioactive);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: Shielding"
|
||||
<< HadrPhysVariant<< " 2.1"<<G4endl;
|
||||
if ( LEN_model=="LEND" ) G4cout << "<<< LEND will be used for low energy neutron and gammp projectiles" << G4endl;
|
||||
G4cout <<G4endl;
|
||||
this->defaultCutValue = 0.7*CLHEP::mm;
|
||||
this->SetVerboseLevel(verbose);
|
||||
@@ -92,22 +103,18 @@ template<class T> TShielding<T>::TShielding( G4int verbose, G4String LEN_model,
|
||||
//emOptions.SetPIXE(true); // To activate Particle Induced X-Ray Emission (PIXE)
|
||||
|
||||
// Synchroton Radiation & GN Physics
|
||||
this->RegisterPhysics( new G4EmExtraPhysics(verbose) );
|
||||
G4EmExtraPhysics* emExtraPhysics = new G4EmExtraPhysics(verbose);
|
||||
if ( LEN_model == "LEND" ) {
|
||||
// Use LEND model for Gamma Nuclear
|
||||
emExtraPhysics->LENDGammaNuclear(true);
|
||||
}
|
||||
this->RegisterPhysics( emExtraPhysics );
|
||||
|
||||
// Decays
|
||||
this->RegisterPhysics( new G4DecayPhysics(verbose) );
|
||||
//if ( rad == true ) this->RegisterPhysics( new G4RadioactiveDecayPhysics(verbose) );
|
||||
this->RegisterPhysics( new G4RadioactiveDecayPhysics(verbose) );
|
||||
|
||||
size_t find = LEN_model.find("LEND__");
|
||||
G4String evaluation;
|
||||
if ( find != G4String::npos )
|
||||
{
|
||||
evaluation=LEN_model;
|
||||
evaluation.erase(0,find+6);
|
||||
LEN_model="LEND";
|
||||
}
|
||||
|
||||
// Hadron Elastic scattering
|
||||
if ( LEN_model == "HP" )
|
||||
{
|
||||
@@ -126,29 +133,28 @@ template<class T> TShielding<T>::TShielding( G4int verbose, G4String LEN_model,
|
||||
this->RegisterPhysics( new G4HadronElasticPhysicsHP(verbose) );
|
||||
}
|
||||
|
||||
G4HadronPhysicsShielding* hps;
|
||||
// Hadron Physics
|
||||
G4VPhysicsConstructor* hpc;
|
||||
// Hadron Physics HP or LEND
|
||||
if (HadrPhysVariant == "M") {
|
||||
hps = new G4HadronPhysicsShielding("hInelastic Shielding", verbose, 9.5*CLHEP::GeV, 9.9*CLHEP::GeV);
|
||||
hpc = new G4HadronPhysicsShielding("hInelastic Shielding", verbose, 9.5*CLHEP::GeV, 9.9*CLHEP::GeV);
|
||||
} else {
|
||||
hps = new G4HadronPhysicsShielding("hInelastic Shielding", verbose, 4.0*CLHEP::GeV, 5.0*CLHEP::GeV);
|
||||
hpc = new G4HadronPhysicsShielding("hInelastic Shielding", verbose, 4.0*CLHEP::GeV, 5.0*CLHEP::GeV);
|
||||
}
|
||||
if ( LEN_model == "HP" )
|
||||
{
|
||||
;
|
||||
}
|
||||
else if ( LEN_model == "LEND" )
|
||||
{
|
||||
hps->UseLEND(evaluation);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if ( LEN_model == "LEND" ) {
|
||||
delete hpc;
|
||||
if (HadrPhysVariant == "M") {
|
||||
hpc = new G4HadronPhysicsShieldingLEND("hInelastic ShieldingLEND", verbose, 9.5*CLHEP::GeV, 9.9*CLHEP::GeV);
|
||||
} else {
|
||||
hpc = new G4HadronPhysicsShieldingLEND("hInelastic ShieldingLEND", verbose, 4.0*CLHEP::GeV, 5.0*CLHEP::GeV);
|
||||
}
|
||||
} else {
|
||||
//G4cout << "Shielding Physics List: Warning." <<G4endl;
|
||||
//G4cout << "Name of Low Energy Neutron model " << LEN_model << " is invalid." <<G4endl;
|
||||
//G4cout << "Will use neutron HP package." <<G4endl;
|
||||
}
|
||||
this->RegisterPhysics( hps );
|
||||
//this->RegisterPhysics( new G4HadronPhysicsShielding(verbose,lend));
|
||||
this->RegisterPhysics( hpc );
|
||||
|
||||
|
||||
if ( LEN_model == "HP" ) {
|
||||
//Activate prodcuton of fission fragments in neutronHP
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: ShieldingLEND.hh 83151 2014-08-06 16:22:30Z klg $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName:
|
||||
//
|
||||
// Author: 7 Nov 2017 Tatsumi Koi
|
||||
// created from Shielding
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
#ifndef TShieldingLEND_h
|
||||
#define TShieldingLEND_h 1
|
||||
|
||||
#include <CLHEP/Units/SystemOfUnits.h>
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4VModularPhysicsList.hh"
|
||||
#include "CompileTimeConstraints.hh"
|
||||
|
||||
template<class T>
|
||||
class TShieldingLEND: public T
|
||||
{
|
||||
public:
|
||||
//TShieldingLEND(G4int ver = 1);
|
||||
//TShieldingLEND(G4int ver = 1, G4bool rad=true, G4bool lend=false);
|
||||
explicit TShieldingLEND( G4int verbose = 1 , G4String low_energy_neutron_model = "LEND",
|
||||
G4String HadrPhysVariant = "");
|
||||
virtual ~TShieldingLEND();
|
||||
|
||||
public:
|
||||
// SetCuts()
|
||||
virtual void SetCuts();
|
||||
|
||||
private:
|
||||
enum {ok = CompileTimeConstraints::IsA<T, G4VModularPhysicsList>::ok };
|
||||
};
|
||||
#include "ShieldingLEND.icc"
|
||||
typedef TShieldingLEND<G4VModularPhysicsList> ShieldingLEND;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,141 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: ShieldingLEND.icc 101814 2016-11-30 18:16:07Z gunter $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName:
|
||||
//
|
||||
// Author: 7 Nov 2017 Tatsumi Koi
|
||||
// created from Shielding
|
||||
//
|
||||
// Modified:
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#include <iomanip>
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
#include "G4ProcessVector.hh"
|
||||
#include "G4ParticleTypes.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4Material.hh"
|
||||
#include "G4MaterialTable.hh"
|
||||
|
||||
#include "G4DecayPhysics.hh"
|
||||
#include "G4RadioactiveDecayPhysics.hh"
|
||||
#include "G4EmProcessOptions.hh"
|
||||
#include "G4EmStandardPhysics.hh"
|
||||
#include "G4EmExtraPhysics.hh"
|
||||
#include "G4IonQMDPhysics.hh"
|
||||
#include "G4IonElasticPhysics.hh"
|
||||
#include "G4StoppingPhysics.hh"
|
||||
#include "G4HadronElasticPhysicsLEND.hh"
|
||||
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "G4HadronPhysicsShieldingLEND.hh"
|
||||
|
||||
template<class T> TShieldingLEND<T>::TShieldingLEND( G4int verbose, G4String /*LEN_model*/,
|
||||
G4String HadrPhysVariant ): T()
|
||||
{
|
||||
|
||||
// default cut value (1.0mm)
|
||||
// defaultCutValue = 1.0*CLHEP::mm;
|
||||
G4DataQuestionaire it(photon, neutron, radioactive);
|
||||
G4cout << "<<< Geant4 Physics List simulation engine: ShieldingLEND"
|
||||
<< HadrPhysVariant<< " 2.1"<<G4endl;
|
||||
G4cout <<G4endl;
|
||||
this->defaultCutValue = 0.7*CLHEP::mm;
|
||||
this->SetVerboseLevel(verbose);
|
||||
|
||||
// EM Physics
|
||||
this->RegisterPhysics( new G4EmStandardPhysics(verbose) );
|
||||
//G4EmProcessOptions emOptions;
|
||||
//emOptions.SetFluo(true); // To activate deexcitation processes and fluorescence
|
||||
//emOptions.SetAuger(true); // To activate Auger effect if deexcitation is activated
|
||||
//emOptions.SetPIXE(true); // To activate Particle Induced X-Ray Emission (PIXE)
|
||||
|
||||
// Synchroton Radiation & GN Physics
|
||||
G4EmExtraPhysics* emExtraPhysics = new G4EmExtraPhysics(verbose);
|
||||
// Use LEND model for Gamma Nuclear
|
||||
emExtraPhysics->LENDGammaNuclear(true);
|
||||
this->RegisterPhysics( emExtraPhysics );
|
||||
|
||||
// Decays
|
||||
this->RegisterPhysics( new G4DecayPhysics(verbose) );
|
||||
this->RegisterPhysics( new G4RadioactiveDecayPhysics(verbose) );
|
||||
|
||||
G4String evaluation("");
|
||||
//evaluation="ENDF/BVII.1";
|
||||
//"ENDF/BVII.1" is the only evaluation currently supported.
|
||||
|
||||
// Hadron Elastic scattering
|
||||
this->RegisterPhysics( new G4HadronElasticPhysicsLEND(verbose,evaluation) );
|
||||
|
||||
G4DataQuestionaire itt(lend);
|
||||
G4HadronPhysicsShieldingLEND* hps;
|
||||
// Hadron Physics
|
||||
if (HadrPhysVariant == "M") {
|
||||
hps = new G4HadronPhysicsShieldingLEND("hInelastic ShieldingLEND", verbose, 9.5*CLHEP::GeV, 9.9*CLHEP::GeV);
|
||||
} else {
|
||||
hps = new G4HadronPhysicsShieldingLEND("hInelastic ShieldingLEND", verbose, 4.0*CLHEP::GeV, 5.0*CLHEP::GeV);
|
||||
}
|
||||
hps->UseLEND(evaluation);
|
||||
this->RegisterPhysics( hps );
|
||||
|
||||
// Stopping Physics
|
||||
this->RegisterPhysics( new G4StoppingPhysics(verbose) );
|
||||
|
||||
// Ion Physics
|
||||
this->RegisterPhysics( new G4IonQMDPhysics(verbose) );
|
||||
|
||||
this->RegisterPhysics( new G4IonElasticPhysics(verbose) );
|
||||
|
||||
// Neutron tracking cut --> not by default
|
||||
// this->RegisterPhysics( new G4NeutronTrackingCut(verbose));
|
||||
|
||||
}
|
||||
|
||||
template<class T> TShieldingLEND<T>::~TShieldingLEND()
|
||||
{
|
||||
}
|
||||
|
||||
template<class T> void TShieldingLEND<T>::SetCuts()
|
||||
{
|
||||
if (this->verboseLevel >1){
|
||||
G4cout << "ShieldingLEND::SetCuts:";
|
||||
}
|
||||
// " G4VUserPhysicsList::SetCutsWithDefault" method sets
|
||||
// the default cut value for all particle types
|
||||
|
||||
this->SetCutsWithDefault();
|
||||
|
||||
//Set proton cut value to 0 for producing low energy recoil nucleus
|
||||
this->SetCutValue(0, "proton");
|
||||
}
|
||||
Reference in New Issue
Block a user