00001 // 00002 // ******************************************************************** 00003 // * License and Disclaimer * 00004 // * * 00005 // * The Geant4 software is copyright of the Copyright Holders of * 00006 // * the Geant4 Collaboration. It is provided under the terms and * 00007 // * conditions of the Geant4 Software License, included in the file * 00008 // * LICENSE and available at http://cern.ch/geant4/license . These * 00009 // * include a list of copyright holders. * 00010 // * * 00011 // * Neither the authors of this software system, nor their employing * 00012 // * institutes,nor the agencies providing financial support for this * 00013 // * work make any representation or warranty, express or implied, * 00014 // * regarding this software system or assume any liability for its * 00015 // * use. Please see the license in the file LICENSE and URL above * 00016 // * for the full disclaimer and the limitation of liability. * 00017 // * * 00018 // * This code implementation is the result of the scientific and * 00019 // * technical work of the GEANT4 collaboration. * 00020 // * By using, copying, modifying or distributing the software (or * 00021 // * any work based on the software) you agree to acknowledge its * 00022 // * use in resulting scientific publications, and indicate your * 00023 // * acceptance of all terms of the Geant4 Software license. * 00024 // ******************************************************************** 00025 // 00026 //--------------------------------------------------------------------------- 00027 // 00028 // ClassName: G4HadronicAbsorptionFritiof 00029 // 00030 // Author: Alberto Ribon 00031 // 00032 // Date: 27 July 2012 00033 // 00034 // Modified: 00035 // 00036 // Class Description: 00037 // 00038 // Intermediate class for hadronic absorption at rest using FTF/Preco. 00039 // Physics lists should reference the concrete subclasses for: 00040 // anti_proton, anti_sigma+, and all anti-nuclei. 00041 // 00042 //--------------------------------------------------------------------------- 00043 00044 #include <iostream> 00045 00046 #include "G4SystemOfUnits.hh" 00047 #include "G4HadronicAbsorptionFritiof.hh" 00048 #include "G4PreCompoundModel.hh" 00049 #include "G4GeneratorPrecompoundInterface.hh" 00050 #include "G4FTFModel.hh" 00051 #include "G4LundStringFragmentation.hh" 00052 #include "G4ExcitedStringDecay.hh" 00053 #include "G4TheoFSGenerator.hh" 00054 #include "G4ParticleDefinition.hh" 00055 #include "G4ParticleTypes.hh" 00056 #include "G4HadronicInteractionRegistry.hh" 00057 00058 // Constructor 00059 G4HadronicAbsorptionFritiof:: 00060 G4HadronicAbsorptionFritiof( G4ParticleDefinition* pdef ) 00061 : G4HadronStoppingProcess( "hFritiofCaptureAtRest" ), 00062 pdefApplicable( pdef ) { 00063 00064 G4TheoFSGenerator * theModel = new G4TheoFSGenerator( "FTFP" ); 00065 G4FTFModel * theStringModel = new G4FTFModel; 00066 theLund = new G4LundStringFragmentation; 00067 theStringDecay = new G4ExcitedStringDecay( theLund ); 00068 theStringModel->SetFragmentationModel( theStringDecay ); 00069 00070 // Not a cascade - goes straight to Preco 00071 G4HadronicInteraction* p = 00072 G4HadronicInteractionRegistry::Instance()->FindModel("PRECO"); 00073 G4VPreCompoundModel * thePreEquilib = static_cast<G4VPreCompoundModel*>(p); 00074 if(! thePreEquilib) { thePreEquilib = new G4PreCompoundModel; } 00075 00076 G4GeneratorPrecompoundInterface * theCascade = 00077 new G4GeneratorPrecompoundInterface( thePreEquilib ); 00078 00079 theModel->SetHighEnergyGenerator( theStringModel ); 00080 theModel->SetTransport( theCascade ); 00081 00082 G4double theMin = 0.0*GeV; 00083 G4double theMax = 100.0*TeV; 00084 theModel->SetMinEnergy( theMin ); 00085 theModel->SetMaxEnergy( theMax ); 00086 00087 RegisterMe( theModel ); 00088 } 00089 00090 00091 G4HadronicAbsorptionFritiof::~G4HadronicAbsorptionFritiof() { 00092 delete theLund; 00093 delete theStringDecay; 00094 } 00095 00096 00097 // Applies to constructor-specified particle, or to all known cases 00098 G4bool G4HadronicAbsorptionFritiof:: 00099 IsApplicable( const G4ParticleDefinition& particle ) { 00100 return ( ( 0 == pdefApplicable && 00101 ( &particle == G4AntiProton::Definition() || 00102 &particle == G4AntiSigmaPlus::Definition() || 00103 particle.GetBaryonNumber() < -1 ) ) // Anti-nuclei 00104 || ( &particle == pdefApplicable ) ); 00105 } 00106 00107 00108 // Documentation of purpose 00109 void G4HadronicAbsorptionFritiof:: 00110 ProcessDescription( std::ostream& os ) const { 00111 os << "Stopping and absorption of anti_protons, anti_sigma+, and \n" 00112 << "all anti-nuclei using Fritiof (FTF) string model.\n" 00113 << "Geant4 PreCompound model is used for nuclear de-excitation." 00114 << std::endl; 00115 }