Import Geant4 8.3.0 source tree
This commit is contained in:
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4HadronInelasticQBBC.cc,v 1.1 2006/10/31 11:35:09 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: G4HadronInelasticQBBC.cc,v 1.2 2007/04/16 11:57:40 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -34,6 +34,7 @@
|
||||
//
|
||||
// Modified:
|
||||
// 05.07.2006 V.Ivanchenko fix problem of initialisation of HP
|
||||
// 15.04.2007 V.Ivanchenko include quasi-elastic and change FTF low energy
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -49,6 +50,8 @@
|
||||
#include "G4BaryonConstructor.hh"
|
||||
|
||||
#include "G4PiNuclearCrossSection.hh"
|
||||
#include "G4BGGNucleonInelasticXS.hh"
|
||||
#include "G4BGGPionInelasticXS.hh"
|
||||
|
||||
#include "G4TheoFSGenerator.hh"
|
||||
#include "G4StringChipsParticleLevelInterface.hh"
|
||||
@@ -56,6 +59,9 @@
|
||||
#include "G4QGSMFragmentation.hh"
|
||||
#include "G4LundStringFragmentation.hh"
|
||||
#include "G4ExcitedStringDecay.hh"
|
||||
#include "G4GeneratorPrecompoundInterface.hh"
|
||||
#include "G4PreCompoundModel.hh"
|
||||
#include "G4ExcitationHandler.hh"
|
||||
|
||||
#include "G4BinaryCascade.hh"
|
||||
#include "G4HadronFissionProcess.hh"
|
||||
@@ -80,12 +86,19 @@ G4HadronInelasticQBBC::G4HadronInelasticQBBC(const G4String& name,
|
||||
theHPXSecI = 0;
|
||||
theHPXSecC = 0;
|
||||
theHPXSecF = 0;
|
||||
theCascade = 0;
|
||||
theCHIPSCascade = 0;
|
||||
theQuasiElastic = 0;
|
||||
thePreEquilib = 0;
|
||||
}
|
||||
|
||||
G4HadronInelasticQBBC::~G4HadronInelasticQBBC()
|
||||
{
|
||||
if(wasActivated) {
|
||||
delete theCHIPSCascade;
|
||||
if(theCascade) delete theCascade;
|
||||
if(theCHIPSCascade) delete theCHIPSCascade;
|
||||
if(thePreEquilib) delete thePreEquilib;
|
||||
if(theQuasiElastic) delete theQuasiElastic;
|
||||
delete theQGStringDecay;
|
||||
delete theQGStringModel;
|
||||
delete theFTFStringDecay;
|
||||
@@ -113,8 +126,10 @@ void G4HadronInelasticQBBC::ConstructProcess()
|
||||
if(verbose > 1)
|
||||
G4cout << "### HadronInelasticQBBC Construct Process" << G4endl;
|
||||
|
||||
G4double minEstring = 8*GeV;
|
||||
G4double maxEcascade = 10.*GeV;
|
||||
G4double minEstring = 11.5*GeV;
|
||||
G4double maxEcascade = 4.*GeV;
|
||||
G4double minFtf = 3.5*GeV;
|
||||
G4double maxFtf = 12.*GeV;
|
||||
|
||||
//Bertini
|
||||
G4HadronicInteraction* theBERT = new G4CascadeInterface();
|
||||
@@ -126,26 +141,50 @@ void G4HadronInelasticQBBC::ConstructProcess()
|
||||
theCHIPS->SetMinEnergy(0.0);
|
||||
theCHIPS->SetMaxEnergy(maxEcascade);
|
||||
|
||||
//QGSC
|
||||
//QGS
|
||||
G4TheoFSGenerator* theQGSModel = new G4TheoFSGenerator();
|
||||
theQGStringModel = new G4QGSModel< G4QGSParticipants >;
|
||||
theQGStringDecay = new G4ExcitedStringDecay(new G4QGSMFragmentation());
|
||||
theQGStringModel->SetFragmentationModel(theQGStringDecay);
|
||||
theCHIPSCascade = new G4StringChipsParticleLevelInterface;
|
||||
theQGSModel->SetTransport(theCHIPSCascade);
|
||||
|
||||
//QGSP
|
||||
theCascade = new G4GeneratorPrecompoundInterface;
|
||||
thePreEquilib = new G4PreCompoundModel(new G4ExcitationHandler);
|
||||
theCascade->SetDeExcitation(thePreEquilib);
|
||||
theQGSModel->SetTransport(theCascade);
|
||||
|
||||
//QGSC
|
||||
// theCHIPSCascade = new G4StringChipsParticleLevelInterface;
|
||||
// theQGSModel->SetTransport(theCHIPSCascade);
|
||||
|
||||
//QGS
|
||||
theQuasiElastic = new G4QuasiElasticChannel;
|
||||
theQGSModel->SetQuasiElasticChannel(theQuasiElastic);
|
||||
theQGSModel->SetHighEnergyGenerator(theQGStringModel);
|
||||
theQGSModel->SetMinEnergy(minEstring);
|
||||
theQGSModel->SetMaxEnergy(100*TeV);
|
||||
|
||||
//FTFC
|
||||
//FTF
|
||||
G4TheoFSGenerator* theFTFModel = new G4TheoFSGenerator();
|
||||
theFTFStringModel = new G4FTFModel();
|
||||
theFTFStringDecay = new G4ExcitedStringDecay(new G4LundStringFragmentation());
|
||||
theFTFStringModel->SetFragmentationModel(theFTFStringDecay);
|
||||
theFTFModel->SetTransport(theCHIPSCascade);
|
||||
// theFTFModel->SetTransport(theCHIPSCascade);
|
||||
theFTFModel->SetTransport(theCascade);
|
||||
theFTFModel->SetHighEnergyGenerator(theFTFStringModel);
|
||||
theFTFModel->SetMinEnergy(minEstring);
|
||||
theFTFModel->SetMaxEnergy(100*TeV);
|
||||
theFTFModel->SetMinEnergy(minFtf);
|
||||
if(ftfFlag) theFTFModel->SetMaxEnergy(100*TeV);
|
||||
else theFTFModel->SetMaxEnergy(maxFtf);
|
||||
|
||||
G4TheoFSGenerator* theFTFModel1 = new G4TheoFSGenerator();
|
||||
theFTFModel1->SetTransport(theCascade);
|
||||
theFTFModel1->SetHighEnergyGenerator(theFTFStringModel);
|
||||
theFTFModel1->SetMinEnergy(minFtf);
|
||||
theFTFModel1->SetMaxEnergy(100*TeV);
|
||||
|
||||
theFTFModel->SetQuasiElasticChannel(theQuasiElastic);
|
||||
theFTFModel1->SetQuasiElasticChannel(theQuasiElastic);
|
||||
|
||||
|
||||
theParticleIterator->reset();
|
||||
while( (*theParticleIterator)() ) {
|
||||
@@ -183,7 +222,10 @@ void G4HadronInelasticQBBC::ConstructProcess()
|
||||
if(pname == "proton") {
|
||||
hp->AddDataSet(&theXSecP);
|
||||
if(ftfFlag) Register(particle,hp,theFTFModel,"FTF");
|
||||
else Register(particle,hp,theQGSModel,"QGS");
|
||||
else {
|
||||
Register(particle,hp,theQGSModel,"QGS");
|
||||
Register(particle,hp,theFTFModel,"FTF");
|
||||
}
|
||||
|
||||
if(bertFlag) Register(particle,hp,theBERT,"Bertini");
|
||||
else if(chipsFlag) Register(particle,hp,theCHIPS,"CHIPS");
|
||||
@@ -194,12 +236,15 @@ void G4HadronInelasticQBBC::ConstructProcess()
|
||||
Register(particle,hp,theBIC,"Binary");
|
||||
}
|
||||
if(glFlag)
|
||||
hp->AddDataSet(new G4UInelasticCrossSection(particle));
|
||||
hp->AddDataSet(new G4BGGNucleonInelasticXS(particle));
|
||||
|
||||
} else if(pname == "neutron") {
|
||||
hp->AddDataSet(&theXSecN);
|
||||
if(ftfFlag) Register(particle,hp,theFTFModel,"FTF");
|
||||
else Register(particle,hp,theQGSModel,"QGS");
|
||||
else {
|
||||
Register(particle,hp,theQGSModel,"QGS");
|
||||
Register(particle,hp,theFTFModel,"FTF");
|
||||
}
|
||||
|
||||
G4HadronCaptureProcess* theNeutronCapture =
|
||||
new G4HadronCaptureProcess("nCapture");
|
||||
@@ -241,7 +286,7 @@ void G4HadronInelasticQBBC::ConstructProcess()
|
||||
theB->SetMaxEnergy(maxEcascade);
|
||||
Register(particle,hp,theB,s);
|
||||
if(glFlag)
|
||||
hp->AddDataSet(new G4UInelasticCrossSection(particle));
|
||||
hp->AddDataSet(new G4BGGNucleonInelasticXS(particle));
|
||||
|
||||
G4HadronicInteraction* theC = new G4LCapture();
|
||||
theC->SetMinEnergy(emin);
|
||||
@@ -254,22 +299,30 @@ void G4HadronInelasticQBBC::ConstructProcess()
|
||||
} else if(pname == "pi-" || pname == "pi+") {
|
||||
hp->AddDataSet(&thePiCross);
|
||||
if(ftfFlag) Register(particle,hp,theFTFModel,"FTF");
|
||||
else Register(particle,hp,theQGSModel,"QGS");
|
||||
else {
|
||||
Register(particle,hp,theQGSModel,"QGS");
|
||||
Register(particle,hp,theFTFModel,"FTF");
|
||||
}
|
||||
|
||||
if(chipsFlag) Register(particle,hp,theCHIPS,"CHIPS");
|
||||
else Register(particle,hp,theBERT,"Bertini");
|
||||
else Register(particle,hp,theBERT,"Bertini");
|
||||
|
||||
if(glFlag)
|
||||
hp->AddDataSet(new G4UInelasticCrossSection(particle));
|
||||
hp->AddDataSet(new G4BGGPionInelasticXS(particle));
|
||||
|
||||
} else if(pname == "kaon-" ||
|
||||
pname == "kaon+" ||
|
||||
pname == "kaon0S" ||
|
||||
pname == "kaon0L") {
|
||||
if(ftfFlag) Register(particle,hp,theFTFModel,"FTF");
|
||||
else Register(particle,hp,theQGSModel,"QGS");
|
||||
else {
|
||||
Register(particle,hp,theQGSModel,"QGS");
|
||||
Register(particle,hp,theFTFModel,"FTF");
|
||||
}
|
||||
|
||||
if(chipsFlag) Register(particle,hp,theCHIPS,"CHIPS");
|
||||
else Register(particle,hp,theBERT,"Bertini");
|
||||
else Register(particle,hp,theBERT,"Bertini");
|
||||
|
||||
if(glFlag)
|
||||
hp->AddDataSet(new G4UInelasticCrossSection(particle));
|
||||
|
||||
@@ -278,7 +331,7 @@ void G4HadronInelasticQBBC::ConstructProcess()
|
||||
pname == "sigma+" ||
|
||||
pname == "xi-" ||
|
||||
pname == "xi0") {
|
||||
Register(particle,hp,theFTFModel,"FTF");
|
||||
Register(particle,hp,theFTFModel1,"FTF");
|
||||
|
||||
if(chipsFlag) Register(particle,hp,theCHIPS,"CHIPS");
|
||||
else Register(particle,hp,theBERT,"Bertini");
|
||||
@@ -286,13 +339,13 @@ void G4HadronInelasticQBBC::ConstructProcess()
|
||||
hp->AddDataSet(new G4UInelasticCrossSection(particle));
|
||||
|
||||
} else if(pname == "anti_proton" || pname == "anti_neutron") {
|
||||
Register(particle,hp,theFTFModel,"FTF");
|
||||
Register(particle,hp,theFTFModel1,"FTF");
|
||||
Register(particle,hp,theCHIPS,"CHIPS");
|
||||
if(glFlag)
|
||||
hp->AddDataSet(new G4UInelasticCrossSection(particle));
|
||||
|
||||
} else {
|
||||
Register(particle,hp,theFTFModel,"FTF");
|
||||
Register(particle,hp,theFTFModel1,"FTF");
|
||||
Register(particle,hp,theCHIPS,"CHIPS");
|
||||
if(glFlag)
|
||||
hp->AddDataSet(new G4UInelasticCrossSection(particle));
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSC.cc,v 1.1 2006/10/31 11:35:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSC.cc,v 1.2 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -35,6 +35,7 @@
|
||||
// Modified:
|
||||
// 21.11.2005 G.Folger: don't keep processes as data members, but new these
|
||||
// 08.06.2006 V.Ivanchenko: remove stopping
|
||||
// 25.04.2007 G.Folger: Add code for quasielastic
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -50,24 +51,24 @@
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
|
||||
HadronPhysicsQGSC::HadronPhysicsQGSC(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
HadronPhysicsQGSC::HadronPhysicsQGSC(const G4String& name, G4bool quasiElastic)
|
||||
: G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
|
||||
{}
|
||||
|
||||
void HadronPhysicsQGSC::CreateModels()
|
||||
{
|
||||
theNeutrons=new G4NeutronBuilder;
|
||||
theNeutrons->RegisterMe(theQGSCNeutron=new G4QGSCNeutronBuilder);
|
||||
theNeutrons->RegisterMe(theQGSCNeutron=new G4QGSCNeutronBuilder(QuasiElastic));
|
||||
theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
|
||||
theLEPNeutron->SetMaxInelasticEnergy(25*GeV);
|
||||
|
||||
thePro=new G4ProtonBuilder;
|
||||
thePro->RegisterMe(theQGSCPro=new G4QGSCProtonBuilder);
|
||||
thePro->RegisterMe(theQGSCPro=new G4QGSCProtonBuilder(QuasiElastic));
|
||||
thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
|
||||
theLEPPro->SetMaxEnergy(25*GeV);
|
||||
|
||||
thePiK=new G4PiKBuilder;
|
||||
thePiK->RegisterMe(theQGSCPiK=new G4QGSCPiKBuilder);
|
||||
thePiK->RegisterMe(theQGSCPiK=new G4QGSCPiKBuilder(QuasiElastic));
|
||||
thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
|
||||
theLEPPiK->SetMaxEnergy(25*GeV);
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSC_EFLOW.cc,v 1.1 2006/12/05 17:03:32 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSC_EFLOW.cc,v 1.2 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -34,6 +34,7 @@
|
||||
//
|
||||
// Created from HadronPhysicsQGSC
|
||||
// Modified:
|
||||
// 25.04.2007 G.Folger: Add code for quasielastic
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -49,24 +50,24 @@
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
|
||||
HadronPhysicsQGSC_EFLOW::HadronPhysicsQGSC_EFLOW(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
HadronPhysicsQGSC_EFLOW::HadronPhysicsQGSC_EFLOW(const G4String& name, G4bool quasiElastic)
|
||||
: G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
|
||||
{}
|
||||
|
||||
void HadronPhysicsQGSC_EFLOW::CreateModels()
|
||||
{
|
||||
theNeutrons=new G4NeutronBuilder;
|
||||
theNeutrons->RegisterMe(theQGSCEflowNeutron=new G4QGSCEflowNeutronBuilder);
|
||||
theNeutrons->RegisterMe(theQGSCEflowNeutron=new G4QGSCEflowNeutronBuilder(QuasiElastic));
|
||||
theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
|
||||
theLEPNeutron->SetMaxInelasticEnergy(25*GeV);
|
||||
|
||||
thePro=new G4ProtonBuilder;
|
||||
thePro->RegisterMe(theQGSCEflowPro=new G4QGSCEflowProtonBuilder);
|
||||
thePro->RegisterMe(theQGSCEflowPro=new G4QGSCEflowProtonBuilder(QuasiElastic));
|
||||
thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
|
||||
theLEPPro->SetMaxEnergy(25*GeV);
|
||||
|
||||
thePiK=new G4PiKBuilder;
|
||||
thePiK->RegisterMe(theQGSCEflowPiK=new G4QGSCEflowPiKBuilder);
|
||||
thePiK->RegisterMe(theQGSCEflowPiK=new G4QGSCEflowPiKBuilder(QuasiElastic));
|
||||
thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
|
||||
theLEPPiK->SetMaxEnergy(25*GeV);
|
||||
|
||||
|
||||
@@ -1,108 +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: HadronPhysicsQGSC_EMV.cc,v 1.1 2006/11/24 15:49:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: HadronPhysicsQGSC_EMV
|
||||
//
|
||||
// Author: 2006 G.Folger
|
||||
//
|
||||
// Created as copy of HadronPhysicsQGSC
|
||||
// Modified:
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
#include "HadronPhysicsQGSC_EMV.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include <iomanip>
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4MesonConstructor.hh"
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
|
||||
HadronPhysicsQGSC_EMV::HadronPhysicsQGSC_EMV(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
{}
|
||||
|
||||
void HadronPhysicsQGSC_EMV::CreateModels()
|
||||
{
|
||||
theNeutrons=new G4NeutronBuilder;
|
||||
theNeutrons->RegisterMe(theQGSCNeutron=new G4QGSCNeutronBuilder);
|
||||
theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
|
||||
theLEPNeutron->SetMaxInelasticEnergy(25*GeV);
|
||||
|
||||
thePro=new G4ProtonBuilder;
|
||||
thePro->RegisterMe(theQGSCPro=new G4QGSCProtonBuilder);
|
||||
thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
|
||||
theLEPPro->SetMaxEnergy(25*GeV);
|
||||
|
||||
thePiK=new G4PiKBuilder;
|
||||
thePiK->RegisterMe(theQGSCPiK=new G4QGSCPiKBuilder);
|
||||
thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
|
||||
theLEPPiK->SetMaxEnergy(25*GeV);
|
||||
|
||||
theMiscLHEP=new G4MiscLHEPBuilder;
|
||||
}
|
||||
|
||||
HadronPhysicsQGSC_EMV::~HadronPhysicsQGSC_EMV()
|
||||
{
|
||||
delete theMiscLHEP;
|
||||
delete theQGSCPro;
|
||||
delete theLEPPro;
|
||||
delete thePro;
|
||||
delete theQGSCPiK;
|
||||
delete theLEPPiK;
|
||||
delete thePiK;
|
||||
}
|
||||
|
||||
void HadronPhysicsQGSC_EMV::ConstructParticle()
|
||||
{
|
||||
G4MesonConstructor pMesonConstructor;
|
||||
pMesonConstructor.ConstructParticle();
|
||||
|
||||
G4BaryonConstructor pBaryonConstructor;
|
||||
pBaryonConstructor.ConstructParticle();
|
||||
|
||||
G4ShortLivedConstructor pShortLivedConstructor;
|
||||
pShortLivedConstructor.ConstructParticle();
|
||||
}
|
||||
|
||||
#include "G4ProcessManager.hh"
|
||||
void HadronPhysicsQGSC_EMV::ConstructProcess()
|
||||
{
|
||||
CreateModels();
|
||||
theNeutrons->Build();
|
||||
thePro->Build();
|
||||
thePiK->Build();
|
||||
theMiscLHEP->Build();
|
||||
}
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: HadronPhysicsQGSP.cc,v 1.1 2006/10/31 11:35:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSP.cc,v 1.3 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -36,6 +36,7 @@
|
||||
// Modified:
|
||||
// 21.11.2005 G.Folger: migration to non static particles
|
||||
// 08.06.2006 V.Ivanchenko: remove stopping
|
||||
// 30.03.2007 G.Folger: Add code for quasielastic
|
||||
//
|
||||
|
||||
#include "HadronPhysicsQGSP.hh"
|
||||
@@ -50,24 +51,27 @@
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
|
||||
HadronPhysicsQGSP::HadronPhysicsQGSP(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
HadronPhysicsQGSP::HadronPhysicsQGSP(const G4String& name, G4bool quasiElastic)
|
||||
: G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
|
||||
{}
|
||||
|
||||
void HadronPhysicsQGSP::CreateModels()
|
||||
{
|
||||
theNeutrons=new G4NeutronBuilder;
|
||||
theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder);
|
||||
theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic);
|
||||
theNeutrons->RegisterMe(theQGSPNeutron);
|
||||
theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
|
||||
theLEPNeutron->SetMaxInelasticEnergy(25*GeV);
|
||||
|
||||
thePro=new G4ProtonBuilder;
|
||||
thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder);
|
||||
theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic);
|
||||
thePro->RegisterMe(theQGSPPro);
|
||||
thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
|
||||
theLEPPro->SetMaxEnergy(25*GeV);
|
||||
|
||||
thePiK=new G4PiKBuilder;
|
||||
thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder);
|
||||
theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic);
|
||||
thePiK->RegisterMe(theQGSPPiK);
|
||||
thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
|
||||
theLEPPiK->SetMaxEnergy(25*GeV);
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSP_BERT.cc,v 1.1 2006/10/31 11:35:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSP_BERT.cc,v 1.2 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -36,6 +36,7 @@
|
||||
// 23.11.2005 G.Folger: migration to non static particles
|
||||
// 08.06.2006 V.Ivanchenko: remove stopping
|
||||
// 20.06.2006 G.Folger: Bertini applies to Kaons, i.e. use SetMinEnergy instead of SetMinPionEnergy
|
||||
// 25.04.2007 G.Folger: Add code for quasielastic
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -51,14 +52,14 @@
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
|
||||
HadronPhysicsQGSP_BERT::HadronPhysicsQGSP_BERT(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
HadronPhysicsQGSP_BERT::HadronPhysicsQGSP_BERT(const G4String& name, G4bool quasiElastic)
|
||||
: G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
|
||||
{}
|
||||
|
||||
void HadronPhysicsQGSP_BERT::CreateModels()
|
||||
{
|
||||
theNeutrons=new G4NeutronBuilder;
|
||||
theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder);
|
||||
theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic));
|
||||
theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
|
||||
theLEPNeutron->SetMinInelasticEnergy(9.5*GeV);
|
||||
theLEPNeutron->SetMaxInelasticEnergy(25*GeV);
|
||||
@@ -68,7 +69,7 @@ void HadronPhysicsQGSP_BERT::CreateModels()
|
||||
theBertiniNeutron->SetMaxEnergy(9.9*GeV);
|
||||
|
||||
thePro=new G4ProtonBuilder;
|
||||
thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder);
|
||||
thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic));
|
||||
thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
|
||||
theLEPPro->SetMinEnergy(9.5*GeV);
|
||||
theLEPPro->SetMaxEnergy(25*GeV);
|
||||
@@ -77,7 +78,7 @@ void HadronPhysicsQGSP_BERT::CreateModels()
|
||||
theBertiniPro->SetMaxEnergy(9.9*GeV);
|
||||
|
||||
thePiK=new G4PiKBuilder;
|
||||
thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder);
|
||||
thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic));
|
||||
thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
|
||||
theLEPPiK->SetMaxEnergy(25*GeV);
|
||||
theLEPPiK->SetMinEnergy(9.5*GeV);
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSP_BERT_HP.cc,v 1.1 2006/10/31 11:35:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSP_BERT_HP.cc,v 1.2 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -36,6 +36,7 @@
|
||||
// 15.12.2005 G.Folger: migration to non static particles
|
||||
// 08.06.2006 V.Ivanchenko: remove stopping
|
||||
// 20.06.2006 G.Folger: Bertini applies to Kaons, i.e. use SetMinEnergy instead of SetMinPionEnergy
|
||||
// 25.04.2007 G.Folger: Add code for quasielastic
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -51,14 +52,14 @@
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
|
||||
HadronPhysicsQGSP_BERT_HP::HadronPhysicsQGSP_BERT_HP(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
HadronPhysicsQGSP_BERT_HP::HadronPhysicsQGSP_BERT_HP(const G4String& name, G4bool quasiElastic)
|
||||
: G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
|
||||
{}
|
||||
|
||||
void HadronPhysicsQGSP_BERT_HP::CreateModels()
|
||||
{
|
||||
theNeutrons=new G4NeutronBuilder;
|
||||
theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder);
|
||||
theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic));
|
||||
theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
|
||||
theLEPNeutron->SetMinEnergy(19.9*MeV);
|
||||
theLEPNeutron->SetMinInelasticEnergy(9.5*GeV);
|
||||
@@ -71,7 +72,7 @@ void HadronPhysicsQGSP_BERT_HP::CreateModels()
|
||||
theNeutrons->RegisterMe(theHPNeutron=new G4NeutronHPBuilder);
|
||||
|
||||
thePro=new G4ProtonBuilder;
|
||||
thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder);
|
||||
thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic));
|
||||
thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
|
||||
theLEPPro->SetMinEnergy(9.5*GeV);
|
||||
theLEPPro->SetMaxEnergy(25*GeV);
|
||||
@@ -80,7 +81,7 @@ void HadronPhysicsQGSP_BERT_HP::CreateModels()
|
||||
theBertiniPro->SetMaxEnergy(9.9*GeV);
|
||||
|
||||
thePiK=new G4PiKBuilder;
|
||||
thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder);
|
||||
thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic));
|
||||
thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
|
||||
theLEPPiK->SetMaxEnergy(25*GeV);
|
||||
theLEPPiK->SetMinEnergy(9.5*GeV);
|
||||
|
||||
+35
-19
@@ -23,22 +23,21 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: HadronPhysicsQGSP_EMV.cc,v 1.1 2006/10/31 11:35:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSP_BERT_TRV.cc,v 1.1 2007/05/07 14:34:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: HadronPhysicsQGSP_EMV
|
||||
// ClassName: HadronPhysicsQGSP_BERT_TRV
|
||||
//
|
||||
// Author: 2002 J.P. Wellisch
|
||||
// Author: 2007 G.Folger
|
||||
// Created from HadronPhysicsQGSP_BERT
|
||||
//
|
||||
// Modified:
|
||||
// 21.11.2005 G.Folger: migration to non static particles
|
||||
// 08.06.2006 V.Ivanchenko: remove stopping
|
||||
//
|
||||
|
||||
#include "HadronPhysicsQGSP_EMV.hh"
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
#include "HadronPhysicsQGSP_BERT_TRV.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
@@ -50,43 +49,60 @@
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
|
||||
HadronPhysicsQGSP_EMV::HadronPhysicsQGSP_EMV(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
HadronPhysicsQGSP_BERT_TRV::HadronPhysicsQGSP_BERT_TRV(const G4String& name, G4bool quasiElastic)
|
||||
: G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
|
||||
{}
|
||||
|
||||
void HadronPhysicsQGSP_EMV::CreateModels()
|
||||
void HadronPhysicsQGSP_BERT_TRV::CreateModels()
|
||||
{
|
||||
theNeutrons=new G4NeutronBuilder;
|
||||
theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder);
|
||||
theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic));
|
||||
theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
|
||||
theLEPNeutron->SetMinInelasticEnergy(5.0*GeV);
|
||||
theLEPNeutron->SetMaxInelasticEnergy(25*GeV);
|
||||
|
||||
theNeutrons->RegisterMe(theBertiniNeutron=new G4BertiniNeutronBuilder);
|
||||
theBertiniNeutron->SetMinEnergy(0.0*GeV);
|
||||
theBertiniNeutron->SetMaxEnergy(5.4*GeV);
|
||||
|
||||
thePro=new G4ProtonBuilder;
|
||||
thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder);
|
||||
thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic));
|
||||
thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
|
||||
theLEPPro->SetMinEnergy(5.0*GeV);
|
||||
theLEPPro->SetMaxEnergy(25*GeV);
|
||||
|
||||
thePro->RegisterMe(theBertiniPro=new G4BertiniProtonBuilder);
|
||||
theBertiniPro->SetMaxEnergy(5.4*GeV);
|
||||
|
||||
thePiK=new G4PiKBuilder;
|
||||
thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder);
|
||||
thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic));
|
||||
thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
|
||||
theLEPPiK->SetMaxEnergy(25*GeV);
|
||||
theLEPPiK->SetMinEnergy(5.0*GeV);
|
||||
|
||||
thePiK->RegisterMe(theBertiniPiK=new G4BertiniPiKBuilder);
|
||||
theBertiniPiK->SetMaxEnergy(5.4*GeV);
|
||||
|
||||
theMiscLHEP=new G4MiscLHEPBuilder;
|
||||
}
|
||||
|
||||
HadronPhysicsQGSP_EMV::~HadronPhysicsQGSP_EMV()
|
||||
HadronPhysicsQGSP_BERT_TRV::~HadronPhysicsQGSP_BERT_TRV()
|
||||
{
|
||||
delete theMiscLHEP;
|
||||
delete theQGSPNeutron;
|
||||
delete theLEPNeutron;
|
||||
delete theBertiniNeutron;
|
||||
delete theQGSPPro;
|
||||
delete theLEPPro;
|
||||
delete thePro;
|
||||
delete theBertiniPro;
|
||||
delete theQGSPPiK;
|
||||
delete theLEPPiK;
|
||||
delete theBertiniPiK;
|
||||
delete thePiK;
|
||||
}
|
||||
|
||||
|
||||
void HadronPhysicsQGSP_EMV::ConstructParticle()
|
||||
void HadronPhysicsQGSP_BERT_TRV::ConstructParticle()
|
||||
{
|
||||
G4MesonConstructor pMesonConstructor;
|
||||
pMesonConstructor.ConstructParticle();
|
||||
@@ -99,7 +115,7 @@ void HadronPhysicsQGSP_EMV::ConstructParticle()
|
||||
}
|
||||
|
||||
#include "G4ProcessManager.hh"
|
||||
void HadronPhysicsQGSP_EMV::ConstructProcess()
|
||||
void HadronPhysicsQGSP_BERT_TRV::ConstructProcess()
|
||||
{
|
||||
CreateModels();
|
||||
theNeutrons->Build();
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSP_BIC.cc,v 1.1 2006/10/31 11:35:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSP_BIC.cc,v 1.2 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -35,6 +35,7 @@
|
||||
// Modified:
|
||||
// 23.11.2005 G.Folger: migration to non static particles
|
||||
// 08.06.2006 V.Ivanchenko: remove stopping
|
||||
// 25.04.2007 G.Folger: Add code for quasielastic
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -50,15 +51,15 @@
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
|
||||
HadronPhysicsQGSP_BIC::HadronPhysicsQGSP_BIC(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
HadronPhysicsQGSP_BIC::HadronPhysicsQGSP_BIC(const G4String& name, G4bool quasiElastic)
|
||||
: G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
|
||||
{}
|
||||
|
||||
void HadronPhysicsQGSP_BIC::CreateModels()
|
||||
{
|
||||
theNeutrons=new G4NeutronBuilder;
|
||||
|
||||
theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder);
|
||||
theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic));
|
||||
theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
|
||||
theLEPNeutron->SetMinInelasticEnergy(9.5*GeV);
|
||||
theLEPNeutron->SetMaxInelasticEnergy(25*GeV);
|
||||
@@ -67,7 +68,7 @@ void HadronPhysicsQGSP_BIC::CreateModels()
|
||||
theBinaryNeutron->SetMaxEnergy(9.9*GeV);
|
||||
|
||||
thePro=new G4ProtonBuilder;
|
||||
thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder);
|
||||
thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic));
|
||||
thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
|
||||
theLEPPro->SetMinEnergy(9.5*GeV);
|
||||
theLEPPro->SetMaxEnergy(25*GeV);
|
||||
@@ -76,7 +77,7 @@ void HadronPhysicsQGSP_BIC::CreateModels()
|
||||
theBinaryPro->SetMaxEnergy(9.9*GeV);
|
||||
|
||||
thePiK=new G4PiKBuilder;
|
||||
thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder);
|
||||
thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic));
|
||||
thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
|
||||
theLEPPiK->SetMaxEnergy(25*GeV);
|
||||
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSP_BIC_HP.cc,v 1.2 2006/11/24 16:33:23 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSP_BIC_HP.cc,v 1.3 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -35,6 +35,7 @@
|
||||
// Based on HadronPhysicsQGSP_BIC
|
||||
//
|
||||
// Modified:
|
||||
// 25.04.2007 G.Folger: Add code for quasielastic
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -50,15 +51,15 @@
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
|
||||
HadronPhysicsQGSP_BIC_HP::HadronPhysicsQGSP_BIC_HP(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
HadronPhysicsQGSP_BIC_HP::HadronPhysicsQGSP_BIC_HP(const G4String& name, G4bool quasiElastic)
|
||||
: G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
|
||||
{}
|
||||
|
||||
void HadronPhysicsQGSP_BIC_HP::CreateModels()
|
||||
{
|
||||
theNeutrons=new G4NeutronBuilder;
|
||||
|
||||
theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder);
|
||||
theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic));
|
||||
theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
|
||||
theLEPNeutron->SetMinEnergy(19.9*MeV);
|
||||
theLEPNeutron->SetMinInelasticEnergy(9.5*GeV);
|
||||
@@ -71,7 +72,7 @@ void HadronPhysicsQGSP_BIC_HP::CreateModels()
|
||||
theNeutrons->RegisterMe(theHPNeutron=new G4NeutronHPBuilder);
|
||||
|
||||
thePro=new G4ProtonBuilder;
|
||||
thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder);
|
||||
thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic));
|
||||
thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
|
||||
theLEPPro->SetMinEnergy(9.5*GeV);
|
||||
theLEPPro->SetMaxEnergy(25*GeV);
|
||||
@@ -80,7 +81,7 @@ void HadronPhysicsQGSP_BIC_HP::CreateModels()
|
||||
theBinaryPro->SetMaxEnergy(9.9*GeV);
|
||||
|
||||
thePiK=new G4PiKBuilder;
|
||||
thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder);
|
||||
thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic));
|
||||
thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
|
||||
theLEPPiK->SetMaxEnergy(25*GeV);
|
||||
|
||||
|
||||
@@ -1,109 +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: HadronPhysicsQGSP_EMX.cc,v 1.1 2006/10/31 11:35:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: HadronPhysicsQGSP_EMX
|
||||
//
|
||||
// Author: 2002 J.P. Wellisch
|
||||
//
|
||||
// Modified:
|
||||
// 21.06.2006 V.Ivanchenko: copied from HadronPhysiosQGSP_EMX
|
||||
//
|
||||
|
||||
#include "HadronPhysicsQGSP_EMX.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
#include <iomanip>
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4MesonConstructor.hh"
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
|
||||
HadronPhysicsQGSP_EMX::HadronPhysicsQGSP_EMX(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
{}
|
||||
|
||||
void HadronPhysicsQGSP_EMX::CreateModels()
|
||||
{
|
||||
theNeutrons=new G4NeutronBuilder;
|
||||
theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder);
|
||||
theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
|
||||
theLEPNeutron->SetMaxInelasticEnergy(25*GeV);
|
||||
|
||||
thePro=new G4ProtonBuilder;
|
||||
thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder);
|
||||
thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
|
||||
theLEPPro->SetMaxEnergy(25*GeV);
|
||||
|
||||
thePiK=new G4PiKBuilder;
|
||||
thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder);
|
||||
thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
|
||||
theLEPPiK->SetMaxEnergy(25*GeV);
|
||||
|
||||
theMiscLHEP=new G4MiscLHEPBuilder;
|
||||
}
|
||||
|
||||
HadronPhysicsQGSP_EMX::~HadronPhysicsQGSP_EMX()
|
||||
{
|
||||
delete theMiscLHEP;
|
||||
delete theQGSPPro;
|
||||
delete theLEPPro;
|
||||
delete thePro;
|
||||
delete theQGSPPiK;
|
||||
delete theLEPPiK;
|
||||
delete thePiK;
|
||||
}
|
||||
|
||||
|
||||
void HadronPhysicsQGSP_EMX::ConstructParticle()
|
||||
{
|
||||
G4MesonConstructor pMesonConstructor;
|
||||
pMesonConstructor.ConstructParticle();
|
||||
|
||||
G4BaryonConstructor pBaryonConstructor;
|
||||
pBaryonConstructor.ConstructParticle();
|
||||
|
||||
G4ShortLivedConstructor pShortLivedConstructor;
|
||||
pShortLivedConstructor.ConstructParticle();
|
||||
}
|
||||
|
||||
#include "G4ProcessManager.hh"
|
||||
void HadronPhysicsQGSP_EMX::ConstructProcess()
|
||||
{
|
||||
CreateModels();
|
||||
theNeutrons->Build();
|
||||
thePro->Build();
|
||||
thePiK->Build();
|
||||
theMiscLHEP->Build();
|
||||
}
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: HadronPhysicsQGSP_HP.cc,v 1.1 2006/10/31 11:35:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// $Id: HadronPhysicsQGSP_HP.cc,v 1.2 2007/04/26 14:47:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -35,6 +35,7 @@
|
||||
// Modified:
|
||||
// 23.11.2005 G.Folger: migration to non static particles
|
||||
// 08.06.2006 V.Ivanchenko: remove stopping
|
||||
// 25.04.2007 G.Folger: Add code for quasielastic
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
@@ -50,27 +51,27 @@
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4ShortLivedConstructor.hh"
|
||||
|
||||
HadronPhysicsQGSP_HP::HadronPhysicsQGSP_HP(const G4String& name)
|
||||
: G4VPhysicsConstructor(name)
|
||||
HadronPhysicsQGSP_HP::HadronPhysicsQGSP_HP(const G4String& name, G4bool quasiElastic)
|
||||
: G4VPhysicsConstructor(name) , QuasiElastic(quasiElastic)
|
||||
{}
|
||||
|
||||
void HadronPhysicsQGSP_HP::CreateModels()
|
||||
{
|
||||
theNeutrons=new G4NeutronBuilder;
|
||||
|
||||
theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder);
|
||||
theNeutrons->RegisterMe(theQGSPNeutron=new G4QGSPNeutronBuilder(QuasiElastic));
|
||||
theNeutrons->RegisterMe(theLEPNeutron=new G4LEPNeutronBuilder);
|
||||
theLEPNeutron->SetMinEnergy(19.9*MeV);
|
||||
theLEPNeutron->SetMaxInelasticEnergy(25*GeV);
|
||||
theNeutrons->RegisterMe(theHPNeutron=new G4NeutronHPBuilder);
|
||||
|
||||
thePro=new G4ProtonBuilder;
|
||||
thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder);
|
||||
thePro->RegisterMe(theQGSPPro=new G4QGSPProtonBuilder(QuasiElastic));
|
||||
thePro->RegisterMe(theLEPPro=new G4LEPProtonBuilder);
|
||||
theLEPPro->SetMaxEnergy(25*GeV);
|
||||
|
||||
thePiK=new G4PiKBuilder;
|
||||
thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder);
|
||||
thePiK->RegisterMe(theQGSPPiK=new G4QGSPPiKBuilder(QuasiElastic));
|
||||
thePiK->RegisterMe(theLEPPiK=new G4LEPPiKBuilder);
|
||||
theLEPPiK->SetMaxEnergy(25*GeV);
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// GEANT4 tag $Name: geant4-08-02 $
|
||||
// GEANT4 tag $Name: geant4-08-03 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
@@ -75,18 +75,18 @@ G4double MinEkineCuts::PostStepGetPhysicalInteractionLength(
|
||||
//min kinetic energy
|
||||
G4double temp = DBL_MAX;
|
||||
G4double eKine = aParticle->GetKineticEnergy();
|
||||
G4Material* aMaterial = aTrack.GetMaterial();
|
||||
const G4MaterialCutsCouple* couple = aTrack.GetMaterialCutsCouple();
|
||||
G4double eMin = pUserLimits->GetUserMinEkine(aTrack);
|
||||
|
||||
G4double rangeNow = DBL_MAX;
|
||||
|
||||
rangeNow = G4EnergyLossTables::GetRange(aParticleDef,eKine,aMaterial);
|
||||
rangeNow = G4EnergyLossTables::GetRange(aParticleDef,eKine,couple);
|
||||
|
||||
if (eKine < eMin ) {
|
||||
proposedStep = 0.;
|
||||
} else {
|
||||
// charged particles only
|
||||
G4double rangeMin = G4EnergyLossTables::GetRange(aParticleDef,eMin,aMaterial);
|
||||
G4double rangeMin = G4EnergyLossTables::GetRange(aParticleDef,eMin,couple);
|
||||
temp = rangeNow - rangeMin;
|
||||
if (proposedStep > temp) proposedStep = temp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user