Import Geant4 7.0.0 source tree
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
name := FTFP
|
||||
include ../common.gmk
|
||||
@@ -0,0 +1,52 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * 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. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
#ifndef TFTFP_h
|
||||
#define TFTFP_h 1
|
||||
|
||||
#include "G4VModularPhysicsList.hh"
|
||||
#include "globals.hh"
|
||||
#include "CompileTimeConstraints.hh"
|
||||
|
||||
template<class T>
|
||||
class TFTFP: public T
|
||||
{
|
||||
public:
|
||||
TFTFP();
|
||||
virtual ~TFTFP();
|
||||
|
||||
public:
|
||||
// SetCuts()
|
||||
virtual void SetCuts();
|
||||
|
||||
private:
|
||||
enum {ok = CompileTimeConstraints::IsA<T, G4VModularPhysicsList>::ok };
|
||||
};
|
||||
#include "FTFP.icc"
|
||||
typedef TFTFP<G4VModularPhysicsList> FTFP;
|
||||
|
||||
// 2002 by J.P. Wellisch
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * 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. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleWithCuts.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
#include "G4ProcessVector.hh"
|
||||
#include "G4ParticleTypes.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4Material.hh"
|
||||
#include "G4MaterialTable.hh"
|
||||
#include "G4ios.hh"
|
||||
#include <iomanip>
|
||||
|
||||
#include "GeneralPhysics.hh"
|
||||
#include "EMPhysics.hh"
|
||||
#include "MuonPhysics.hh"
|
||||
#include "IonPhysics.hh"
|
||||
#include "G4DataQuestionaire.hh"
|
||||
#include "HadronPhysicsFTFP.hh"
|
||||
|
||||
template<class T> TFTFP<T>::TFTFP(): T()
|
||||
{
|
||||
// default cut value (1.0mm)
|
||||
// defaultCutValue = 1.0*mm;
|
||||
G4DataQuestionaire it(photon);
|
||||
G4cout << "You are using the simulation engine: FTFP 2.8"<<G4endl;
|
||||
G4cout <<G4endl<<G4endl;
|
||||
defaultCutValue = 0.7*mm;
|
||||
SetVerboseLevel(1);
|
||||
|
||||
// General Physics
|
||||
RegisterPhysics( new GeneralPhysics("general") );
|
||||
|
||||
// EM Physics
|
||||
RegisterPhysics( new EMPhysics("standard EM"));
|
||||
|
||||
// Muon Physics
|
||||
RegisterPhysics( new MuonPhysics("muon"));
|
||||
|
||||
// Hadron Physics
|
||||
RegisterPhysics( new HadronPhysicsFTFP("hadron"));
|
||||
|
||||
// Ion Physics
|
||||
RegisterPhysics( new IonPhysics("ion"));
|
||||
|
||||
|
||||
}
|
||||
|
||||
template<class T> TFTFP<T>::~TFTFP()
|
||||
{
|
||||
}
|
||||
|
||||
template<class T> void TFTFP<T>::SetCuts()
|
||||
{
|
||||
if (verboseLevel >1){
|
||||
G4cout << "FTFP::SetCuts:";
|
||||
}
|
||||
// " G4VUserPhysicsList::SetCutsWithDefault" method sets
|
||||
// the default cut value for all particle types
|
||||
|
||||
SetCutsWithDefault();
|
||||
|
||||
G4VUserPhysicsList::DumpCutValuesTable();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 2002 by J.P. Wellisch
|
||||
@@ -0,0 +1,77 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * 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. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
#ifndef HadronPhysicsFTFP_h
|
||||
#define HadronPhysicsFTFP_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
#include "G4HadronQEDBuilder.hh"
|
||||
#include "G4StoppingHadronBuilder.hh"
|
||||
#include "G4MiscLHEPBuilder.hh"
|
||||
|
||||
#include "G4PiKBuilder.hh"
|
||||
#include "G4LEPPiKBuilder.hh"
|
||||
#include "G4FTFPPiKBuilder.hh"
|
||||
|
||||
#include "G4ProtonBuilder.hh"
|
||||
#include "G4LEPProtonBuilder.hh"
|
||||
#include "G4FTFPProtonBuilder.hh"
|
||||
|
||||
#include "G4NeutronBuilder.hh"
|
||||
#include "G4LEPNeutronBuilder.hh"
|
||||
#include "G4FTFPNeutronBuilder.hh"
|
||||
|
||||
class HadronPhysicsFTFP : public G4VPhysicsConstructor
|
||||
{
|
||||
public:
|
||||
HadronPhysicsFTFP(const G4String& name ="hadron");
|
||||
virtual ~HadronPhysicsFTFP();
|
||||
|
||||
public:
|
||||
virtual void ConstructParticle();
|
||||
virtual void ConstructProcess();
|
||||
|
||||
private:
|
||||
G4NeutronBuilder theNeutrons;
|
||||
G4LEPNeutronBuilder theLEPNeutron;
|
||||
G4FTFPNeutronBuilder theFTFPNeutron;
|
||||
|
||||
G4PiKBuilder thePiK;
|
||||
G4LEPPiKBuilder theLEPPiK;
|
||||
G4FTFPPiKBuilder theFTFPPiK;
|
||||
|
||||
G4ProtonBuilder thePro;
|
||||
G4LEPProtonBuilder theLEPPro;
|
||||
G4FTFPProtonBuilder theFTFPPro;
|
||||
|
||||
G4MiscLHEPBuilder theMiscLHEP;
|
||||
G4StoppingHadronBuilder theStoppingHadron;
|
||||
G4HadronQEDBuilder theHadronQED;
|
||||
};
|
||||
|
||||
// 2002 by J.P. Wellisch
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
<! Copyright © 2002 J.P. Wellisch >
|
||||
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
<meta name="GENERATOR" content="Mozilla/4.78C-CERN UNIX lxplus039 45 [en] (X11; U; Linux 2.4.9-31.1.cernsmp i686) [Netscape]">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<center><table BORDER WIDTH="95%" >
|
||||
<tr>
|
||||
<th ALIGN=CENTER></th>
|
||||
|
||||
<td ALIGN=left BGCOLOR="#FFF222">
|
||||
<h1><br><center>
|
||||
The FTFP physics list.
|
||||
</h1>
|
||||
</center><hr>
|
||||
Click
|
||||
<a href="../FTFP.tar">here</a> to down-load the source code of FTFP
|
||||
Version 2.7
|
||||
<br>
|
||||
Click
|
||||
<a href="../Packaging.tar">here</a> to down-load the Packaging re-use library 2.3
|
||||
<hr><br>
|
||||
The FTFP physics list's models and cross-section:
|
||||
<ul>
|
||||
<li>
|
||||
<b>FixME:</b> Some text and links to documentation to be added.
|
||||
<li>
|
||||
Verification plots for these cross-sections and models can be found
|
||||
<a href="index.html">here</a>.
|
||||
<b>FixME:</b> Add verification page.
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border="0" cellspacing="0" cellpadding="0" align="center">
|
||||
<tr><td colspan="2"><hr hright="1"></td></tr>
|
||||
<tr valign="bottom">
|
||||
<td width="100%" class="small">
|
||||
In case of questions, please contact
|
||||
<a href=mailto:Hans-Peter.Wellisch@cern.ch>J.P Wellisch</a>. <BR>
|
||||
</td>
|
||||
<td ALIGN="right" class="small" nowrap>
|
||||
J.P. Wellisch, 2002<BR>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<!--#include file="../snippet.html" -->
|
||||
</body>
|
||||
</html>
|
||||
<! Copyright © 2002 J.P. Wellisch >
|
||||
@@ -0,0 +1,75 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * 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. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
#include "HadronPhysicsFTFP.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include <iomanip>
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4MesonConstructor.hh"
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
|
||||
HadronPhysicsFTFP::HadronPhysicsFTFP(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
{
|
||||
theNeutrons.RegisterMe(&theFTFPNeutron);
|
||||
theNeutrons.RegisterMe(&theLEPNeutron);
|
||||
theLEPNeutron.SetMaxInelasticEnergy(25*GeV);
|
||||
|
||||
thePro.RegisterMe(&theFTFPPro);
|
||||
thePro.RegisterMe(&theLEPPro);
|
||||
theLEPPro.SetMaxEnergy(25*GeV);
|
||||
|
||||
thePiK.RegisterMe(&theFTFPPiK);
|
||||
thePiK.RegisterMe(&theLEPPiK);
|
||||
theLEPPiK.SetMaxEnergy(25*GeV);
|
||||
}
|
||||
|
||||
HadronPhysicsFTFP::~HadronPhysicsFTFP() {}
|
||||
|
||||
void HadronPhysicsFTFP::ConstructParticle()
|
||||
{
|
||||
G4MesonConstructor pMesonConstructor;
|
||||
pMesonConstructor.ConstructParticle();
|
||||
|
||||
G4BaryonConstructor pBaryonConstructor;
|
||||
pBaryonConstructor.ConstructParticle();
|
||||
|
||||
G4ShortLivedConstructor pShortLivedConstructor;
|
||||
pShortLivedConstructor.ConstructParticle();
|
||||
}
|
||||
|
||||
#include "G4ProcessManager.hh"
|
||||
void HadronPhysicsFTFP::ConstructProcess()
|
||||
{
|
||||
theNeutrons.Build();
|
||||
thePro.Build();
|
||||
thePiK.Build();
|
||||
theMiscLHEP.Build();
|
||||
theStoppingHadron.Build();
|
||||
theHadronQED.Build();
|
||||
}
|
||||
// 2002 by J.P. Wellisch
|
||||
Reference in New Issue
Block a user