Import Geant4 9.1.0 source tree
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4DecayPhysics.cc,v 1.1 2006/10/31 11:35:02 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4ElectroNuclearBuilder.cc,v 1.1 2006/10/31 11:35:02 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4EmExtraPhysics.cc,v 1.1 2006/10/31 11:35:02 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: G4EmExtraPhysics.cc,v 1.2 2007/11/15 18:08:11 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -48,12 +48,15 @@
|
||||
#include "G4Gamma.hh"
|
||||
#include "G4Electron.hh"
|
||||
#include "G4Positron.hh"
|
||||
#include "G4MuonPlus.hh"
|
||||
#include "G4MuonMinus.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
G4EmExtraPhysics::G4EmExtraPhysics(const G4String& name): G4VPhysicsConstructor(name),
|
||||
wasActivated(false), synchOn(false),
|
||||
gammNucOn(true), muNucOn(false), theElectronSynch(0), thePositronSynch(0),
|
||||
theGNPhysics(0),theMuNuc1(0),theMuNuc2(0)
|
||||
G4EmExtraPhysics::G4EmExtraPhysics(const G4String& name):
|
||||
G4VPhysicsConstructor(name), wasBuilt(false), gnActivated(false), munActivated(false),
|
||||
synActivated(false), synchOn(false), gammNucOn(true), muNucOn(false),
|
||||
theElectronSynch(0), thePositronSynch(0), theGNPhysics(0), theMuNuc1(0),
|
||||
theMuNuc2(0)
|
||||
{
|
||||
theMessenger = new G4EmMessenger(this);
|
||||
}
|
||||
@@ -61,29 +64,35 @@ G4EmExtraPhysics::G4EmExtraPhysics(const G4String& name): G4VPhysicsConstructor(
|
||||
G4EmExtraPhysics::~G4EmExtraPhysics()
|
||||
{
|
||||
delete theMessenger;
|
||||
if(theElectronSynch) delete theElectronSynch;
|
||||
if(thePositronSynch) delete thePositronSynch;
|
||||
if(theGNPhysics) delete theGNPhysics;
|
||||
if(theMuNuc1) delete theMuNuc1;
|
||||
if(theMuNuc2) delete theMuNuc2;
|
||||
delete theElectronSynch;
|
||||
delete thePositronSynch;
|
||||
delete theGNPhysics;
|
||||
delete theMuNuc1;
|
||||
delete theMuNuc2;
|
||||
}
|
||||
|
||||
void G4EmExtraPhysics::Synch(G4String & newState)
|
||||
{
|
||||
if(newState == "on") synchOn = true;
|
||||
else synchOn = false;
|
||||
if(newState == "on" || newState == "ON") {
|
||||
synchOn = true;
|
||||
if(wasBuilt) BuildSynch();
|
||||
} else synchOn = false;
|
||||
}
|
||||
|
||||
void G4EmExtraPhysics::GammaNuclear(G4String & newState)
|
||||
{
|
||||
if(newState == "on") gammNucOn = true;
|
||||
else gammNucOn = false;
|
||||
if(newState == "on" || newState == "ON") {
|
||||
gammNucOn = true;
|
||||
if(wasBuilt) BuildGammaNuclear();
|
||||
} else gammNucOn = false;
|
||||
}
|
||||
|
||||
void G4EmExtraPhysics::MuonNuclear(G4String & newState)
|
||||
{
|
||||
if(newState == "on") muNucOn = true;
|
||||
else muNucOn = false;
|
||||
if(newState == "on" || newState == "ON") {
|
||||
muNucOn = true;
|
||||
if(wasBuilt) BuildMuonNuclear();
|
||||
} else muNucOn = false;
|
||||
}
|
||||
|
||||
void G4EmExtraPhysics::ConstructParticle()
|
||||
@@ -91,33 +100,55 @@ void G4EmExtraPhysics::ConstructParticle()
|
||||
G4Gamma::Gamma();
|
||||
G4Electron::Electron();
|
||||
G4Positron::Positron();
|
||||
G4MuonPlus::MuonPlus();
|
||||
G4MuonMinus::MuonMinus();
|
||||
}
|
||||
|
||||
void G4EmExtraPhysics::ConstructProcess()
|
||||
{
|
||||
G4ProcessManager * pManager = 0;
|
||||
wasActivated = true;
|
||||
if(wasBuilt) return;
|
||||
wasBuilt = true;
|
||||
|
||||
if(synchOn) {
|
||||
pManager = G4Electron::Electron()->GetProcessManager();
|
||||
theElectronSynch = new G4SynchrotronRadiation();
|
||||
pManager->AddDiscreteProcess(theElectronSynch);
|
||||
|
||||
pManager = G4Positron::Positron()->GetProcessManager();
|
||||
thePositronSynch = new G4SynchrotronRadiation();
|
||||
pManager->AddDiscreteProcess(thePositronSynch);
|
||||
}
|
||||
if (gammNucOn) {
|
||||
theGNPhysics = new G4ElectroNuclearBuilder();
|
||||
theGNPhysics->Build();
|
||||
}
|
||||
if(muNucOn) {
|
||||
pManager = G4MuonPlus::MuonPlus()->GetProcessManager();
|
||||
theMuNuc1 = new G4MuNuclearInteraction("muNucl");
|
||||
pManager->AddDiscreteProcess(theMuNuc1);
|
||||
|
||||
pManager = G4MuonMinus::MuonMinus()->GetProcessManager();
|
||||
theMuNuc2 = new G4MuNuclearInteraction("muNucl");
|
||||
pManager->AddDiscreteProcess(theMuNuc2);
|
||||
}
|
||||
if (synchOn) BuildSynch();
|
||||
if (gammNucOn) BuildGammaNuclear();
|
||||
if (muNucOn) BuildMuonNuclear();
|
||||
}
|
||||
|
||||
void G4EmExtraPhysics::BuildMuonNuclear()
|
||||
{
|
||||
if(munActivated) return;
|
||||
munActivated = true;
|
||||
G4ProcessManager * pManager = 0;
|
||||
|
||||
pManager = G4Electron::Electron()->GetProcessManager();
|
||||
theElectronSynch = new G4SynchrotronRadiation();
|
||||
pManager->AddDiscreteProcess(theElectronSynch);
|
||||
|
||||
pManager = G4Positron::Positron()->GetProcessManager();
|
||||
thePositronSynch = new G4SynchrotronRadiation();
|
||||
pManager->AddDiscreteProcess(thePositronSynch);
|
||||
}
|
||||
|
||||
void G4EmExtraPhysics::BuildGammaNuclear()
|
||||
{
|
||||
if(gnActivated) return;
|
||||
gnActivated = true;
|
||||
|
||||
theGNPhysics = new G4ElectroNuclearBuilder();
|
||||
theGNPhysics->Build();
|
||||
}
|
||||
|
||||
void G4EmExtraPhysics::BuildSynch()
|
||||
{
|
||||
if(synActivated) return;
|
||||
synActivated = true;
|
||||
G4ProcessManager * pManager = 0;
|
||||
|
||||
pManager = G4MuonPlus::MuonPlus()->GetProcessManager();
|
||||
theMuNuc1 = new G4MuNuclearInteraction("muNucl");
|
||||
pManager->AddDiscreteProcess(theMuNuc1);
|
||||
|
||||
pManager = G4MuonMinus::MuonMinus()->GetProcessManager();
|
||||
theMuNuc2 = new G4MuNuclearInteraction("muNucl");
|
||||
pManager->AddDiscreteProcess(theMuNuc2);
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4EmMessenger.cc,v 1.1 2006/10/31 11:35:02 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4EmStandardPhysics.cc,v 1.9 2007/05/18 17:47:17 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4EmStandardPhysics_option1.cc,v 1.3 2007/06/11 15:07:38 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4EmStandardPhysics_option2.cc,v 1.2 2007/05/18 17:47:17 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: G4EmStandardPhysics_option2.cc,v 1.3 2007/10/02 11:18:02 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -207,6 +207,11 @@ void G4EmStandardPhysics_option2::ConstructProcess()
|
||||
G4EmProcessOptions opt;
|
||||
opt.SetVerbose(verbose);
|
||||
opt.SetSubCutoff(true);
|
||||
opt.SetMinEnergy(0.1*keV);
|
||||
opt.SetMaxEnergy(10.*TeV);
|
||||
opt.SetDEDXBinning(220);
|
||||
opt.SetLambdaBinning(220);
|
||||
opt.SetLinearLossLimit(1.e-6);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
#include "G4FTFBinaryNeutronBuilder.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
G4FTFBinaryNeutronBuilder::
|
||||
G4FTFBinaryNeutronBuilder(G4bool quasiElastic)
|
||||
{
|
||||
theMin = 4*GeV;
|
||||
theModel = new G4TheoFSGenerator;
|
||||
|
||||
theStringModel = new G4FTFModel;
|
||||
theStringDecay = new G4ExcitedStringDecay(new G4LundStringFragmentation);
|
||||
theStringModel->SetFragmentationModel(theStringDecay);
|
||||
|
||||
theCascade = new G4BinaryCascade;
|
||||
theModel->SetTransport(theCascade);
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
|
||||
theModel->SetHighEnergyGenerator(theStringModel);
|
||||
if (quasiElastic)
|
||||
{
|
||||
theQuasiElastic=new G4QuasiElasticChannel;
|
||||
theModel->SetQuasiElasticChannel(theQuasiElastic);
|
||||
} else
|
||||
{ theQuasiElastic=0;}
|
||||
}
|
||||
|
||||
G4FTFBinaryNeutronBuilder::
|
||||
~G4FTFBinaryNeutronBuilder()
|
||||
{
|
||||
delete theStringDecay;
|
||||
delete theStringModel;
|
||||
delete thePreEquilib;
|
||||
delete theCascade;
|
||||
if ( theQuasiElastic ) delete theQuasiElastic;
|
||||
}
|
||||
|
||||
void G4FTFBinaryNeutronBuilder::
|
||||
Build(G4HadronElasticProcess * )
|
||||
{
|
||||
}
|
||||
|
||||
void G4FTFBinaryNeutronBuilder::
|
||||
Build(G4HadronFissionProcess * )
|
||||
{
|
||||
}
|
||||
|
||||
void G4FTFBinaryNeutronBuilder::
|
||||
Build(G4HadronCaptureProcess * )
|
||||
{
|
||||
}
|
||||
|
||||
void G4FTFBinaryNeutronBuilder::
|
||||
Build(G4NeutronInelasticProcess * aP)
|
||||
{
|
||||
aP->RegisterMe(theModel);
|
||||
aP->AddDataSet(&theXSec);
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
#include "G4FTFBinaryPiKBuilder.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
G4FTFBinaryPiKBuilder::
|
||||
G4FTFBinaryPiKBuilder(G4bool quasiElastic)
|
||||
{
|
||||
theMin = 4*GeV;
|
||||
theModel = new G4TheoFSGenerator;
|
||||
|
||||
theStringModel = new G4FTFModel;
|
||||
theStringDecay = new G4ExcitedStringDecay(new G4LundStringFragmentation);
|
||||
theStringModel->SetFragmentationModel(theStringDecay);
|
||||
|
||||
theCascade = new G4BinaryCascade;
|
||||
thePreEquilib = new G4PreCompoundModel(new G4ExcitationHandler);
|
||||
theCascade->SetDeExcitation(thePreEquilib);
|
||||
|
||||
theModel->SetHighEnergyGenerator(theStringModel);
|
||||
if (quasiElastic)
|
||||
{
|
||||
theQuasiElastic=new G4QuasiElasticChannel;
|
||||
theModel->SetQuasiElasticChannel(theQuasiElastic);
|
||||
} else
|
||||
{ theQuasiElastic=0;}
|
||||
|
||||
theModel->SetTransport(theCascade);
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
}
|
||||
|
||||
G4FTFBinaryPiKBuilder::
|
||||
~G4FTFBinaryPiKBuilder()
|
||||
{
|
||||
delete theCascade;
|
||||
delete theStringDecay;
|
||||
delete theStringModel;
|
||||
delete theModel;
|
||||
if ( theQuasiElastic ) delete theQuasiElastic;
|
||||
}
|
||||
|
||||
void G4FTFBinaryPiKBuilder::
|
||||
Build(G4HadronElasticProcess * ) {}
|
||||
|
||||
void G4FTFBinaryPiKBuilder::
|
||||
Build(G4PionPlusInelasticProcess * aP)
|
||||
{
|
||||
aP->AddDataSet(&thePiData);
|
||||
aP->RegisterMe(theModel);
|
||||
}
|
||||
|
||||
void G4FTFBinaryPiKBuilder::
|
||||
Build(G4PionMinusInelasticProcess * aP)
|
||||
{
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
aP->AddDataSet(&thePiData);
|
||||
aP->RegisterMe(theModel);
|
||||
}
|
||||
|
||||
void G4FTFBinaryPiKBuilder::
|
||||
Build(G4KaonPlusInelasticProcess * aP)
|
||||
{
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
aP->RegisterMe(theModel);
|
||||
}
|
||||
|
||||
void G4FTFBinaryPiKBuilder::
|
||||
Build(G4KaonMinusInelasticProcess * aP)
|
||||
{
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
aP->RegisterMe(theModel);
|
||||
}
|
||||
|
||||
void G4FTFBinaryPiKBuilder::
|
||||
Build(G4KaonZeroLInelasticProcess * aP)
|
||||
{
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
aP->RegisterMe(theModel);
|
||||
}
|
||||
|
||||
void G4FTFBinaryPiKBuilder::
|
||||
Build(G4KaonZeroSInelasticProcess * aP)
|
||||
{
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
aP->RegisterMe(theModel);
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
#include "G4FTFBinaryProtonBuilder.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
G4FTFBinaryProtonBuilder::
|
||||
G4FTFBinaryProtonBuilder(G4bool quasiElastic)
|
||||
{
|
||||
theMin = 4*GeV;
|
||||
theModel = new G4TheoFSGenerator;
|
||||
|
||||
theStringModel = new G4FTFModel;
|
||||
theStringDecay = new G4ExcitedStringDecay(new G4LundStringFragmentation);
|
||||
theStringModel->SetFragmentationModel(theStringDecay);
|
||||
|
||||
theCascade = new G4BinaryCascade;
|
||||
thePreEquilib = new G4PreCompoundModel(new G4ExcitationHandler);
|
||||
theCascade->SetDeExcitation(thePreEquilib);
|
||||
theModel->SetTransport(theCascade);
|
||||
|
||||
theModel->SetHighEnergyGenerator(theStringModel);
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
|
||||
if (quasiElastic)
|
||||
{
|
||||
theQuasiElastic=new G4QuasiElasticChannel;
|
||||
theModel->SetQuasiElasticChannel(theQuasiElastic);
|
||||
} else
|
||||
{ theQuasiElastic=0;}
|
||||
|
||||
}
|
||||
|
||||
void G4FTFBinaryProtonBuilder::
|
||||
Build(G4ProtonInelasticProcess * aP)
|
||||
{
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
aP->RegisterMe(theModel);
|
||||
aP->AddDataSet(&theXSec);
|
||||
}
|
||||
|
||||
G4FTFBinaryProtonBuilder::
|
||||
~G4FTFBinaryProtonBuilder()
|
||||
{
|
||||
delete theStringDecay;
|
||||
delete theStringModel;
|
||||
delete theModel;
|
||||
delete theCascade;
|
||||
if ( theQuasiElastic ) delete theQuasiElastic;
|
||||
}
|
||||
|
||||
void G4FTFBinaryProtonBuilder::
|
||||
Build(G4HadronElasticProcess * )
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,190 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: G4HadronDElasticPhysics.cc,v 1.2 2007/11/14 18:45:37 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// ClassName: G4HadronDElasticPhysics
|
||||
//
|
||||
// Author: 11 April 2006 V. Ivanchenko
|
||||
//
|
||||
// Modified:
|
||||
// 05.07.2006 V.Ivanchenko define process by particle name;
|
||||
// fix problem of initialisation of HP
|
||||
// 24.07.2006 V.Ivanchenko add G4NeutronHPElasticData
|
||||
// 10.08.2006 V.Ivanchenko separate neutrons from other particles
|
||||
// 17.11.2006 V.Ivanchenko do not redefine G4HadronElastic default parameters
|
||||
// 19.02.2007 V.Ivanchenko set QModelLowLimit and LowestEnergyLimit to zero
|
||||
// 19.02.2007 A.Howard set QModelLowLimit and LowestEnergyLimit to zero
|
||||
// for neutrons
|
||||
// 06.03.2007 V.Ivanchenko use updated interface to G4UElasticCrossSection
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
#include "G4HadronDElasticPhysics.hh"
|
||||
|
||||
#include "G4HadronicProcess.hh"
|
||||
#include "G4HadronElasticProcess.hh"
|
||||
#include "G4HadronicInteraction.hh"
|
||||
#include "G4DiffuseElastic.hh"
|
||||
#include "G4HadronElastic.hh"
|
||||
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
#include "G4MesonConstructor.hh"
|
||||
#include "G4BaryonConstructor.hh"
|
||||
#include "G4IonConstructor.hh"
|
||||
#include "G4Neutron.hh"
|
||||
|
||||
#include "G4HadronProcessStore.hh"
|
||||
#include "G4VQCrossSection.hh"
|
||||
#include "G4UElasticCrossSection.hh"
|
||||
#include "G4BGGNucleonElasticXS.hh"
|
||||
#include "G4BGGPionElasticXS.hh"
|
||||
|
||||
G4HadronDElasticPhysics::G4HadronDElasticPhysics(G4int ver, G4bool hp)
|
||||
: G4VPhysicsConstructor("DElastic"), mname("DElastic"), verbose(ver),
|
||||
hpFlag(hp), wasActivated(false)
|
||||
{
|
||||
if(verbose > 1) G4cout << "### HadronDElasticPhysics" << G4endl;
|
||||
}
|
||||
|
||||
G4HadronDElasticPhysics::~G4HadronDElasticPhysics()
|
||||
{}
|
||||
|
||||
void G4HadronDElasticPhysics::ConstructParticle()
|
||||
{
|
||||
// G4cout << "G4HadronDElasticPhysics::ConstructParticle" << G4endl;
|
||||
G4MesonConstructor pMesonConstructor;
|
||||
pMesonConstructor.ConstructParticle();
|
||||
|
||||
G4BaryonConstructor pBaryonConstructor;
|
||||
pBaryonConstructor.ConstructParticle();
|
||||
|
||||
// Construct light ions
|
||||
G4IonConstructor pConstructor;
|
||||
pConstructor.ConstructParticle();
|
||||
}
|
||||
|
||||
void G4HadronDElasticPhysics::ConstructProcess()
|
||||
{
|
||||
if(wasActivated) return;
|
||||
wasActivated = true;
|
||||
|
||||
G4HadronProcessStore* store = G4HadronProcessStore::Instance();
|
||||
|
||||
if(verbose > 1)
|
||||
G4cout << "### HadronDElasticPhysics Construct Processes with the model <"
|
||||
<< mname << ">" << G4endl;
|
||||
|
||||
G4UHadronElasticProcess* hel = 0;
|
||||
G4DiffuseElastic* model = 0;
|
||||
|
||||
G4double elimit = 11.0*MeV;
|
||||
|
||||
G4HadronElastic* he = new G4HadronElastic();
|
||||
G4VQCrossSection* man = he->GetCS();
|
||||
he->SetMaxEnergy(elimit);
|
||||
|
||||
theParticleIterator->reset();
|
||||
while( (*theParticleIterator)() )
|
||||
{
|
||||
G4ParticleDefinition* particle = theParticleIterator->value();
|
||||
G4String pname = particle->GetParticleName();
|
||||
if(pname == "anti_lambda" ||
|
||||
pname == "anti_neutron" ||
|
||||
pname == "anti_omega-" ||
|
||||
pname == "anti_proton" ||
|
||||
pname == "anti_sigma-" ||
|
||||
pname == "anti_sigma+" ||
|
||||
pname == "anti_xi-" ||
|
||||
pname == "anti_xi0" ||
|
||||
pname == "kaon-" ||
|
||||
pname == "kaon+" ||
|
||||
pname == "kaon0S" ||
|
||||
pname == "kaon0L" ||
|
||||
pname == "lambda" ||
|
||||
pname == "omega-" ||
|
||||
pname == "pi-" ||
|
||||
pname == "pi+" ||
|
||||
pname == "proton" ||
|
||||
pname == "sigma-" ||
|
||||
pname == "sigma+" ||
|
||||
pname == "xi-" ||
|
||||
pname == "alpha" ||
|
||||
pname == "deuteron" ||
|
||||
pname == "triton") {
|
||||
|
||||
G4ProcessManager* pmanager = particle->GetProcessManager();
|
||||
hel = new G4UHadronElasticProcess("hElastic");
|
||||
hel->SetQElasticCrossSection(man);
|
||||
if(pname == "proton") {
|
||||
hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
|
||||
} else if (pname == "pi+" || pname == "pi-") {
|
||||
hel->AddDataSet(new G4BGGPionElasticXS(particle));
|
||||
} else {
|
||||
hel->AddDataSet(new G4UElasticCrossSection(particle));
|
||||
}
|
||||
model = new G4DiffuseElastic(particle);
|
||||
hel->RegisterMe(model);
|
||||
hel->RegisterMe(he);
|
||||
store->Register(hel,particle,he,"elastic");
|
||||
store->Register(hel,particle,model,mname);
|
||||
pmanager->AddDiscreteProcess(hel);
|
||||
|
||||
// neutron case
|
||||
} else if(pname == "neutron") {
|
||||
|
||||
G4ProcessManager* pmanager = particle->GetProcessManager();
|
||||
hel = new G4UHadronElasticProcess("hElastic");
|
||||
hel->SetQElasticCrossSection(man);
|
||||
hel->AddDataSet(new G4BGGNucleonElasticXS(particle));
|
||||
model = new G4DiffuseElastic(particle);
|
||||
if(hpFlag) {
|
||||
model->SetMinEnergy(19.5*MeV);
|
||||
G4NeutronHPElastic* modelHP = new G4NeutronHPElastic();
|
||||
hel->RegisterMe(modelHP);
|
||||
store->Register(hel,particle,modelHP,"HP");
|
||||
hel->AddDataSet(new G4NeutronHPElasticData());
|
||||
} else {
|
||||
hel->RegisterMe(he);
|
||||
store->Register(hel,particle,he,"elastic");
|
||||
}
|
||||
hel->RegisterMe(model);
|
||||
store->Register(hel,particle,model,mname);
|
||||
pmanager->AddDiscreteProcess(hel);
|
||||
|
||||
if(verbose > 1)
|
||||
G4cout << "### HadronDElasticPhysics added for "
|
||||
<< particle->GetParticleName() << G4endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4HadronElasticPhysics.cc,v 1.7 2007/03/06 17:52:06 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4HadronHElasticPhysics.cc,v 1.2 2007/03/21 12:36:14 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// $Id: G4HadronHElasticPhysics.cc,v 1.4 2007/11/15 18:08:11 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -60,10 +60,9 @@
|
||||
#include "G4BGGNucleonElasticXS.hh"
|
||||
#include "G4BGGPionElasticXS.hh"
|
||||
|
||||
G4HadronHElasticPhysics::G4HadronHElasticPhysics(
|
||||
const G4String& name, G4int ver, G4bool hp, G4bool glauber)
|
||||
: G4VPhysicsConstructor(name), mname(name), verbose(ver), hpFlag(hp),
|
||||
glFlag(glauber),wasActivated(false)
|
||||
G4HadronHElasticPhysics::G4HadronHElasticPhysics(G4int ver, G4bool hp)
|
||||
: G4VPhysicsConstructor("HElastic"), mname("HElastic"), verbose(ver),
|
||||
hpFlag(hp), wasActivated(false)
|
||||
{
|
||||
if(verbose > 1) G4cout << "### HadronHElasticPhysics" << G4endl;
|
||||
model = 0;
|
||||
@@ -99,8 +98,8 @@ void G4HadronHElasticPhysics::ConstructProcess()
|
||||
|
||||
G4HadronProcessStore* store = G4HadronProcessStore::Instance();
|
||||
|
||||
// G4double elimit = 0.4*GeV;
|
||||
G4double elimit = 0.0;
|
||||
G4double elimit = 0.4*GeV;
|
||||
//G4double elimit = 0.0;
|
||||
|
||||
if(verbose > 1)
|
||||
G4cout << "### HadronElasticPhysics Construct Processes with HE limit "
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4HadronProcessStore.cc,v 1.1 2006/10/31 11:35:02 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4HadronQElasticPhysics.cc,v 1.6 2006/11/29 14:33:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4IonBinaryCascadePhysics.cc,v 1.1 2006/10/31 11:35:02 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4IonPhysics.cc,v 1.1 2006/10/31 11:35:02 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
@@ -86,10 +86,13 @@ Build(G4HadronCaptureProcess * aP)
|
||||
void G4LEPNeutronBuilder::
|
||||
Build(G4NeutronInelasticProcess * aP)
|
||||
{
|
||||
theLENeutronModel = new G4LENeutronInelastic();
|
||||
theLENeutronModel->SetMinEnergy(theIMin);
|
||||
theLENeutronModel->SetMaxEnergy(theIMax);
|
||||
aP->RegisterMe(theLENeutronModel);
|
||||
if ( theIMax > 1.*eV )
|
||||
{
|
||||
theLENeutronModel = new G4LENeutronInelastic();
|
||||
theLENeutronModel->SetMinEnergy(theIMin);
|
||||
theLENeutronModel->SetMaxEnergy(theIMax);
|
||||
aP->RegisterMe(theLENeutronModel);
|
||||
}
|
||||
}
|
||||
|
||||
// 2002 by J.P. Wellisch
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4LHEPStoppingPhysics.cc,v 1.1 2006/10/31 11:35:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4NeutronTrackingCut.cc,v 1.4 2006/11/24 16:30:13 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4PiKBuilder.cc,v 1.1 2006/10/31 11:35:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4ProtonBuilder.cc,v 1.1 2006/10/31 11:35:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4QEmExtraPhysics.cc,v 1.1 2007/05/23 17:38:35 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
#include "G4QGSBinaryNeutronBuilder.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
G4QGSBinaryNeutronBuilder::
|
||||
G4QGSBinaryNeutronBuilder(G4bool quasiElastic)
|
||||
{
|
||||
theMin = 12*GeV;
|
||||
theModel = new G4TheoFSGenerator;
|
||||
|
||||
theStringModel = new G4QGSModel< G4QGSParticipants >;
|
||||
theStringDecay = new G4ExcitedStringDecay(new G4QGSMFragmentation);
|
||||
theStringModel->SetFragmentationModel(theStringDecay);
|
||||
|
||||
theCascade = new G4BinaryCascade;
|
||||
thePreEquilib = new G4PreCompoundModel(new G4ExcitationHandler);
|
||||
theCascade->SetDeExcitation(thePreEquilib);
|
||||
|
||||
theModel->SetTransport(theCascade);
|
||||
theModel->SetHighEnergyGenerator(theStringModel);
|
||||
if (quasiElastic)
|
||||
{
|
||||
theQuasiElastic=new G4QuasiElasticChannel;
|
||||
theModel->SetQuasiElasticChannel(theQuasiElastic);
|
||||
} else
|
||||
{ theQuasiElastic=0;}
|
||||
}
|
||||
|
||||
G4QGSBinaryNeutronBuilder::
|
||||
~G4QGSBinaryNeutronBuilder()
|
||||
{
|
||||
delete theStringDecay;
|
||||
delete theStringModel;
|
||||
delete thePreEquilib;
|
||||
delete theCascade;
|
||||
if ( theQuasiElastic ) delete theQuasiElastic;
|
||||
delete theModel;
|
||||
}
|
||||
|
||||
void G4QGSBinaryNeutronBuilder::
|
||||
Build(G4HadronElasticProcess * )
|
||||
{
|
||||
}
|
||||
|
||||
void G4QGSBinaryNeutronBuilder::
|
||||
Build(G4HadronFissionProcess * )
|
||||
{
|
||||
}
|
||||
|
||||
void G4QGSBinaryNeutronBuilder::
|
||||
Build(G4HadronCaptureProcess * )
|
||||
{
|
||||
}
|
||||
|
||||
void G4QGSBinaryNeutronBuilder::
|
||||
Build(G4NeutronInelasticProcess * aP)
|
||||
{
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
aP->RegisterMe(theModel);
|
||||
aP->AddDataSet(&theXSec);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,118 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
#include "G4QGSBinaryPiKBuilder.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
G4QGSBinaryPiKBuilder::
|
||||
G4QGSBinaryPiKBuilder(G4bool quasiElastic)
|
||||
{
|
||||
theMin = 12*GeV;
|
||||
theModel = new G4TheoFSGenerator;
|
||||
|
||||
theStringModel = new G4QGSModel< G4QGSParticipants >;
|
||||
theStringDecay = new G4ExcitedStringDecay(new G4QGSMFragmentation);
|
||||
theStringModel->SetFragmentationModel(theStringDecay);
|
||||
|
||||
|
||||
theCascade = new G4BinaryCascade;
|
||||
thePreEquilib = new G4PreCompoundModel(new G4ExcitationHandler);
|
||||
theCascade->SetDeExcitation(thePreEquilib);
|
||||
|
||||
theModel->SetHighEnergyGenerator(theStringModel);
|
||||
if (quasiElastic)
|
||||
{
|
||||
theQuasiElastic=new G4QuasiElasticChannel;
|
||||
theModel->SetQuasiElasticChannel(theQuasiElastic);
|
||||
} else
|
||||
{ theQuasiElastic=0;}
|
||||
theModel->SetTransport(theCascade);
|
||||
}
|
||||
|
||||
G4QGSBinaryPiKBuilder::
|
||||
~G4QGSBinaryPiKBuilder()
|
||||
{
|
||||
delete theCascade;
|
||||
delete thePreEquilib;
|
||||
if ( theQuasiElastic ) delete theQuasiElastic;
|
||||
delete theStringDecay;
|
||||
delete theStringModel;
|
||||
delete theModel;
|
||||
}
|
||||
|
||||
void G4QGSBinaryPiKBuilder::
|
||||
Build(G4HadronElasticProcess * ) {}
|
||||
|
||||
void G4QGSBinaryPiKBuilder::
|
||||
Build(G4PionPlusInelasticProcess * aP)
|
||||
{
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
aP->AddDataSet(&thePiData);
|
||||
aP->RegisterMe(theModel);
|
||||
}
|
||||
|
||||
void G4QGSBinaryPiKBuilder::
|
||||
Build(G4PionMinusInelasticProcess * aP)
|
||||
{
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
aP->AddDataSet(&thePiData);
|
||||
aP->RegisterMe(theModel);
|
||||
}
|
||||
|
||||
void G4QGSBinaryPiKBuilder::
|
||||
Build(G4KaonPlusInelasticProcess * aP)
|
||||
{
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
aP->RegisterMe(theModel);
|
||||
}
|
||||
|
||||
void G4QGSBinaryPiKBuilder::
|
||||
Build(G4KaonMinusInelasticProcess * aP)
|
||||
{
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
aP->RegisterMe(theModel);
|
||||
}
|
||||
|
||||
void G4QGSBinaryPiKBuilder::
|
||||
Build(G4KaonZeroLInelasticProcess * aP)
|
||||
{
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
aP->RegisterMe(theModel);
|
||||
}
|
||||
|
||||
void G4QGSBinaryPiKBuilder::
|
||||
Build(G4KaonZeroSInelasticProcess * aP)
|
||||
{
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
aP->RegisterMe(theModel);
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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. *
|
||||
// ********************************************************************
|
||||
//
|
||||
#include "G4QGSBinaryProtonBuilder.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4ParticleTable.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
G4QGSBinaryProtonBuilder::
|
||||
G4QGSBinaryProtonBuilder(G4bool quasiElastic)
|
||||
{
|
||||
theMin = 12*GeV;
|
||||
theModel = new G4TheoFSGenerator;
|
||||
|
||||
theStringModel = new G4QGSModel< G4QGSParticipants >;
|
||||
theStringDecay = new G4ExcitedStringDecay(new G4QGSMFragmentation);
|
||||
theStringModel->SetFragmentationModel(theStringDecay);
|
||||
|
||||
theCascade = new G4BinaryCascade;
|
||||
thePreEquilib = new G4PreCompoundModel(new G4ExcitationHandler);
|
||||
theCascade->SetDeExcitation(thePreEquilib);
|
||||
|
||||
theModel->SetTransport(theCascade);
|
||||
theModel->SetHighEnergyGenerator(theStringModel);
|
||||
if (quasiElastic)
|
||||
{
|
||||
theQuasiElastic=new G4QuasiElasticChannel;
|
||||
theModel->SetQuasiElasticChannel(theQuasiElastic);
|
||||
} else
|
||||
{ theQuasiElastic=0;}
|
||||
}
|
||||
|
||||
void G4QGSBinaryProtonBuilder::
|
||||
Build(G4ProtonInelasticProcess * aP)
|
||||
{
|
||||
// G4cout << "adding inelastic Proton in QGSBinary" << G4endl;
|
||||
aP->AddDataSet(&theXSec);
|
||||
theModel->SetMinEnergy(theMin);
|
||||
theModel->SetMaxEnergy(100*TeV);
|
||||
aP->RegisterMe(theModel);
|
||||
}
|
||||
|
||||
void G4QGSBinaryProtonBuilder::
|
||||
Build(G4HadronElasticProcess * )
|
||||
{
|
||||
}
|
||||
|
||||
G4QGSBinaryProtonBuilder::
|
||||
~G4QGSBinaryProtonBuilder()
|
||||
{
|
||||
delete thePreEquilib;
|
||||
delete theCascade;
|
||||
if ( theQuasiElastic ) delete theQuasiElastic;
|
||||
delete theStringDecay;
|
||||
delete theStringModel;
|
||||
delete theModel;
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
G4QGSPNeutronBuilder::
|
||||
G4QGSPNeutronBuilder(G4bool quasiElastic)
|
||||
G4QGSPNeutronBuilder(G4bool quasiElastic, G4bool projectileDiffraction)
|
||||
{
|
||||
theMin = 12*GeV;
|
||||
theModel = new G4TheoFSGenerator;
|
||||
@@ -50,6 +50,12 @@ G4QGSPNeutronBuilder(G4bool quasiElastic)
|
||||
theModel->SetQuasiElasticChannel(theQuasiElastic);
|
||||
} else
|
||||
{ theQuasiElastic=0;}
|
||||
if ( projectileDiffraction )
|
||||
{
|
||||
theProjectileDiffraction=new G4ProjectileDiffractiveChannel;
|
||||
theModel->SetProjectileDiffraction(theProjectileDiffraction);
|
||||
} else
|
||||
{ theProjectileDiffraction=0;}
|
||||
}
|
||||
|
||||
G4QGSPNeutronBuilder::
|
||||
@@ -60,6 +66,7 @@ G4QGSPNeutronBuilder::
|
||||
delete thePreEquilib;
|
||||
delete theCascade;
|
||||
if ( theQuasiElastic ) delete theQuasiElastic;
|
||||
if ( theProjectileDiffraction ) delete theProjectileDiffraction;
|
||||
delete theModel;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
G4QGSPPiKBuilder::
|
||||
G4QGSPPiKBuilder(G4bool quasiElastic)
|
||||
G4QGSPPiKBuilder(G4bool quasiElastic, G4bool projectileDiffraction)
|
||||
{
|
||||
theMin = 12*GeV;
|
||||
theModel = new G4TheoFSGenerator;
|
||||
@@ -49,7 +49,14 @@ G4QGSPPiKBuilder(G4bool quasiElastic)
|
||||
theQuasiElastic=new G4QuasiElasticChannel;
|
||||
theModel->SetQuasiElasticChannel(theQuasiElastic);
|
||||
} else
|
||||
{ theQuasiElastic=0;}
|
||||
{ theQuasiElastic=0;}
|
||||
if ( projectileDiffraction )
|
||||
{
|
||||
theProjectileDiffraction=new G4ProjectileDiffractiveChannel;
|
||||
theModel->SetProjectileDiffraction(theProjectileDiffraction);
|
||||
} else
|
||||
{ theProjectileDiffraction=0;}
|
||||
|
||||
theModel->SetTransport(theCascade);
|
||||
}
|
||||
|
||||
@@ -59,6 +66,7 @@ G4QGSPPiKBuilder::
|
||||
delete theCascade;
|
||||
delete thePreEquilib;
|
||||
if ( theQuasiElastic ) delete theQuasiElastic;
|
||||
if ( theProjectileDiffraction ) delete theProjectileDiffraction;
|
||||
delete theStringDecay;
|
||||
delete theStringModel;
|
||||
delete theModel;
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
G4QGSPProtonBuilder::
|
||||
G4QGSPProtonBuilder(G4bool quasiElastic)
|
||||
G4QGSPProtonBuilder(G4bool quasiElastic, G4bool projectileDiffraction)
|
||||
{
|
||||
theMin = 12*GeV;
|
||||
theModel = new G4TheoFSGenerator;
|
||||
@@ -50,6 +50,12 @@
|
||||
theModel->SetQuasiElasticChannel(theQuasiElastic);
|
||||
} else
|
||||
{ theQuasiElastic=0;}
|
||||
if ( projectileDiffraction )
|
||||
{
|
||||
theProjectileDiffraction=new G4ProjectileDiffractiveChannel;
|
||||
theModel->SetProjectileDiffraction(theProjectileDiffraction);
|
||||
} else
|
||||
{ theProjectileDiffraction=0;}
|
||||
}
|
||||
|
||||
void G4QGSPProtonBuilder::
|
||||
@@ -73,6 +79,7 @@
|
||||
delete thePreEquilib;
|
||||
delete theCascade;
|
||||
if ( theQuasiElastic ) delete theQuasiElastic;
|
||||
if ( theProjectileDiffraction ) delete theProjectileDiffraction;
|
||||
delete theStringDecay;
|
||||
delete theStringModel;
|
||||
delete theModel;
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4QStoppingPhysics.cc,v 1.2 2007/04/26 16:03:18 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * License and Disclaimer *
|
||||
// * *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
#include "G4RadioactiveDecayPhysics.hh"
|
||||
#include "G4ProcessManager.hh"
|
||||
|
||||
#include "G4RadioactiveDecay.hh"
|
||||
#include "G4GenericIon.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
G4RadioactiveDecayPhysics::G4RadioactiveDecayPhysics(const G4String& name)
|
||||
: G4VPhysicsConstructor(name), theRadioactiveDecay(0)
|
||||
{}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
G4RadioactiveDecayPhysics::~G4RadioactiveDecayPhysics()
|
||||
{
|
||||
delete theRadioactiveDecay;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void G4RadioactiveDecayPhysics::ConstructParticle()
|
||||
{
|
||||
G4GenericIon::GenericIon();
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
void G4RadioactiveDecayPhysics::ConstructProcess()
|
||||
{
|
||||
theRadioactiveDecay = new G4RadioactiveDecay();
|
||||
G4GenericIon* ion = G4GenericIon::GenericIon();
|
||||
G4ProcessManager* pmanager = ion->GetProcessManager();
|
||||
pmanager->AddProcess(theRadioactiveDecay);
|
||||
pmanager->SetProcessOrdering(theRadioactiveDecay, idxPostStep);
|
||||
pmanager->SetProcessOrdering(theRadioactiveDecay, idxAtRest);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4StoppingHadronBuilder.cc,v 1.1 2006/10/31 11:35:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-00 $
|
||||
// GEANT4 tag $Name: geant4-09-01 $
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user