[819] | 1 | // |
---|
| 2 | // ******************************************************************** |
---|
| 3 | // * License and Disclaimer * |
---|
| 4 | // * * |
---|
| 5 | // * The Geant4 software is copyright of the Copyright Holders of * |
---|
| 6 | // * the Geant4 Collaboration. It is provided under the terms and * |
---|
| 7 | // * conditions of the Geant4 Software License, included in the file * |
---|
| 8 | // * LICENSE and available at http://cern.ch/geant4/license . These * |
---|
| 9 | // * include a list of copyright holders. * |
---|
| 10 | // * * |
---|
| 11 | // * Neither the authors of this software system, nor their employing * |
---|
| 12 | // * institutes,nor the agencies providing financial support for this * |
---|
| 13 | // * work make any representation or warranty, express or implied, * |
---|
| 14 | // * regarding this software system or assume any liability for its * |
---|
| 15 | // * use. Please see the license in the file LICENSE and URL above * |
---|
| 16 | // * for the full disclaimer and the limitation of liability. * |
---|
| 17 | // * * |
---|
| 18 | // * This code implementation is the result of the scientific and * |
---|
| 19 | // * technical work of the GEANT4 collaboration. * |
---|
| 20 | // * By using, copying, modifying or distributing the software (or * |
---|
| 21 | // * any work based on the software) you agree to acknowledge its * |
---|
| 22 | // * use in resulting scientific publications, and indicate your * |
---|
| 23 | // * acceptance of all terms of the Geant4 Software license. * |
---|
| 24 | // ******************************************************************** |
---|
| 25 | // |
---|
[1347] | 26 | // $Id: G4InclCascadeInterface.hh,v 1.8 2010/11/13 00:08:36 kaitanie Exp $ |
---|
[819] | 27 | // Translation of INCL4.2/ABLA V3 |
---|
| 28 | // Pekka Kaitaniemi, HIP (translation) |
---|
| 29 | // Christelle Schmidt, IPNL (fission code) |
---|
| 30 | // Alain Boudard, CEA (contact person INCL/ABLA) |
---|
| 31 | // Aatos Heikkinen, HIP (project coordination) |
---|
| 32 | |
---|
| 33 | |
---|
| 34 | // CLASS DESCRIPTION |
---|
| 35 | // This class is a preliminary interface code for INCL4 cascade |
---|
| 36 | // code. This class is intended to be used as an interface for |
---|
| 37 | // colliding hadrons (protons, neutrons, pions) to nuclei. |
---|
| 38 | |
---|
| 39 | // This class was created by Pekka Kaitaniemi |
---|
| 40 | // (kaitanie@cc.helsinki.fi) , Helsinki Institute of Physics using |
---|
| 41 | // G4CascadeInterface as a template. |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | #ifndef G4INCLCASCADEINTERFACE_H |
---|
| 45 | #define G4INCLCASCADEINTERFACE_H 1 |
---|
| 46 | |
---|
| 47 | #include "G4Nucleon.hh" |
---|
| 48 | #include "G4Nucleus.hh" |
---|
| 49 | #include "G4HadronicInteraction.hh" |
---|
| 50 | #include "G4VIntraNuclearTransportModel.hh" |
---|
| 51 | #include "G4KineticTrackVector.hh" |
---|
| 52 | #include "G4FragmentVector.hh" |
---|
| 53 | #include "G4ParticleChange.hh" |
---|
| 54 | #include "G4ReactionProductVector.hh" |
---|
| 55 | #include "G4ReactionProduct.hh" |
---|
| 56 | |
---|
| 57 | // INCL includes |
---|
| 58 | #include "G4InclDataDefs.hh" |
---|
| 59 | #include "G4AblaDataDefs.hh" |
---|
| 60 | #include "G4Incl.hh" |
---|
| 61 | |
---|
[1347] | 62 | // Geant4 de-excitation |
---|
| 63 | #include "G4ExcitationHandler.hh" |
---|
| 64 | #include "G4PreCompoundModel.hh" |
---|
| 65 | |
---|
[819] | 66 | #include <fstream> |
---|
| 67 | #include <iostream> |
---|
| 68 | |
---|
| 69 | using namespace std; |
---|
| 70 | |
---|
| 71 | /** |
---|
[1347] | 72 | * <h1>INCL intra-nuclear cascade with Geant4 PreCompound for de-excitation</h1> |
---|
| 73 | * |
---|
[819] | 74 | * Interface for INCL. This interface handles basic hadron |
---|
| 75 | * bullet particles (protons, neutrons, pions). |
---|
[1347] | 76 | * |
---|
| 77 | * Example usage in case of protons: |
---|
| 78 | * @code |
---|
| 79 | * G4InclCascadeInterface* inclModel = new G4InclCascadeInterface; |
---|
| 80 | * inclModel -> SetMinEnergy(0.0 * MeV); // Set the energy limits |
---|
| 81 | * inclModel -> SetMaxEnergy(3.0 * GeV); |
---|
| 82 | * |
---|
| 83 | * G4ProtonInelasticProcess* protonInelasticProcess = new G4ProtonInelasticProcess(); |
---|
| 84 | * G4ProtonInelasticCrossSection* protonInelasticCrossSection = new G4ProtonInelasticCrossSection(); |
---|
| 85 | * |
---|
| 86 | * protonInelasticProcess -> RegisterMe(inclModel); |
---|
| 87 | * protonInelasticProcess -> AddDataSet(protonInelasticCrossSection); |
---|
| 88 | * |
---|
| 89 | * particle = G4Proton::Proton(); |
---|
| 90 | * processManager = particle -> GetProcessManager(); |
---|
| 91 | * processManager -> AddDiscreteProcess(protonInelasticProcess); |
---|
| 92 | * @endcode |
---|
| 93 | * The same setup procedure is needed for neutron and pion inelastic processes |
---|
| 94 | * as well. |
---|
| 95 | * |
---|
| 96 | * @see G4InclLightIonInterface |
---|
[819] | 97 | */ |
---|
| 98 | |
---|
| 99 | class G4InclCascadeInterface : public G4VIntraNuclearTransportModel { |
---|
| 100 | |
---|
| 101 | public: |
---|
| 102 | /** |
---|
| 103 | * Basic constructor. |
---|
| 104 | */ |
---|
[1347] | 105 | G4InclCascadeInterface(const G4String& name = "INCL Cascade with Geant4 PreCompound"); |
---|
[819] | 106 | |
---|
| 107 | |
---|
| 108 | G4int operator==(G4InclCascadeInterface& right) { |
---|
| 109 | return (this == &right); |
---|
| 110 | } |
---|
| 111 | |
---|
| 112 | G4int operator!=(G4InclCascadeInterface& right) { |
---|
| 113 | return (this != &right); |
---|
| 114 | } |
---|
| 115 | |
---|
| 116 | ~G4InclCascadeInterface(); // Destructor |
---|
| 117 | |
---|
| 118 | G4ReactionProductVector* Propagate(G4KineticTrackVector* theSecondaries, G4V3DNucleus* theNucleus); // Idle |
---|
| 119 | |
---|
| 120 | /** |
---|
[1347] | 121 | * Main method to apply the INCL physics model. |
---|
[819] | 122 | * @param aTrack the projectile particle |
---|
| 123 | * @param theNucleus target nucleus |
---|
[1347] | 124 | * @return the output of the INCL physics model |
---|
[819] | 125 | */ |
---|
| 126 | G4HadFinalState* ApplyYourself(const G4HadProjectile& aTrack, G4Nucleus& theNucleus); |
---|
| 127 | |
---|
| 128 | private: |
---|
| 129 | G4int outputVerbosity; |
---|
| 130 | G4int verboseLevel; |
---|
| 131 | |
---|
| 132 | private: |
---|
| 133 | G4Hazard *hazard; // The random seeds used by INCL. |
---|
| 134 | G4VarNtp *varntp; |
---|
[1347] | 135 | G4InclInput *calincl; |
---|
[819] | 136 | G4Ws *ws; |
---|
| 137 | G4Mat *mat; |
---|
| 138 | G4Incl *incl; |
---|
[1347] | 139 | |
---|
[819] | 140 | G4HadFinalState theResult; |
---|
| 141 | ofstream diagdata; |
---|
| 142 | |
---|
| 143 | G4int eventNumber; |
---|
| 144 | G4double previousTargetA; |
---|
| 145 | G4double previousTargetZ; |
---|
[1347] | 146 | |
---|
| 147 | G4ExcitationHandler *theExcitationHandler; |
---|
| 148 | G4PreCompoundModel *thePrecoModel; |
---|
[819] | 149 | }; |
---|
| 150 | |
---|
[1347] | 151 | #endif // G4INCLABLACASCADEINTERFACE_H |
---|