Files
geant4/source/physics_lists/builders/src/G4FTFPAntiBarionBuilder.cc
T
2020-06-26 10:23:25 +02:00

134 lines
4.5 KiB
C++

//
// ********************************************************************
// * 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. *
// ********************************************************************
//
//
//---------------------------------------------------------------------------
//
// ClassName: G4FTFPAntiBarionBuilder
//
// Author: 2011 J. Apostolakis
//
// Modified:
// 2011.02.22 J.Apostolakis - Started from G4FTFPPiKBuilder
//----------------------------------------------------------------------------
//
#include "G4FTFPAntiBarionBuilder.hh"
#include "G4SystemOfUnits.hh"
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4ProcessManager.hh"
#include "G4ComponentAntiNuclNuclearXS.hh" // For anti-ions
#include "G4CrossSectionInelastic.hh"
#include "G4CrossSectionDataSetRegistry.hh"
#include "G4HadronicParameters.hh"
G4FTFPAntiBarionBuilder::
G4FTFPAntiBarionBuilder(G4bool quasiElastic)
{
G4CrossSectionDataSetRegistry* xsreg = G4CrossSectionDataSetRegistry::Instance();
G4VComponentCrossSection* theAntiNucleonXS =
xsreg->GetComponentCrossSection("AntiAGlauber");
if(!theAntiNucleonXS) { theAntiNucleonXS = new G4ComponentAntiNuclNuclearXS(); }
theAntiNucleonData = new G4CrossSectionInelastic(theAntiNucleonXS);
theMin = 0.0*GeV;
theMax = G4HadronicParameters::Instance()->GetMaxEnergy();
theModel = new G4TheoFSGenerator("FTFP");
G4FTFModel* theStringModel = new G4FTFModel();
theStringModel->SetFragmentationModel(new G4ExcitedStringDecay());
G4GeneratorPrecompoundInterface* theCascade =
new G4GeneratorPrecompoundInterface();
theModel->SetHighEnergyGenerator(theStringModel);
if (quasiElastic) {
theModel->SetQuasiElasticChannel(new G4QuasiElasticChannel());
}
theModel->SetTransport(theCascade);
theModel->SetMinEnergy(theMin);
theModel->SetMaxEnergy(theMax);
}
G4FTFPAntiBarionBuilder::~G4FTFPAntiBarionBuilder()
{
}
void G4FTFPAntiBarionBuilder::
Build(G4AntiProtonInelasticProcess * aP)
{
theModel->SetMinEnergy(theMin);
theModel->SetMaxEnergy(theMax);
aP->AddDataSet(theAntiNucleonData);
aP->RegisterMe(theModel);
}
void G4FTFPAntiBarionBuilder::
Build(G4AntiNeutronInelasticProcess * aP)
{
theModel->SetMinEnergy(theMin);
theModel->SetMaxEnergy(theMax);
aP->AddDataSet(theAntiNucleonData);
aP->RegisterMe(theModel);
}
void G4FTFPAntiBarionBuilder::
Build(G4AntiDeuteronInelasticProcess * aP)
{
theModel->SetMinEnergy(theMin);
theModel->SetMaxEnergy(theMax);
aP->AddDataSet(theAntiNucleonData);
aP->RegisterMe(theModel);
}
void G4FTFPAntiBarionBuilder::
Build(G4AntiTritonInelasticProcess * aP)
{
theModel->SetMinEnergy(theMin);
theModel->SetMaxEnergy(theMax);
aP->AddDataSet(theAntiNucleonData);
aP->RegisterMe(theModel);
}
void G4FTFPAntiBarionBuilder::
Build(G4AntiHe3InelasticProcess * aP)
{
theModel->SetMinEnergy(theMin);
theModel->SetMaxEnergy(theMax);
aP->AddDataSet(theAntiNucleonData);
aP->RegisterMe(theModel);
}
void G4FTFPAntiBarionBuilder::
Build(G4AntiAlphaInelasticProcess * aP)
{
theModel->SetMinEnergy(theMin);
theModel->SetMaxEnergy(theMax);
aP->AddDataSet(theAntiNucleonData);
aP->RegisterMe(theModel);
}