Import Geant4 7.0.0 source tree
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.7 2004/01/30 00:56:53 tkoi Exp $
|
||||
# $Id: GNUmakefile,v 1.8 2004/11/23 04:02:01 tkoi Exp $
|
||||
# --------------------------------------------------------------
|
||||
# GNUmakefile for examples module
|
||||
# --------------------------------------------------------------
|
||||
@@ -15,7 +15,7 @@ endif
|
||||
all: lib bin
|
||||
|
||||
# A01PhysicsList use hadronic-lists, so it needs below include command.
|
||||
include hadlist.gmk
|
||||
#include hadlist.gmk
|
||||
|
||||
include $(G4INSTALL)/config/binmake.gmk
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: History,v 1.24 2004/05/27 17:44:45 duns Exp $
|
||||
$Id: History,v 1.28 2004/12/13 16:02:49 gcosmo Exp $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -11,6 +11,19 @@ $Id: History,v 1.24 2004/05/27 17:44:45 duns Exp $
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
13th December 2004 Gabriele Cosmo (exampleA01-V06-02-03)
|
||||
- Modified hadlists.gmk to new phys-lists structure.
|
||||
|
||||
3rd December 2004 Gabriele Cosmo (exampleA01-V06-02-02)
|
||||
- Implemented migration to <cmath>.
|
||||
|
||||
23rd November 2004 Mark Donszelmann (exampleA01-V06-02-01)
|
||||
- Removed dependency from user hadronics lists
|
||||
|
||||
14th July 2004 Gabriele Cosmo (exampleA01-V06-02-00)
|
||||
- hadlist.gmk: removed unnecessary kernel libraries list.
|
||||
Fixes problem report #647.
|
||||
|
||||
27th May 2004 Mark Donszelmann (exampleA01-V06-01-01)
|
||||
- Updated Mac file to write separate geometry.
|
||||
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
#
|
||||
|
||||
ifndef G4LISTS_BASE
|
||||
EXTRALIBS += -L$(G4LIB)/.lists_build/$(G4SYSTEM)
|
||||
G4LISTS_BASE = $(G4INSTALL)/hadronic_lists
|
||||
EXTRALIBS += -L$(G4LIB)/plists/$(G4SYSTEM)
|
||||
G4LISTS_BASE = $(G4INSTALL)/physics_lists
|
||||
else
|
||||
EXTRALIBS += -L$(G4LISTS_BASE)/lists/.lists_build/lib/$(G4SYSTEM)
|
||||
EXTRALIBS += -L$(G4LISTS_BASE)/hadronic/plists/lib/$(G4SYSTEM)
|
||||
endif
|
||||
|
||||
# Select your physics lists to link against.
|
||||
@@ -24,53 +24,9 @@ EXTRALIBS += -lQGSP_BERT
|
||||
EXTRALIBS += -lQGSP_BIC
|
||||
EXTRALIBS += -lPackaging
|
||||
|
||||
EXTRALIBS += -lG4hadronic_proc
|
||||
EXTRALIBS += -lG4hadronic_HE
|
||||
EXTRALIBS += -lG4hadronic_LE
|
||||
EXTRALIBS += -lG4hadronic_iso
|
||||
EXTRALIBS += -lG4had_neu_hp
|
||||
EXTRALIBS += -lG4hadronic_coherent_elastic
|
||||
EXTRALIBS += -lG4hadronic_hetcpp_evaporation
|
||||
EXTRALIBS += -lG4hadronic_hetcpp_utils
|
||||
EXTRALIBS += -lG4hadronic_bert_cascade
|
||||
EXTRALIBS += -lG4hadronic_interface_ci
|
||||
EXTRALIBS += -lG4hadronic_body_ci
|
||||
EXTRALIBS += -lG4hadronic_leading_particle
|
||||
EXTRALIBS += -lG4hadronic_stop
|
||||
EXTRALIBS += -lG4hadronic_radioactivedecay
|
||||
|
||||
EXTRALIBS += -lG4had_theo_max
|
||||
EXTRALIBS += -lG4hadronic_qgstring
|
||||
EXTRALIBS += -lG4had_string_diff
|
||||
EXTRALIBS += -lG4had_string_frag
|
||||
EXTRALIBS += -lG4had_string_man
|
||||
|
||||
EXTRALIBS += -lG4hadronic_binary
|
||||
EXTRALIBS += -lG4had_im_r_matrix
|
||||
EXTRALIBS += -lG4had_preequ_exciton
|
||||
EXTRALIBS += -lG4hadronic_deex_evaporation
|
||||
EXTRALIBS += -lG4hadronic_deex_fermi_breakup
|
||||
EXTRALIBS += -lG4hadronic_deex_fission
|
||||
EXTRALIBS += -lG4hadronic_deex_gem_evaporation
|
||||
EXTRALIBS += -lG4hadronic_deex_handler
|
||||
EXTRALIBS += -lG4hadronic_deex_management
|
||||
EXTRALIBS += -lG4hadronic_deex_multifragmentation
|
||||
EXTRALIBS += -lG4hadronic_deex_photon_evaporation
|
||||
EXTRALIBS += -lG4hadronic_deex_util
|
||||
|
||||
EXTRALIBS += -lG4had_mod_man
|
||||
EXTRALIBS += -lG4had_mod_util
|
||||
|
||||
EXTRALIBS += -lG4hadronic_mgt
|
||||
EXTRALIBS += -lG4hadronic_xsect
|
||||
EXTRALIBS += -lG4hadronic_util
|
||||
|
||||
EXTRALIBS += -lG4shortlived
|
||||
|
||||
CPPFLAGS += -I$(G4LISTS_BASE)/lists/Packaging/include
|
||||
CPPFLAGS += -I$(G4LISTS_BASE)/lists/QGSP_BERT/include
|
||||
CPPFLAGS += -I$(G4LISTS_BASE)/lists/QGSP_BIC/include
|
||||
CPPFLAGS += -I$(G4LISTS_BASE)/hadronic/Packaging/include
|
||||
CPPFLAGS += -I$(G4LISTS_BASE)/hadronic/QGSP_BERT/include
|
||||
CPPFLAGS += -I$(G4LISTS_BASE)/hadronic/QGSP_BIC/include
|
||||
|
||||
CXXFLAGS_WITHOUT_O := $(filter-out -O% , $(CXXFLAGS))
|
||||
CXXFLAGS_WITHOUT_O := $(filter-out +O% , $(CXXFLAGS_WITHOUT_O))
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01EMPhysics.hh,v 1.4 2003/10/11 02:59:59 tkoi Exp $
|
||||
// $Id: A01EMPhysics.hh,v 1.5 2004/11/23 04:02:02 tkoi Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
// 09-Oct-2003 Chhange gamma, electron, positorn process T. Koi
|
||||
@@ -51,7 +51,7 @@ class A01EMPhysics : public G4VPhysicsConstructor
|
||||
public:
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each particle type will be instantiated
|
||||
virtual void ConstructParticle();
|
||||
virtual void ConstructParticle(){;};
|
||||
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each physics process will be instantiated and
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01GeneralPhysics.hh,v 1.3 2002/12/13 11:34:28 gunter Exp $
|
||||
// $Id: A01GeneralPhysics.hh,v 1.4 2004/11/23 04:02:02 tkoi Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -32,9 +32,6 @@
|
||||
|
||||
#include "G4VPhysicsConstructor.hh"
|
||||
|
||||
|
||||
#include "G4Decay.hh"
|
||||
|
||||
class A01GeneralPhysics : public G4VPhysicsConstructor
|
||||
{
|
||||
public:
|
||||
@@ -51,8 +48,6 @@ class A01GeneralPhysics : public G4VPhysicsConstructor
|
||||
// registered to the process manager of each particle type
|
||||
virtual void ConstructProcess();
|
||||
|
||||
protected:
|
||||
G4Decay fDecayProcess;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01HadronPhysics.hh,v 1.4 2003/10/11 02:59:59 tkoi Exp $
|
||||
// $Id: A01HadronPhysics.hh,v 1.5 2004/11/23 04:02:02 tkoi Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
// 10-Oct-2003 Full Hadron Processes with Parameterization Model T. Koi
|
||||
@@ -136,7 +136,7 @@ class A01HadronPhysics : public G4VPhysicsConstructor
|
||||
public:
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each particle type will be instantiated
|
||||
virtual void ConstructParticle();
|
||||
virtual void ConstructParticle(){;};
|
||||
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each physics process will be instantiated and
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01IonPhysics.hh,v 1.5 2004/01/06 02:53:22 tkoi Exp $
|
||||
// $Id: A01IonPhysics.hh,v 1.6 2004/11/23 04:02:02 tkoi Exp $
|
||||
// --------------------------------------------------------------
|
||||
// 05-Jan-2004 Add G4ionIonisation T. Koi
|
||||
//
|
||||
@@ -58,7 +58,7 @@ class A01IonPhysics : public G4VPhysicsConstructor
|
||||
public:
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each particle type will be instantiated
|
||||
virtual void ConstructParticle();
|
||||
virtual void ConstructParticle(){;};
|
||||
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each physics process will be instantiated and
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01MuonPhysics.hh,v 1.4 2003/10/11 02:59:59 tkoi Exp $
|
||||
// $Id: A01MuonPhysics.hh,v 1.5 2004/11/23 04:02:02 tkoi Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
// 09-Oct-2003 mu+- tau+- processes are changed by T. Koi
|
||||
@@ -48,7 +48,7 @@ class A01MuonPhysics : public G4VPhysicsConstructor
|
||||
public:
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each particle type will be instantiated
|
||||
virtual void ConstructParticle();
|
||||
virtual void ConstructParticle(){;};
|
||||
|
||||
// This method will be invoked in the Construct() method.
|
||||
// each physics process will be instantiated and
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01DetectorConstruction.cc,v 1.7 2003/10/14 18:15:26 perl Exp $
|
||||
// $Id: A01DetectorConstruction.cc,v 1.8 2004/12/03 15:30:34 gcosmo Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -153,8 +153,8 @@ G4VPhysicalVolume* A01DetectorConstruction::Construct()
|
||||
G4VSolid* secondArmSolid = new G4Box("secondArmBox",2.*m,2.*m,3.5*m);
|
||||
G4LogicalVolume* secondArmLogical
|
||||
= new G4LogicalVolume(secondArmSolid,air,"secondArmLogical",0,0,0);
|
||||
G4double x = -5.*m * sin(armAngle);
|
||||
G4double z = 5.*m * cos(armAngle);
|
||||
G4double x = -5.*m * std::sin(armAngle);
|
||||
G4double z = 5.*m * std::cos(armAngle);
|
||||
secondArmPhys
|
||||
= new G4PVPlacement(armRotation,G4ThreeVector(x,0.,z),secondArmLogical,
|
||||
"secondArmPhys",worldLogical,0,0);
|
||||
@@ -450,8 +450,8 @@ void A01DetectorConstruction::SetArmAngle(G4double val)
|
||||
armAngle = val;
|
||||
*armRotation = G4RotationMatrix(); // make it unit vector
|
||||
armRotation->rotateY(armAngle);
|
||||
G4double x = -5.*m * sin(armAngle);
|
||||
G4double z = 5.*m * cos(armAngle);
|
||||
G4double x = -5.*m * std::sin(armAngle);
|
||||
G4double z = 5.*m * std::cos(armAngle);
|
||||
secondArmPhys->SetTranslation(G4ThreeVector(x,0.,z));
|
||||
|
||||
// tell G4RunManager that we change the geometry
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01EMPhysics.cc,v 1.6 2004/01/06 02:53:22 tkoi Exp $
|
||||
// $Id: A01EMPhysics.cc,v 1.7 2004/11/23 04:02:02 tkoi Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
//
|
||||
@@ -55,22 +55,8 @@ A01EMPhysics::~A01EMPhysics()
|
||||
#include "G4NeutrinoE.hh"
|
||||
#include "G4AntiNeutrinoE.hh"
|
||||
|
||||
void A01EMPhysics::ConstructParticle()
|
||||
{
|
||||
// gamma
|
||||
G4Gamma::GammaDefinition();
|
||||
|
||||
// electron
|
||||
G4Electron::ElectronDefinition();
|
||||
G4Positron::PositronDefinition();
|
||||
G4NeutrinoE::NeutrinoEDefinition();
|
||||
G4AntiNeutrinoE::AntiNeutrinoEDefinition();
|
||||
}
|
||||
|
||||
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
|
||||
void A01EMPhysics::ConstructProcess()
|
||||
{
|
||||
G4ProcessManager * pManager = 0;
|
||||
|
||||
@@ -20,9 +20,10 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01GeneralPhysics.cc,v 1.4 2003/06/16 16:47:02 gunter Exp $
|
||||
// $Id: A01GeneralPhysics.cc,v 1.5 2004/11/23 04:02:02 tkoi Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
// 22-Nov-2004 Construt ALL Particles by T. Koi
|
||||
|
||||
|
||||
#include "A01GeneralPhysics.hh"
|
||||
@@ -40,31 +41,66 @@ A01GeneralPhysics::~A01GeneralPhysics()
|
||||
{
|
||||
}
|
||||
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
// Bosons
|
||||
#include "G4ChargedGeantino.hh"
|
||||
#include "G4Geantino.hh"
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4BosonConstructor.hh"
|
||||
#include "G4IonConstructor.hh"
|
||||
#include "G4LeptonConstructor.hh"
|
||||
#include "G4MesonConstructor.hh"
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
|
||||
void A01GeneralPhysics::ConstructParticle()
|
||||
{
|
||||
// pseudo-particles
|
||||
G4Geantino::GeantinoDefinition();
|
||||
G4ChargedGeantino::ChargedGeantinoDefinition();
|
||||
// In Alphabetical Order
|
||||
|
||||
// Construct all barions
|
||||
G4BaryonConstructor* baryonConstructor = new G4BaryonConstructor();
|
||||
baryonConstructor -> ConstructParticle();
|
||||
delete baryonConstructor;
|
||||
|
||||
// Construct all bosons (including geantinos)
|
||||
G4BosonConstructor* bosonConstructor = new G4BosonConstructor();
|
||||
bosonConstructor -> ConstructParticle();
|
||||
delete bosonConstructor;
|
||||
|
||||
// Construct all ions
|
||||
G4IonConstructor* ionConstructor = new G4IonConstructor();
|
||||
ionConstructor -> ConstructParticle();
|
||||
delete ionConstructor;
|
||||
|
||||
// Construct all leptons
|
||||
G4LeptonConstructor* leptonConstructor = new G4LeptonConstructor();
|
||||
leptonConstructor -> ConstructParticle();
|
||||
delete leptonConstructor;
|
||||
|
||||
// Construct all mesons
|
||||
G4MesonConstructor* mesonConstructor = new G4MesonConstructor();
|
||||
mesonConstructor -> ConstructParticle();
|
||||
delete mesonConstructor;
|
||||
|
||||
// Construct resonaces and quarks
|
||||
G4ShortLivedConstructor* shortLivedConstructor = new G4ShortLivedConstructor();
|
||||
shortLivedConstructor -> ConstructParticle();
|
||||
delete shortLivedConstructor;
|
||||
|
||||
}
|
||||
|
||||
#include "G4Decay.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
void A01GeneralPhysics::ConstructProcess()
|
||||
{
|
||||
// Add Decay Process
|
||||
G4Decay* theDecayProcess = new G4Decay();
|
||||
theParticleIterator->reset();
|
||||
while( (*theParticleIterator)() ){
|
||||
G4ParticleDefinition* particle = theParticleIterator->value();
|
||||
G4ProcessManager* pmanager = particle->GetProcessManager();
|
||||
if (fDecayProcess.IsApplicable(*particle)) {
|
||||
pmanager ->AddProcess(&fDecayProcess);
|
||||
if (theDecayProcess->IsApplicable(*particle)) {
|
||||
pmanager ->AddProcess(theDecayProcess);
|
||||
// set ordering for PostStepDoIt and AtRestDoIt
|
||||
pmanager ->SetProcessOrdering(&fDecayProcess, idxPostStep);
|
||||
pmanager ->SetProcessOrdering(&fDecayProcess, idxAtRest);
|
||||
pmanager ->SetProcessOrdering(theDecayProcess, idxPostStep);
|
||||
pmanager ->SetProcessOrdering(theDecayProcess, idxAtRest);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01HadronPhysics.cc,v 1.6 2003/10/13 02:13:38 tkoi Exp $
|
||||
// $Id: A01HadronPhysics.cc,v 1.7 2004/11/23 04:02:02 tkoi Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
// 09-Oct-2003 Hadron Physics List with Parameterization Model by T. Koi
|
||||
@@ -45,26 +45,6 @@ A01HadronPhysics::~A01HadronPhysics()
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4MesonConstructor.hh"
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
|
||||
void A01HadronPhysics::ConstructParticle()
|
||||
{
|
||||
// Construct all mesons
|
||||
G4MesonConstructor pMesonConstructor;
|
||||
pMesonConstructor.ConstructParticle();
|
||||
|
||||
// Construct all barions
|
||||
G4BaryonConstructor pBaryonConstructor;
|
||||
pBaryonConstructor.ConstructParticle();
|
||||
|
||||
// Construct resonaces and quarks
|
||||
G4ShortLivedConstructor pShortLivedConstructor;
|
||||
pShortLivedConstructor.ConstructParticle();
|
||||
}
|
||||
|
||||
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
void A01HadronPhysics::ConstructProcess()
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01IonPhysics.cc,v 1.7 2004/01/06 02:53:22 tkoi Exp $
|
||||
// $Id: A01IonPhysics.cc,v 1.8 2004/11/23 04:02:03 tkoi Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
// 13-Oct-2003 Add Comment for Ionisation of Generic Ion by T. Koi
|
||||
@@ -46,17 +46,6 @@ A01IonPhysics::~A01IonPhysics()
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
// Nuclei
|
||||
#include "G4IonConstructor.hh"
|
||||
|
||||
void A01IonPhysics::ConstructParticle()
|
||||
{
|
||||
// Construct light ions
|
||||
G4IonConstructor pConstructor;
|
||||
pConstructor.ConstructParticle();
|
||||
}
|
||||
|
||||
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01MagneticField.cc,v 1.4 2003/10/12 14:08:14 asaim Exp $
|
||||
// $Id: A01MagneticField.cc,v 1.5 2004/12/03 15:30:34 gcosmo Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -42,7 +42,7 @@ void A01MagneticField::GetFieldValue(const double Point[3],double *Bfield) const
|
||||
{
|
||||
Bfield[0] = 0.;
|
||||
Bfield[2] = 0.;
|
||||
if(abs(Point[1])<ymax && (sqr(Point[0])+sqr(Point[2]))<rmax_sq)
|
||||
if(std::abs(Point[1])<ymax && (sqr(Point[0])+sqr(Point[2]))<rmax_sq)
|
||||
{ Bfield[1] = By; }
|
||||
else
|
||||
{ Bfield[1] = 0.; }
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01MuonPhysics.cc,v 1.6 2004/01/06 02:53:22 tkoi Exp $
|
||||
// $Id: A01MuonPhysics.cc,v 1.7 2004/11/23 04:02:03 tkoi Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
// 09-Oct-2003 mu+- tau+- processes are changed by T. Koi
|
||||
@@ -49,27 +49,6 @@ A01MuonPhysics::~A01MuonPhysics()
|
||||
#include "G4MuonMinus.hh"
|
||||
#include "G4TauMinus.hh"
|
||||
#include "G4TauPlus.hh"
|
||||
#include "G4NeutrinoTau.hh"
|
||||
#include "G4AntiNeutrinoTau.hh"
|
||||
#include "G4NeutrinoMu.hh"
|
||||
#include "G4AntiNeutrinoMu.hh"
|
||||
|
||||
void A01MuonPhysics::ConstructParticle()
|
||||
{
|
||||
// Mu
|
||||
G4MuonPlus::MuonPlusDefinition();
|
||||
G4MuonMinus::MuonMinusDefinition();
|
||||
G4NeutrinoMu::NeutrinoMuDefinition();
|
||||
G4AntiNeutrinoMu::AntiNeutrinoMuDefinition();
|
||||
|
||||
// Tau
|
||||
G4TauMinus::TauMinusDefinition();
|
||||
G4TauPlus::TauPlusDefinition();
|
||||
G4NeutrinoTau::NeutrinoTauDefinition();
|
||||
G4AntiNeutrinoTau::AntiNeutrinoTauDefinition();
|
||||
|
||||
}
|
||||
|
||||
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
|
||||
@@ -20,11 +20,13 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01PhysicsList.cc,v 1.6 2004/01/30 00:56:55 tkoi Exp $
|
||||
// $Id: A01PhysicsList.cc,v 1.7 2004/11/23 04:02:03 tkoi Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
// 28-Jan-04 Add QGSP_BERT and QGSP_BIC for hadronic lists. T. Koi
|
||||
|
||||
// 22-Nov-04 Comment out QGSP_BERT and QGSP_BIC
|
||||
// Output Notificaiton message
|
||||
// All Particles are created in GeneralPhysics
|
||||
|
||||
#include "A01PhysicsList.hh"
|
||||
|
||||
@@ -47,30 +49,44 @@
|
||||
#include "A01HadronPhysics.hh"
|
||||
#include "A01IonPhysics.hh"
|
||||
|
||||
#include "HadronPhysicsQGSP_BERT.hh"
|
||||
#include "HadronPhysicsQGSP_BIC.hh"
|
||||
//#include "HadronPhysicsQGSP_BERT.hh"
|
||||
//#include "HadronPhysicsQGSP_BIC.hh"
|
||||
|
||||
A01PhysicsList::A01PhysicsList(): G4VModularPhysicsList()
|
||||
{
|
||||
|
||||
G4cout << "You are using the A01PhysicsList" << G4endl;
|
||||
G4cout << "Full set of particles (barions bosons and mesons) will be created and" << G4endl;
|
||||
G4cout << "Standard EM Physics and Low & High Energy parameterized models will be applied." << G4endl;
|
||||
G4cout << "A01PhysicsList is optimized for robustness" << G4endl;
|
||||
G4cout << "and not for any particular usage." << G4endl;
|
||||
G4cout << "For the hadronic physics, educated guesses of physics list are prepared for various use cases." << G4endl;
|
||||
G4cout << "When you will start REAL calculations for your own interest," << G4endl;
|
||||
G4cout << "please consider the usage of hadronic_lists instead of A01PhysicsLists." << G4endl;
|
||||
G4cout << "More information can also be found from the Geant4 HyperNews." << G4endl;
|
||||
G4cout << "http://geant4-hn.slac.stanford.edu:5090/Geant4-HyperNews/index" << G4endl;
|
||||
G4cout << "" << G4endl;
|
||||
|
||||
// default cut value (1.0mm)
|
||||
defaultCutValue = 1.0*mm;
|
||||
SetVerboseLevel(1);
|
||||
|
||||
// General Physics
|
||||
// General Physics ( Create ALL Particle and apply Decay )
|
||||
RegisterPhysics( new A01GeneralPhysics("general") );
|
||||
|
||||
// EM Physics
|
||||
// EM Physics ( Apply related Processes to gamma and e-/+)
|
||||
RegisterPhysics( new A01EMPhysics("standard EM"));
|
||||
|
||||
// Muon Physics
|
||||
// Muon Physics ( Apply related processes to mu and tau
|
||||
RegisterPhysics( new A01MuonPhysics("muon"));
|
||||
|
||||
// Hadron Physics
|
||||
//RegisterPhysics( new A01HadronPhysics("hadron"));
|
||||
RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron"));
|
||||
// Hadron Physics ( Apply related processes to hadrons )
|
||||
RegisterPhysics( new A01HadronPhysics("hadron"));
|
||||
// We do not use hadronic lists since v7.
|
||||
//RegisterPhysics( new HadronPhysicsQGSP_BERT("hadron"));
|
||||
//RegisterPhysics( new HadronPhysicsQGSP_BIC("hadron"));
|
||||
|
||||
// Ion Physics
|
||||
// Ion Physics ( Apply related processes to ions )
|
||||
RegisterPhysics( new A01IonPhysics("ion"));
|
||||
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: A01PrimaryGeneratorAction.cc,v 1.3 2002/12/13 11:34:34 gunter Exp $
|
||||
// $Id: A01PrimaryGeneratorAction.cc,v 1.4 2004/12/03 15:30:34 gcosmo Exp $
|
||||
// --------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -100,11 +100,11 @@ void A01PrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent)
|
||||
|
||||
G4double pp = momentum + (G4UniformRand()-0.5)*sigmaMomentum;
|
||||
G4double mass = particle->GetPDGMass();
|
||||
G4double Ekin = sqrt(pp*pp+mass*mass)-mass;
|
||||
G4double Ekin = std::sqrt(pp*pp+mass*mass)-mass;
|
||||
particleGun->SetParticleEnergy(Ekin);
|
||||
|
||||
G4double angle = (G4UniformRand()-0.5)*sigmaAngle;
|
||||
particleGun->SetParticleMomentumDirection(G4ThreeVector(sin(angle),0.,cos(angle)));
|
||||
particleGun->SetParticleMomentumDirection(G4ThreeVector(std::sin(angle),0.,std::cos(angle)));
|
||||
|
||||
particleGun->GeneratePrimaryVertex(anEvent);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
/gun/particle pi+
|
||||
/mydet/momentum 100. GeV
|
||||
/mydet/fieldValue 200. tesla
|
||||
/vis/viewer/refresh
|
||||
/run/beamOn 5
|
||||
#
|
||||
/gun/particle e+
|
||||
@@ -43,7 +42,6 @@
|
||||
/gun/particle pi+
|
||||
/mydet/momentum 10. GeV
|
||||
/mydet/fieldValue 20. tesla
|
||||
/vis/viewer/refresh
|
||||
/run/beamOn 5
|
||||
#
|
||||
/gun/particle e+
|
||||
@@ -63,7 +61,6 @@
|
||||
/gun/particle pi+
|
||||
/mydet/momentum 1. GeV
|
||||
/mydet/fieldValue 2. tesla
|
||||
/vis/viewer/refresh
|
||||
/run/beamOn 5
|
||||
#
|
||||
/gun/particle e+
|
||||
|
||||
+1327
-812
File diff suppressed because it is too large
Load Diff
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01.cc,v 1.9 2003/12/03 10:33:39 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01AnalysisManager.hh,v 1.6 2003/06/20 14:55:44 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01CalorHit.hh,v 1.3 2003/06/20 14:55:44 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01CalorimeterSD.hh,v 1.3 2003/06/20 14:55:44 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01DetectorConstruction.hh,v 1.3 2003/06/20 14:55:44 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01DetectorMessenger.hh,v 1.3 2003/06/20 14:55:45 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01EventAction.hh,v 1.5 2003/06/20 14:55:45 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01PhysicsList.hh,v 1.3 2003/06/20 14:55:45 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01PrimaryGeneratorAction.hh,v 1.3 2003/06/20 14:55:45 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01PrimaryGeneratorMessenger.hh,v 1.3 2003/06/20 14:55:45 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01RunAction.hh,v 1.5 2003/06/20 14:55:45 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01SteppingAction.hh,v 1.5 2003/06/20 14:55:45 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01SteppingVerbose.hh,v 1.3 2003/06/20 14:55:45 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01VisManager.hh,v 1.3 2003/06/20 14:55:45 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01AnalysisManager.cc,v 1.12 2003/06/20 14:55:45 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
// Guy Barrand 14th Septembre 2000.
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01CalorHit.cc,v 1.5 2003/12/03 10:33:21 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01CalorimeterSD.cc,v 1.4 2003/12/03 10:33:21 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01DetectorConstruction.cc,v 1.4 2003/06/20 14:55:45 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01DetectorMessenger.cc,v 1.4 2002/12/05 00:24:22 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01EventAction.cc,v 1.5 2001/11/16 14:31:12 barrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01PhysicsList.cc,v 1.4 2003/06/20 14:55:45 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01PrimaryGeneratorAction.cc,v 1.4 2003/06/20 14:55:45 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01PrimaryGeneratorMessenger.cc,v 1.4 2002/12/05 00:24:22 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01RunAction.cc,v 1.6 2003/06/20 14:55:45 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01SteppingAction.cc,v 1.6 2003/06/20 14:55:45 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01SteppingVerbose.cc,v 1.6 2003/06/20 14:55:45 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: AnaEx01VisManager.cc,v 1.7 2003/10/17 10:19:57 gbarrand Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
//
|
||||
// John Allison 24th January 1998.
|
||||
|
||||
Reference in New Issue
Block a user