Import Geant4 10.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2017-12-08 12:52:30 +01:00
parent 98e455a940
commit fc6af9e721
2166 changed files with 276760 additions and 100873 deletions
@@ -0,0 +1,61 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
#ifndef G4NRESP71M03_HH
#define G4NRESP71M03_HH
//#include "G4PhysicalConstants.hh"
//#include "G4SystemOfUnits.hh"
//#include "Randomize.hh"
#include "G4ReactionProduct.hh"
#include "globals.hh"
class G4NRESP71M03
{
public:
G4NRESP71M03(){;};
~G4NRESP71M03(){;};
void DKINMA(G4ReactionProduct *p1, G4ReactionProduct *p2, G4ReactionProduct *p3, G4ReactionProduct *p4, const G4double Q, const G4double costhcm3);
G4int ApplyMechanismI_NBeA2A(G4ReactionProduct &neut, G4ReactionProduct &carb, G4ReactionProduct *theProds, const G4double QI);
G4int ApplyMechanismII_ACN2A(G4ReactionProduct &neut, G4ReactionProduct &carb, G4ReactionProduct *theProds, const G4double QI);
G4int ApplyMechanismABE(G4ReactionProduct &neut, G4ReactionProduct &carb, G4ReactionProduct *theProds);
private:
// Defining the arrays with the angular distribution data
static const G4int ndist = 32; // Number of angular distributions.
static const G4int nrhos = 51; // Number of Rho values.
// Energies for which angular distributions are given.
static const G4double BEN2[ndist];
// Angular distribution of alpha particles for each energy value in BEN2.
static const G4double B2[ndist][nrhos];
};
#endif
@@ -40,6 +40,8 @@
#include "G4ParticleHPDeExGammas.hh"
#include "G4Nucleus.hh"
#include "G4NRESP71M03.hh"
class G4ParticleHPInelasticCompFS : public G4ParticleHPFinalState
{
public:
@@ -123,5 +125,8 @@ protected:
// proj targ had mu of had
void two_body_reaction ( G4DynamicParticle* , G4DynamicParticle* , G4DynamicParticle* , G4double mu );
G4NRESP71M03 nresp71_model;
G4bool use_nresp71_model( const G4ParticleDefinition* aDefinition, const G4int it , const G4ReactionProduct& theTarget , G4ReactionProduct& boosted);
};
#endif
@@ -84,11 +84,13 @@ class G4ParticleHPManager
G4bool GetNeglectDoppler() { return NEGLECT_DOPPLER; };
G4bool GetDoNotAdjustFinalState() { return DO_NOT_ADJUST_FINAL_STATE; };
G4bool GetProduceFissionFragments() { return PRODUCE_FISSION_FRAGMENTS; };
G4bool GetUseNRESP71Model() { return USE_NRESP71_MODEL; };
void SetSkipMissingIsotopes( G4bool val ) { SKIP_MISSING_ISOTOPES = val; };
void SetNeglectDoppler( G4bool val ) { NEGLECT_DOPPLER = val; };
void SetDoNotAdjustFinalState( G4bool val ) { DO_NOT_ADJUST_FINAL_STATE = val; };
void SetProduceFissionFragments( G4bool val ) { PRODUCE_FISSION_FRAGMENTS = val; };
void SetUseNRESP71Model( G4bool val ) { USE_NRESP71_MODEL = val; };
void RegisterElasticCrossSections( G4PhysicsTable* val ){ theElasticCrossSections = val; };
G4PhysicsTable* GetElasticCrossSections(){ return theElasticCrossSections; };
@@ -136,6 +138,7 @@ class G4ParticleHPManager
G4bool NEGLECT_DOPPLER;
G4bool DO_NOT_ADJUST_FINAL_STATE;
G4bool PRODUCE_FISSION_FRAGMENTS;
G4bool USE_NRESP71_MODEL;
G4PhysicsTable* theElasticCrossSections;
G4PhysicsTable* theCaptureCrossSections;
@@ -51,6 +51,7 @@ class G4ParticleHPMessenger: public G4UImessenger
G4UIcmdWithAString* NeglectDopplerCmd;
G4UIcmdWithAString* DoNotAdjustFSCmd;
G4UIcmdWithAString* ProduceFissionFragementCmd;
G4UIcmdWithAString* NRESP71Cmd;
G4UIcmdWithAnInteger* VerboseCmd;
//G4UIcmdWithAString* AllowHeavyElementCmd;
/*