Import Geant4 10.3.0.beta source tree
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PhysListFactory.cc 92863 2015-09-18 12:44:13Z gcosmo $
|
||||
// $Id: G4PhysListFactory.cc 96327 2016-04-06 15:50:53Z gcosmo $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -43,6 +43,7 @@
|
||||
#include "FTFP_BERT.hh"
|
||||
#include "FTFP_BERT_HP.hh"
|
||||
#include "FTFP_BERT_TRV.hh"
|
||||
#include "FTFP_BERT_ATL.hh"
|
||||
#include "FTFP_INCLXX.hh"
|
||||
#include "FTFP_INCLXX_HP.hh"
|
||||
#include "FTF_BIC.hh"
|
||||
@@ -72,9 +73,9 @@
|
||||
G4PhysListFactory::G4PhysListFactory()
|
||||
: defName("FTFP_BERT"),verbose(1)
|
||||
{
|
||||
nlists_hadr = 21;
|
||||
G4String ss[21] = {
|
||||
"FTFP_BERT","FTFP_BERT_TRV","FTFP_BERT_HP","FTFP_INCLXX",
|
||||
nlists_hadr = 22;
|
||||
G4String ss[22] = {
|
||||
"FTFP_BERT","FTFP_BERT_TRV","FTFP_BERT_ATL","FTFP_BERT_HP","FTFP_INCLXX",
|
||||
"FTFP_INCLXX_HP","FTF_BIC", "LBE","QBBC",
|
||||
"QGSP_BERT","QGSP_BERT_HP","QGSP_BIC","QGSP_BIC_HP","QGSP_BIC_AllHP",
|
||||
"QGSP_FTFP_BERT","QGSP_INCLXX","QGSP_INCLXX_HP","QGS_BIC",
|
||||
@@ -147,6 +148,7 @@ G4PhysListFactory::GetReferencePhysList(const G4String& name)
|
||||
if(had_name == "FTFP_BERT") {p = new FTFP_BERT(verbose);}
|
||||
else if(had_name == "FTFP_BERT_HP") {p = new FTFP_BERT_HP(verbose);}
|
||||
else if(had_name == "FTFP_BERT_TRV") {p = new FTFP_BERT_TRV(verbose);}
|
||||
else if(had_name == "FTFP_BERT_ATL") {p = new FTFP_BERT_ATL(verbose);}
|
||||
else if(had_name == "FTFP_INCLXX") {p = new FTFP_INCLXX(verbose);}
|
||||
else if(had_name == "FTFP_INCLXX_HP") {p = new FTFP_INCLXX_HP(verbose);}
|
||||
else if(had_name == "FTF_BIC") {p = new FTF_BIC(verbose);}
|
||||
|
||||
@@ -47,6 +47,9 @@
|
||||
#include "G4PhysListStamper.hh"
|
||||
#include "G4PhysicsConstructorRegistry.hh"
|
||||
|
||||
// include this with this compilation unit so static builds pull them in
|
||||
#include "G4RegisterPhysLists.icc"
|
||||
|
||||
G4ThreadLocal G4PhysListRegistry* G4PhysListRegistry::theInstance = 0;
|
||||
|
||||
G4PhysListRegistry* G4PhysListRegistry::Instance()
|
||||
@@ -142,7 +145,7 @@ G4PhysListRegistry::GetModularPhysicsList(const G4String& name)
|
||||
ED << "]" << G4endl;
|
||||
}
|
||||
G4Exception("G4PhysListRegistry::GetModularPhysicsList",
|
||||
"PhysicsList001", FatalException, ED);
|
||||
"PhysicsList002", FatalException, ED);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -161,13 +164,13 @@ G4PhysListRegistry::GetModularPhysicsList(const G4String& name)
|
||||
G4String pcname = physicsExtensions[extName];
|
||||
// this doesn't have a verbose option ... it should
|
||||
// but G4PhysicsConstructorFactory doesn't support it
|
||||
G4VPhysicsConstructor* pc = pcRegistry->GetPhysicsConstructor(pcname);
|
||||
G4VPhysicsConstructor* pctor = pcRegistry->GetPhysicsConstructor(pcname);
|
||||
G4String reporreg = "";
|
||||
if ( physReplace[ipc] > 0 ) {
|
||||
pl->ReplacePhysics(pc);
|
||||
pl->ReplacePhysics(pctor);
|
||||
reporreg = "ReplacePhysics ";
|
||||
} else {
|
||||
pl->RegisterPhysics(pc);
|
||||
pl->RegisterPhysics(pctor);
|
||||
reporreg = "RegisterPhysics";
|
||||
}
|
||||
if ( verbose > 0 ) G4cout << "<<< " << reporreg << " with " << pcname
|
||||
|
||||
@@ -1,124 +0,0 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: RegisterPhysLists.icc 66704 2013-01-10 18:20:17Z rhatcher $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: RegisterPhysLists
|
||||
//
|
||||
// Author: R. Hatcher 2014-10-15
|
||||
//
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#include "G4PhysListStamper.hh"
|
||||
|
||||
#include "FTFP_BERT.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(FTFP_BERT);
|
||||
|
||||
#include "FTFP_BERT_HP.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(FTFP_BERT_HP);
|
||||
|
||||
#include "FTFP_BERT_TRV.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(FTFP_BERT_TRV);
|
||||
|
||||
#include "FTFP_INCLXX.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(FTFP_INCLXX);
|
||||
|
||||
#include "FTFP_INCLXX_HP.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(FTFP_INCLXX_HP);
|
||||
|
||||
#include "FTF_BIC.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(FTF_BIC);
|
||||
|
||||
#include "LBE.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(LBE);
|
||||
|
||||
#include "QBBC.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(QBBC);
|
||||
|
||||
#include "QGSP_BERT.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(QGSP_BERT);
|
||||
|
||||
#include "QGSP_BERT_HP.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(QGSP_BERT_HP);
|
||||
|
||||
#include "QGSP_BIC.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(QGSP_BIC);
|
||||
|
||||
#include "QGSP_BIC_HP.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(QGSP_BIC_HP);
|
||||
|
||||
#include "QGSP_FTFP_BERT.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(QGSP_FTFP_BERT);
|
||||
|
||||
#include "QGS_BIC.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(QGS_BIC);
|
||||
|
||||
#include "QGSP_INCLXX.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(QGSP_INCLXX);
|
||||
|
||||
#include "QGSP_INCLXX_HP.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(QGSP_INCLXX_HP);
|
||||
|
||||
#include "Shielding.hh"
|
||||
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
|
||||
// "ShieldingLEND" is Shielding(verbose,"LEND");
|
||||
// "ShieldingM" is Shielding(verbose,"HP","M");
|
||||
|
||||
class ShieldingLEND : public Shielding
|
||||
{
|
||||
public:
|
||||
explicit ShieldingLEND(G4int verbose = 1) : Shielding(verbose,"LEND","") { ; }
|
||||
virtual ~ShieldingLEND() { ; }
|
||||
};
|
||||
G4_DECLARE_PHYSLIST_FACTORY(ShieldingLEND);
|
||||
|
||||
class ShieldingM : public Shielding
|
||||
{
|
||||
public:
|
||||
explicit ShieldingM(G4int verbose = 1) : Shielding(verbose,"HP","M") { ; }
|
||||
virtual ~ShieldingM() { ; }
|
||||
};
|
||||
G4_DECLARE_PHYSLIST_FACTORY(ShieldingM);
|
||||
|
||||
#include "NuBeam.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(NuBeam);
|
||||
|
||||
// for __clang__ this this needs intercoms/include/G4AnyMethod.hh
|
||||
// to not attempt to defined remove_reference templates, but use std C++11
|
||||
#include "G4GenericPhysicsList.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(G4GenericPhysicsList);
|
||||
|
||||
#include "QGSP_BIC_AllHP.hh"
|
||||
G4_DECLARE_PHYSLIST_FACTORY(QGSP_BIC_AllHP);
|
||||
|
||||
//
|
||||
Reference in New Issue
Block a user